diff options
| author | Paul Eggert | 2012-05-21 08:36:54 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-05-21 08:36:54 -0700 |
| commit | 261cb4bb750143d8078bb27a343e0d9560b884df (patch) | |
| tree | 0d295abf946d52c178be2f7b95e85bfcc5fc63cc /src/termcap.c | |
| parent | ff23cd9f452b6d2b5001a67d7b14e0af7f61b194 (diff) | |
| download | emacs-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/termcap.c')
| -rw-r--r-- | src/termcap.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/termcap.c b/src/termcap.c index 10c195eebe2..61f9d9a31ea 100644 --- a/src/termcap.c +++ b/src/termcap.c | |||
| @@ -30,10 +30,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 30 | #include "msdos.h" | 30 | #include "msdos.h" |
| 31 | #endif | 31 | #endif |
| 32 | 32 | ||
| 33 | #ifndef NULL | ||
| 34 | #define NULL (char *) 0 | ||
| 35 | #endif | ||
| 36 | |||
| 37 | /* BUFSIZE is the initial size allocated for the buffer | 33 | /* BUFSIZE is the initial size allocated for the buffer |
| 38 | for reading the termcap file. | 34 | for reading the termcap file. |
| 39 | It is not a limit. | 35 | It is not a limit. |
| @@ -661,10 +657,6 @@ gobble_line (int fd, register struct termcap_buffer *bufp, char *append_end) | |||
| 661 | 657 | ||
| 662 | #ifdef TEST | 658 | #ifdef TEST |
| 663 | 659 | ||
| 664 | #ifdef NULL | ||
| 665 | #undef NULL | ||
| 666 | #endif | ||
| 667 | |||
| 668 | #include <stdio.h> | 660 | #include <stdio.h> |
| 669 | 661 | ||
| 670 | static void | 662 | static void |