aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
authorPaul Eggert2012-05-21 08:36:54 -0700
committerPaul Eggert2012-05-21 08:36:54 -0700
commit261cb4bb750143d8078bb27a343e0d9560b884df (patch)
tree0d295abf946d52c178be2f7b95e85bfcc5fc63cc /src/lisp.h
parentff23cd9f452b6d2b5001a67d7b14e0af7f61b194 (diff)
downloademacs-261cb4bb750143d8078bb27a343e0d9560b884df.tar.gz
emacs-261cb4bb750143d8078bb27a343e0d9560b884df.zip
Assume C89 or later.
* configure.in (AC_C_PROTOTYPES, AC_C_VOLATILE, AC_C_CONST) (POINTER_TYPE, PROTOTYPES): Remove. * admin/CPP-DEFINES: Remove NULL, const. * lib-src/etags.c (static, const): Remove macros. (PTR): Remove; all uses replaced with void *. Omit needless casts. * src/alloc.c, src/buffer.c, lisp.h: Replace POINTER_TYPE with void. * alloc.c (overrun_check_malloc, overrun_check_realloc, xmalloc) (xrealloc): * buffer.c (mmap_free_1, mmap_enlarge): Omit needless casts. * editfns.c, fns.c, gmalloc.c, insdel.c, sysdep.c, termcap.c (NULL): * textprop.c, tparam.c (NULL): Remove. * ralloc.c, vm-limit.c (POINTER): Assume void * works. * regex.c (SIGN_EXTEND_CHAR): Assume signed char works. * regex.h (_RE_ARGS): Remove. All uses rewritten to use prototypes. * unexelf.c (ElfBitsW): Assume c89 preprocessor or better. * xterm.c (input_signal_count): Assume volatile works.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 6376862949a..fd5219adf4c 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2780,7 +2780,7 @@ extern int pos_visible_p (struct window *, EMACS_INT, int *,
2780extern void syms_of_xsettings (void); 2780extern void syms_of_xsettings (void);
2781 2781
2782/* Defined in vm-limit.c. */ 2782/* Defined in vm-limit.c. */
2783extern void memory_warnings (POINTER_TYPE *, void (*warnfun) (const char *)); 2783extern void memory_warnings (void *, void (*warnfun) (const char *));
2784 2784
2785/* Defined in alloc.c */ 2785/* Defined in alloc.c */
2786extern void check_pure_size (void); 2786extern void check_pure_size (void);
@@ -3597,9 +3597,9 @@ extern int initialized;
3597 3597
3598extern int immediate_quit; /* Nonzero means ^G can quit instantly */ 3598extern int immediate_quit; /* Nonzero means ^G can quit instantly */
3599 3599
3600extern POINTER_TYPE *xmalloc (size_t); 3600extern void *xmalloc (size_t);
3601extern POINTER_TYPE *xrealloc (POINTER_TYPE *, size_t); 3601extern void *xrealloc (void *, size_t);
3602extern void xfree (POINTER_TYPE *); 3602extern void xfree (void *);
3603extern void *xnmalloc (ptrdiff_t, ptrdiff_t); 3603extern void *xnmalloc (ptrdiff_t, ptrdiff_t);
3604extern void *xnrealloc (void *, ptrdiff_t, ptrdiff_t); 3604extern void *xnrealloc (void *, ptrdiff_t, ptrdiff_t);
3605extern void *xpalloc (void *, ptrdiff_t *, ptrdiff_t, ptrdiff_t, ptrdiff_t); 3605extern void *xpalloc (void *, ptrdiff_t *, ptrdiff_t, ptrdiff_t, ptrdiff_t);