diff options
| author | Dan Nicolaescu | 2010-07-02 15:18:28 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-02 15:18:28 -0700 |
| commit | c532d349630038c45897e88004a8142a82e9dc85 (patch) | |
| tree | c47cf7e54a4f959892f323a172090405b6d7221a /src | |
| parent | b6fcccc3ea3425e613afce804143e3dd0a6eee6e (diff) | |
| download | emacs-c532d349630038c45897e88004a8142a82e9dc85.tar.gz emacs-c532d349630038c45897e88004a8142a82e9dc85.zip | |
Convert some prototypes to standard C.
* lib-src/make-docfile.c (xmalloc, xrealloc, concat, readline, fatal):
* lib-src/b2m.c (scan_file, scan_lisp_file, scan_c_file): Convert to
standard C prototypes.
* src/term.c (term_clear_mouse_face, Fidentity):
* src/syssignal.h (signal_handler_t):
* src/lisp.h (memory_warnings):
* src/coding.h (preferred_coding_system):
* src/cm.h (evalcost):
* src/blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/blockinput.h | 2 | ||||
| -rw-r--r-- | src/cm.h | 2 | ||||
| -rw-r--r-- | src/coding.h | 2 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/syssignal.h | 2 | ||||
| -rw-r--r-- | src/term.c | 4 |
7 files changed, 16 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ae024da468d..ee347e86a51 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * term.c (term_clear_mouse_face, Fidentity): | ||
| 4 | * syssignal.h (signal_handler_t): | ||
| 5 | * lisp.h (memory_warnings): | ||
| 6 | * coding.h (preferred_coding_system): | ||
| 7 | * cm.h (evalcost): | ||
| 8 | * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes. | ||
| 9 | |||
| 1 | 2010-07-02 Eli Zaretskii <eliz@gnu.org> | 10 | 2010-07-02 Eli Zaretskii <eliz@gnu.org> |
| 2 | 11 | ||
| 3 | * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_ | 12 | * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_ |
diff --git a/src/blockinput.h b/src/blockinput.h index 890adcbcd86..99c8274fc60 100644 --- a/src/blockinput.h +++ b/src/blockinput.h | |||
| @@ -123,7 +123,7 @@ extern int pending_atimers; | |||
| 123 | 123 | ||
| 124 | /* Defined in keyboard.c */ | 124 | /* Defined in keyboard.c */ |
| 125 | /* Don't use a prototype here; it causes trouble in some files. */ | 125 | /* Don't use a prototype here; it causes trouble in some files. */ |
| 126 | extern void reinvoke_input_signal (); | 126 | extern void reinvoke_input_signal (void); |
| 127 | 127 | ||
| 128 | #endif /* EMACS_BLOCKINPUT_H */ | 128 | #endif /* EMACS_BLOCKINPUT_H */ |
| 129 | 129 | ||
| @@ -158,7 +158,7 @@ extern char PC; /* Pad character */ | |||
| 158 | #define losecursor(tty) (curX(tty) = -1, curY(tty) = -1) | 158 | #define losecursor(tty) (curX(tty) = -1, curY(tty) = -1) |
| 159 | 159 | ||
| 160 | extern int cost; | 160 | extern int cost; |
| 161 | extern int evalcost (); | 161 | extern int evalcost (char c); |
| 162 | 162 | ||
| 163 | #define emacs_tputs(tty, str, affcnt, putc) (current_tty = (tty), tputs (str, affcnt, putc)) | 163 | #define emacs_tputs(tty, str, affcnt, putc) (current_tty = (tty), tputs (str, affcnt, putc)) |
| 164 | 164 | ||
diff --git a/src/coding.h b/src/coding.h index 156ead91ed2..75ed84bef71 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -753,7 +753,7 @@ extern void encode_coding_object (struct coding_system *, | |||
| 753 | } while (0) | 753 | } while (0) |
| 754 | 754 | ||
| 755 | 755 | ||
| 756 | extern Lisp_Object preferred_coding_system (); | 756 | extern Lisp_Object preferred_coding_system (void); |
| 757 | 757 | ||
| 758 | 758 | ||
| 759 | extern Lisp_Object Qutf_8, Qutf_8_emacs; | 759 | extern Lisp_Object Qutf_8, Qutf_8_emacs; |
diff --git a/src/lisp.h b/src/lisp.h index 2b25e153d30..8f69b92d54f 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2668,7 +2668,7 @@ extern int pos_visible_p (struct window *, int, int *, | |||
| 2668 | extern void syms_of_xsettings (void); | 2668 | extern void syms_of_xsettings (void); |
| 2669 | 2669 | ||
| 2670 | /* Defined in vm-limit.c. */ | 2670 | /* Defined in vm-limit.c. */ |
| 2671 | extern void memory_warnings (POINTER_TYPE *, void (*warnfun) ()); | 2671 | extern void memory_warnings (POINTER_TYPE *, void (*warnfun) (const char*)); |
| 2672 | 2672 | ||
| 2673 | /* Defined in alloc.c */ | 2673 | /* Defined in alloc.c */ |
| 2674 | extern void check_pure_size (void); | 2674 | extern void check_pure_size (void); |
diff --git a/src/syssignal.h b/src/syssignal.h index 35252c4b958..e3765add425 100644 --- a/src/syssignal.h +++ b/src/syssignal.h | |||
| @@ -76,7 +76,7 @@ extern sigset_t sys_sigmask (); | |||
| 76 | 76 | ||
| 77 | /* Whether this is what all systems want or not, this is what | 77 | /* Whether this is what all systems want or not, this is what |
| 78 | appears to be assumed in the source, for example data.c:arith_error. */ | 78 | appears to be assumed in the source, for example data.c:arith_error. */ |
| 79 | typedef RETSIGTYPE (*signal_handler_t) (/*int*/); | 79 | typedef RETSIGTYPE (*signal_handler_t) (int); |
| 80 | 80 | ||
| 81 | signal_handler_t sys_signal (int signal_number, signal_handler_t action); | 81 | signal_handler_t sys_signal (int signal_number, signal_handler_t action); |
| 82 | sigset_t sys_sigblock (sigset_t new_mask); | 82 | sigset_t sys_sigblock (sigset_t new_mask); |
diff --git a/src/term.c b/src/term.c index 64e329ec602..275dfa98adc 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -187,7 +187,7 @@ extern char *tgetstr (); | |||
| 187 | #ifdef HAVE_GPM | 187 | #ifdef HAVE_GPM |
| 188 | #include <sys/fcntl.h> | 188 | #include <sys/fcntl.h> |
| 189 | 189 | ||
| 190 | static void term_clear_mouse_face (); | 190 | static void term_clear_mouse_face (void); |
| 191 | static void term_mouse_highlight (struct frame *f, int x, int y); | 191 | static void term_mouse_highlight (struct frame *f, int x, int y); |
| 192 | 192 | ||
| 193 | /* The device for which we have enabled gpm support (or NULL). */ | 193 | /* The device for which we have enabled gpm support (or NULL). */ |
| @@ -1385,7 +1385,7 @@ term_get_fkeys (address, kboard) | |||
| 1385 | function key specification, rather than giving the user an error and | 1385 | function key specification, rather than giving the user an error and |
| 1386 | refusing to run at all on such a terminal. */ | 1386 | refusing to run at all on such a terminal. */ |
| 1387 | 1387 | ||
| 1388 | extern Lisp_Object Fidentity (); | 1388 | extern Lisp_Object Fidentity (Lisp_Object); |
| 1389 | term_get_fkeys_address = address; | 1389 | term_get_fkeys_address = address; |
| 1390 | term_get_fkeys_kboard = kboard; | 1390 | term_get_fkeys_kboard = kboard; |
| 1391 | internal_condition_case (term_get_fkeys_1, Qerror, Fidentity); | 1391 | internal_condition_case (term_get_fkeys_1, Qerror, Fidentity); |