Include stdio.h. Test STDC_HEADERS, not __STDC__.
authorDave Love <fx@gnu.org>
Tue, 28 Mar 2000 11:10:55 +0000 (11:10 +0000)
committerDave Love <fx@gnu.org>
Tue, 28 Mar 2000 11:10:55 +0000 (11:10 +0000)
src/ChangeLog
src/alloc.c

index d3ea1be..7d19133 100644 (file)
@@ -1,3 +1,17 @@
+2000-03-28  Dave Love  <fx@gnu.org>
+
+       * alloc.c: Include stdio.h.  Test STDC_HEADERS, not __STDC__.
+
+2000-03-27  gerd  <gerd@dlpx1>
+
+       * alloc.c (mark_maybe_object): New function.
+       (mark_memory): Use it.
+       (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
+       (setjmp_tested_p, longjmp_done): New variables.
+       (test_setjmp): New function.
+       (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
+       (init_alloc): Initialize setjmp_tested_p and longjmp_done.
+
 2000-03-27  Stefan Monnier  <monnier@cs.yale.edu>
 
        * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
index 9b82d45..d7e4214 100644 (file)
@@ -20,6 +20,7 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
 #include <config.h>
+#include <stdio.h>
 
 /* Note that this declares bzero on OSF/1.  How dumb.  */
 
@@ -58,7 +59,7 @@ extern char *sbrk ();
 
 /* The following come from gmalloc.c.  */
 
-#if defined (__STDC__) && __STDC__
+#if defined (STDC_HEADERS)
 #include <stddef.h>
 #define        __malloc_size_t         size_t
 #else