aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2000-03-28 11:10:55 +0000
committerDave Love2000-03-28 11:10:55 +0000
commite9b309ac910a5e3c13cca480b32a9231d76b2d9b (patch)
treebf0c78f033228ce81c983c90e96b33cf15bdb609 /src
parented0767d80f1d3ae00b4a89576b009e44398cc1ba (diff)
downloademacs-e9b309ac910a5e3c13cca480b32a9231d76b2d9b.tar.gz
emacs-e9b309ac910a5e3c13cca480b32a9231d76b2d9b.zip
Include stdio.h. Test STDC_HEADERS, not __STDC__.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog14
-rw-r--r--src/alloc.c3
2 files changed, 16 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d3ea1be941d..7d191333750 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,17 @@
12000-03-28 Dave Love <fx@gnu.org>
2
3 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
4
52000-03-27 gerd <gerd@dlpx1>
6
7 * alloc.c (mark_maybe_object): New function.
8 (mark_memory): Use it.
9 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10 (setjmp_tested_p, longjmp_done): New variables.
11 (test_setjmp): New function.
12 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
14
12000-03-27 Stefan Monnier <monnier@cs.yale.edu> 152000-03-27 Stefan Monnier <monnier@cs.yale.edu>
2 16
3 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as 17 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
diff --git a/src/alloc.c b/src/alloc.c
index 9b82d45a0bf..d7e4214c6c4 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -20,6 +20,7 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA. */ 20Boston, MA 02111-1307, USA. */
21 21
22#include <config.h> 22#include <config.h>
23#include <stdio.h>
23 24
24/* Note that this declares bzero on OSF/1. How dumb. */ 25/* Note that this declares bzero on OSF/1. How dumb. */
25 26
@@ -58,7 +59,7 @@ extern char *sbrk ();
58 59
59/* The following come from gmalloc.c. */ 60/* The following come from gmalloc.c. */
60 61
61#if defined (__STDC__) && __STDC__ 62#if defined (STDC_HEADERS)
62#include <stddef.h> 63#include <stddef.h>
63#define __malloc_size_t size_t 64#define __malloc_size_t size_t
64#else 65#else