[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] CVS HEAD fails to compile
From: |
Lionel Elie Mamane |
Subject: |
[Texmacs-dev] CVS HEAD fails to compile |
Date: |
Tue, 6 Mar 2007 16:46:34 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hi,
CVS HEAD fails to compile for me (gcc (GCC) 4.1.2 20061115
(prerelease) (Debian 4.1.1-21)), but does with this patch:
--- src/Typeset/Boxes/Modifier/change_boxes.cpp 25 Feb 2007 15:01:53 -0000
1.25
+++ src/Typeset/Boxes/Modifier/change_boxes.cpp 6 Mar 2007 15:12:35 -0000
@@ -324,7 +324,7 @@
position ();
finalize ();
}
- inline remember_box_rep::~remember_box_rep () {
+ inline ~remember_box_rep () {
if (logs_ptr != NULL) {
rectangles& logs= *logs_ptr;
logs= rectangles (rectangle (ox+x3, oy+y3, ox+x4, oy+y4), logs);
It also contains this very suspicious code in
src/System/Misc/fast_alloc.cpp:
void*
safe_malloc (register size_t sz) {
void* ptr= malloc (sz);
if (ptr==NULL) {
cerr << "Fatal error: out of memory\n";
cout << 1/0 << "\n";
exit (1);
}
return ptr;
}
the "cout << " line looks suspicious, probably a local debugging code
that was not meant to be committed? It was introduced with commit log:
Fix bug concerning surroundings of GUI elements
and not e.g. "make sure we die with SIGFPE on out of memory".
--
Lionel
- [Texmacs-dev] CVS HEAD fails to compile,
Lionel Elie Mamane <=