]> code.delx.au - gnu-emacs/commitdiff
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 d3ea1be941dcc5071bcbf8c8239c542f782baa8e..7d1913337508c557e972dce719b25b4393411fd9 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 9b82d45a0bfd94e3d909cc9b0765bfb0207e3e8e..d7e4214c6c43610b5390a7b10786a6adc2a5e79f 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