diff options
| author | Dan Nicolaescu | 2010-07-04 21:52:39 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-04 21:52:39 -0700 |
| commit | dd4c5104086a55654982112f71c2f69e1e8e0cd1 (patch) | |
| tree | e27410ebcc2b0f4399d43b7e05e2519bc4599e43 /src | |
| parent | 9c8a2331d427aa8e7b2c7deeba04c76b56ce694c (diff) | |
| download | emacs-dd4c5104086a55654982112f71c2f69e1e8e0cd1.tar.gz emacs-dd4c5104086a55654982112f71c2f69e1e8e0cd1.zip | |
Convert declarations or definitions to standard C.
* src/xsmfns.c (smc_save_yourself_CB, smc_error_handler):
* src/xrdb.c (get_system_name):
* src/window.c (shrink_windows):
* src/syntax.c (forw_comment):
* src/scroll.c (calculate_scrolling, calculate_direct_scrolling)
(ins_del_costs):
* src/mem-limits.h (start_of_data):
* src/lread.c (readevalloop):
* src/gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
(xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
* src/frame.c (x_get_focus_frame):
* src/floatfns.c (fmod_float):
* src/fileio.c (choose_write_coding_system):
* src/emacs.c (fatal_error_signal, init_cmdargs, argmatch)
(malloc_initialize_hook, sort_args, synchronize_locale):
* src/doprnt.c (doprnt):
* src/dired.c (compile_pattern):
* src/data.c (fmod_float):
* src/chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
(map_char_table_for_charset):
* src/charset.c (define_charset_internal):
* src/alloc.c (Fgarbage_collect): Convert declarations or definitions
to standard C.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 26 | ||||
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/charset.c | 18 | ||||
| -rw-r--r-- | src/chartab.c | 27 | ||||
| -rw-r--r-- | src/data.c | 2 | ||||
| -rw-r--r-- | src/dired.c | 2 | ||||
| -rw-r--r-- | src/doprnt.c | 2 | ||||
| -rw-r--r-- | src/emacs.c | 38 | ||||
| -rw-r--r-- | src/fileio.c | 9 | ||||
| -rw-r--r-- | src/floatfns.c | 3 | ||||
| -rw-r--r-- | src/frame.c | 2 | ||||
| -rw-r--r-- | src/gtkutil.c | 72 | ||||
| -rw-r--r-- | src/lread.c | 18 | ||||
| -rw-r--r-- | src/mem-limits.h | 2 | ||||
| -rw-r--r-- | src/scroll.c | 50 | ||||
| -rw-r--r-- | src/syntax.c | 12 | ||||
| -rw-r--r-- | src/window.c | 7 | ||||
| -rw-r--r-- | src/xrdb.c | 2 | ||||
| -rw-r--r-- | src/xsmfns.c | 60 |
19 files changed, 150 insertions, 204 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 27253207eba..198f7ea5073 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,29 @@ | |||
| 1 | 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * xsmfns.c (smc_save_yourself_CB, smc_error_handler): | ||
| 4 | * xrdb.c (get_system_name): | ||
| 5 | * window.c (shrink_windows): | ||
| 6 | * syntax.c (forw_comment): | ||
| 7 | * scroll.c (calculate_scrolling, calculate_direct_scrolling) | ||
| 8 | (ins_del_costs): | ||
| 9 | * mem-limits.h (start_of_data): | ||
| 10 | * lread.c (readevalloop): | ||
| 11 | * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser) | ||
| 12 | (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu): | ||
| 13 | * frame.c (x_get_focus_frame): | ||
| 14 | * floatfns.c (fmod_float): | ||
| 15 | * fileio.c (choose_write_coding_system): | ||
| 16 | * emacs.c (fatal_error_signal, init_cmdargs, argmatch) | ||
| 17 | (malloc_initialize_hook, sort_args, synchronize_locale): | ||
| 18 | * doprnt.c (doprnt): | ||
| 19 | * dired.c (compile_pattern): | ||
| 20 | * data.c (fmod_float): | ||
| 21 | * chartab.c (map_sub_char_table, map_sub_char_table_for_charset) | ||
| 22 | (map_char_table_for_charset): | ||
| 23 | * charset.c (define_charset_internal): | ||
| 24 | * alloc.c (Fgarbage_collect): Convert declarations or definitions | ||
| 25 | to standard C. | ||
| 26 | |||
| 1 | 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change) | 27 | 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change) |
| 2 | Stefan Monnier <monnier@iro.umontreal.ca> | 28 | Stefan Monnier <monnier@iro.umontreal.ca> |
| 3 | 29 | ||
diff --git a/src/alloc.c b/src/alloc.c index 0f81c943ad3..7598386ebca 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5015,7 +5015,7 @@ returns nil, because real GC can't be done. */) | |||
| 5015 | 5015 | ||
| 5016 | #ifdef USE_GTK | 5016 | #ifdef USE_GTK |
| 5017 | { | 5017 | { |
| 5018 | extern void xg_mark_data (); | 5018 | extern void xg_mark_data (void); |
| 5019 | xg_mark_data (); | 5019 | xg_mark_data (); |
| 5020 | } | 5020 | } |
| 5021 | #endif | 5021 | #endif |
diff --git a/src/charset.c b/src/charset.c index 40214ea3817..45ce52870bd 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -1282,17 +1282,13 @@ usage: (define-charset-internal ...) */) | |||
| 1282 | charset. */ | 1282 | charset. */ |
| 1283 | 1283 | ||
| 1284 | static int | 1284 | static int |
| 1285 | define_charset_internal (name, dimension, code_space, min_code, max_code, | 1285 | define_charset_internal (Lisp_Object name, |
| 1286 | iso_final, iso_revision, emacs_mule_id, | 1286 | int dimension, |
| 1287 | ascii_compatible, supplementary, | 1287 | unsigned char *code_space, |
| 1288 | code_offset) | 1288 | unsigned min_code, unsigned max_code, |
| 1289 | Lisp_Object name; | 1289 | int iso_final, int iso_revision, int emacs_mule_id, |
| 1290 | int dimension; | 1290 | int ascii_compatible, int supplementary, |
| 1291 | unsigned char *code_space; | 1291 | int code_offset) |
| 1292 | unsigned min_code, max_code; | ||
| 1293 | int iso_final, iso_revision, emacs_mule_id; | ||
| 1294 | int ascii_compatible, supplementary; | ||
| 1295 | int code_offset; | ||
| 1296 | { | 1292 | { |
| 1297 | Lisp_Object args[charset_arg_max]; | 1293 | Lisp_Object args[charset_arg_max]; |
| 1298 | Lisp_Object plist[14]; | 1294 | Lisp_Object plist[14]; |
diff --git a/src/chartab.c b/src/chartab.c index a95e3ac6dca..ddbb0057d8b 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -690,10 +690,9 @@ equivalent and can be merged. It defaults to `equal'. */) | |||
| 690 | following characters in TABLE have the same value. */ | 690 | following characters in TABLE have the same value. */ |
| 691 | 691 | ||
| 692 | static Lisp_Object | 692 | static Lisp_Object |
| 693 | map_sub_char_table (c_function, function, table, arg, val, range, | 693 | map_sub_char_table (void (*c_function) (Lisp_Object, Lisp_Object, Lisp_Object), |
| 694 | default_val, parent) | 694 | Lisp_Object function, Lisp_Object table, Lisp_Object arg, Lisp_Object val, |
| 695 | void (*c_function) (Lisp_Object, Lisp_Object, Lisp_Object); | 695 | Lisp_Object range, Lisp_Object default_val, Lisp_Object parent) |
| 696 | Lisp_Object function, table, arg, val, range, default_val, parent; | ||
| 697 | { | 696 | { |
| 698 | /* Pointer to the elements of TABLE. */ | 697 | /* Pointer to the elements of TABLE. */ |
| 699 | Lisp_Object *contents; | 698 | Lisp_Object *contents; |
| @@ -878,12 +877,10 @@ range of characters that have the same value. */) | |||
| 878 | 877 | ||
| 879 | 878 | ||
| 880 | static void | 879 | static void |
| 881 | map_sub_char_table_for_charset (c_function, function, table, arg, range, | 880 | map_sub_char_table_for_charset (void (*c_function) (Lisp_Object, Lisp_Object), |
| 882 | charset, from, to) | 881 | Lisp_Object function, Lisp_Object table, Lisp_Object arg, |
| 883 | void (*c_function) (Lisp_Object, Lisp_Object); | 882 | Lisp_Object range, struct charset *charset, |
| 884 | Lisp_Object function, table, arg, range; | 883 | unsigned from, unsigned to) |
| 885 | struct charset *charset; | ||
| 886 | unsigned from, to; | ||
| 887 | { | 884 | { |
| 888 | struct Lisp_Sub_Char_Table *tbl = XSUB_CHAR_TABLE (table); | 885 | struct Lisp_Sub_Char_Table *tbl = XSUB_CHAR_TABLE (table); |
| 889 | int depth = XINT (tbl->depth); | 886 | int depth = XINT (tbl->depth); |
| @@ -965,12 +962,10 @@ map_sub_char_table_for_charset (c_function, function, table, arg, range, | |||
| 965 | map_charset_chars. */ | 962 | map_charset_chars. */ |
| 966 | 963 | ||
| 967 | void | 964 | void |
| 968 | map_char_table_for_charset (c_function, function, table, arg, | 965 | map_char_table_for_charset (void (*c_function) (Lisp_Object, Lisp_Object), |
| 969 | charset, from, to) | 966 | Lisp_Object function, Lisp_Object table, Lisp_Object arg, |
| 970 | void (*c_function) (Lisp_Object, Lisp_Object); | 967 | struct charset *charset, |
| 971 | Lisp_Object function, table, arg; | 968 | unsigned from, unsigned to) |
| 972 | struct charset *charset; | ||
| 973 | unsigned from, to; | ||
| 974 | { | 969 | { |
| 975 | Lisp_Object range; | 970 | Lisp_Object range; |
| 976 | int c, i; | 971 | int c, i; |
diff --git a/src/data.c b/src/data.c index f92bc796480..3949e6da54b 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -2582,7 +2582,7 @@ enum arithop | |||
| 2582 | 2582 | ||
| 2583 | static Lisp_Object float_arith_driver (double, int, enum arithop, | 2583 | static Lisp_Object float_arith_driver (double, int, enum arithop, |
| 2584 | int, Lisp_Object *); | 2584 | int, Lisp_Object *); |
| 2585 | extern Lisp_Object fmod_float (); | 2585 | extern Lisp_Object fmod_float (Lisp_Object, Lisp_Object); |
| 2586 | 2586 | ||
| 2587 | Lisp_Object | 2587 | Lisp_Object |
| 2588 | arith_driver (enum arithop code, int nargs, register Lisp_Object *args) | 2588 | arith_driver (enum arithop code, int nargs, register Lisp_Object *args) |
diff --git a/src/dired.c b/src/dired.c index 69a6a4390c4..a24d068d3b6 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -90,7 +90,7 @@ extern struct direct *readdir (); | |||
| 90 | #include "blockinput.h" | 90 | #include "blockinput.h" |
| 91 | 91 | ||
| 92 | /* Returns a search buffer, with a fastmap allocated and ready to go. */ | 92 | /* Returns a search buffer, with a fastmap allocated and ready to go. */ |
| 93 | extern struct re_pattern_buffer *compile_pattern (); | 93 | extern struct re_pattern_buffer *compile_pattern (Lisp_Object, struct re_registers *, Lisp_Object, int, int); |
| 94 | 94 | ||
| 95 | /* From filemode.c. Can't go in Lisp.h because of `stat'. */ | 95 | /* From filemode.c. Can't go in Lisp.h because of `stat'. */ |
| 96 | extern void filemodestring (struct stat *, char *); | 96 | extern void filemodestring (struct stat *, char *); |
diff --git a/src/doprnt.c b/src/doprnt.c index 774fb131c45..f747d3a0281 100644 --- a/src/doprnt.c +++ b/src/doprnt.c | |||
| @@ -48,8 +48,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | another macro. */ | 48 | another macro. */ |
| 49 | #include "character.h" | 49 | #include "character.h" |
| 50 | 50 | ||
| 51 | static int doprnt1 (); | ||
| 52 | |||
| 53 | /* Generate output from a format-spec FORMAT, | 51 | /* Generate output from a format-spec FORMAT, |
| 54 | terminated at position FORMAT_END. | 52 | terminated at position FORMAT_END. |
| 55 | Output goes in BUFFER, which has room for BUFSIZE chars. | 53 | Output goes in BUFFER, which has room for BUFSIZE chars. |
diff --git a/src/emacs.c b/src/emacs.c index d31a5f16f74..79604413beb 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -157,9 +157,9 @@ int initialized; | |||
| 157 | static data inside glibc's malloc. */ | 157 | static data inside glibc's malloc. */ |
| 158 | void *malloc_state_ptr; | 158 | void *malloc_state_ptr; |
| 159 | /* From glibc, a routine that returns a copy of the malloc internal state. */ | 159 | /* From glibc, a routine that returns a copy of the malloc internal state. */ |
| 160 | extern void *malloc_get_state (); | 160 | extern void *malloc_get_state (void); |
| 161 | /* From glibc, a routine that overwrites the malloc internal state. */ | 161 | /* From glibc, a routine that overwrites the malloc internal state. */ |
| 162 | extern int malloc_set_state (); | 162 | extern int malloc_set_state (void*); |
| 163 | /* Non-zero if the MALLOC_CHECK_ environment variable was set while | 163 | /* Non-zero if the MALLOC_CHECK_ environment variable was set while |
| 164 | dumping. Used to work around a bug in glibc's malloc. */ | 164 | dumping. Used to work around a bug in glibc's malloc. */ |
| 165 | int malloc_using_checking; | 165 | int malloc_using_checking; |
| @@ -252,8 +252,8 @@ int daemon_pipe[2]; | |||
| 252 | char **initial_argv; | 252 | char **initial_argv; |
| 253 | int initial_argc; | 253 | int initial_argc; |
| 254 | 254 | ||
| 255 | static void sort_args (); | 255 | static void sort_args (int argc, char **argv); |
| 256 | void syms_of_emacs (); | 256 | void syms_of_emacs (void); |
| 257 | 257 | ||
| 258 | /* MSVC needs each string be shorter than 2048 bytes, so the usage | 258 | /* MSVC needs each string be shorter than 2048 bytes, so the usage |
| 259 | strings below are split to not overflow this limit. */ | 259 | strings below are split to not overflow this limit. */ |
| @@ -374,8 +374,7 @@ pthread_t main_thread; | |||
| 374 | 374 | ||
| 375 | /* Handle bus errors, invalid instruction, etc. */ | 375 | /* Handle bus errors, invalid instruction, etc. */ |
| 376 | SIGTYPE | 376 | SIGTYPE |
| 377 | fatal_error_signal (sig) | 377 | fatal_error_signal (int sig) |
| 378 | int sig; | ||
| 379 | { | 378 | { |
| 380 | SIGNAL_THREAD_CHECK (sig); | 379 | SIGNAL_THREAD_CHECK (sig); |
| 381 | fatal_error_code = sig; | 380 | fatal_error_code = sig; |
| @@ -444,10 +443,7 @@ abort () | |||
| 444 | /* Code for dealing with Lisp access to the Unix command line. */ | 443 | /* Code for dealing with Lisp access to the Unix command line. */ |
| 445 | 444 | ||
| 446 | static void | 445 | static void |
| 447 | init_cmdargs (argc, argv, skip_args) | 446 | init_cmdargs (int argc, char **argv, int skip_args) |
| 448 | int argc; | ||
| 449 | char **argv; | ||
| 450 | int skip_args; | ||
| 451 | { | 447 | { |
| 452 | register int i; | 448 | register int i; |
| 453 | Lisp_Object name, dir, tem; | 449 | Lisp_Object name, dir, tem; |
| @@ -644,14 +640,7 @@ void __main () | |||
| 644 | enough information to do it right. */ | 640 | enough information to do it right. */ |
| 645 | 641 | ||
| 646 | static int | 642 | static int |
| 647 | argmatch (argv, argc, sstr, lstr, minlen, valptr, skipptr) | 643 | argmatch (char **argv, int argc, char *sstr, char *lstr, int minlen, char **valptr, int *skipptr) |
| 648 | char **argv; | ||
| 649 | int argc; | ||
| 650 | char *sstr; | ||
| 651 | char *lstr; | ||
| 652 | int minlen; | ||
| 653 | char **valptr; | ||
| 654 | int *skipptr; | ||
| 655 | { | 644 | { |
| 656 | char *p = NULL; | 645 | char *p = NULL; |
| 657 | int arglen; | 646 | int arglen; |
| @@ -709,7 +698,7 @@ argmatch (argv, argc, sstr, lstr, minlen, valptr, skipptr) | |||
| 709 | possible using this special hook. */ | 698 | possible using this special hook. */ |
| 710 | 699 | ||
| 711 | static void | 700 | static void |
| 712 | malloc_initialize_hook () | 701 | malloc_initialize_hook (void) |
| 713 | { | 702 | { |
| 714 | #ifndef USE_CRT_DLL | 703 | #ifndef USE_CRT_DLL |
| 715 | extern char **environ; | 704 | extern char **environ; |
| @@ -747,7 +736,7 @@ malloc_initialize_hook () | |||
| 747 | } | 736 | } |
| 748 | } | 737 | } |
| 749 | 738 | ||
| 750 | void (*__malloc_initialize_hook) () = malloc_initialize_hook; | 739 | void (*__malloc_initialize_hook) (void) = malloc_initialize_hook; |
| 751 | 740 | ||
| 752 | #endif /* DOUG_LEA_MALLOC */ | 741 | #endif /* DOUG_LEA_MALLOC */ |
| 753 | 742 | ||
| @@ -1928,9 +1917,7 @@ const struct standard_args standard_args[] = | |||
| 1928 | than once, eliminate all but one copy of it. */ | 1917 | than once, eliminate all but one copy of it. */ |
| 1929 | 1918 | ||
| 1930 | static void | 1919 | static void |
| 1931 | sort_args (argc, argv) | 1920 | sort_args (int argc, char **argv) |
| 1932 | int argc; | ||
| 1933 | char **argv; | ||
| 1934 | { | 1921 | { |
| 1935 | char **new = (char **) xmalloc (sizeof (char *) * argc); | 1922 | char **new = (char **) xmalloc (sizeof (char *) * argc); |
| 1936 | /* For each element of argv, | 1923 | /* For each element of argv, |
| @@ -2322,10 +2309,7 @@ fixup_locale () | |||
| 2322 | /* Set system locale CATEGORY, with previous locale *PLOCALE, to | 2309 | /* Set system locale CATEGORY, with previous locale *PLOCALE, to |
| 2323 | DESIRED_LOCALE. */ | 2310 | DESIRED_LOCALE. */ |
| 2324 | static void | 2311 | static void |
| 2325 | synchronize_locale (category, plocale, desired_locale) | 2312 | synchronize_locale (int category, Lisp_Object *plocale, Lisp_Object desired_locale) |
| 2326 | int category; | ||
| 2327 | Lisp_Object *plocale; | ||
| 2328 | Lisp_Object desired_locale; | ||
| 2329 | { | 2313 | { |
| 2330 | if (! EQ (*plocale, desired_locale)) | 2314 | if (! EQ (*plocale, desired_locale)) |
| 2331 | { | 2315 | { |
diff --git a/src/fileio.c b/src/fileio.c index c68aa45e13d..525d6ebf4a8 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4437,10 +4437,9 @@ build_annotations_unwind (Lisp_Object arg) | |||
| 4437 | /* Decide the coding-system to encode the data with. */ | 4437 | /* Decide the coding-system to encode the data with. */ |
| 4438 | 4438 | ||
| 4439 | static Lisp_Object | 4439 | static Lisp_Object |
| 4440 | choose_write_coding_system (start, end, filename, | 4440 | choose_write_coding_system (Lisp_Object start, Lisp_Object end, Lisp_Object filename, |
| 4441 | append, visit, lockname, coding) | 4441 | Lisp_Object append, Lisp_Object visit, Lisp_Object lockname, |
| 4442 | Lisp_Object start, end, filename, append, visit, lockname; | 4442 | struct coding_system *coding) |
| 4443 | struct coding_system *coding; | ||
| 4444 | { | 4443 | { |
| 4445 | Lisp_Object val; | 4444 | Lisp_Object val; |
| 4446 | Lisp_Object eol_parent = Qnil; | 4445 | Lisp_Object eol_parent = Qnil; |
| @@ -4883,7 +4882,7 @@ This calls `write-region-annotate-functions' at the start, and | |||
| 4883 | return Qnil; | 4882 | return Qnil; |
| 4884 | } | 4883 | } |
| 4885 | 4884 | ||
| 4886 | Lisp_Object merge (); | 4885 | Lisp_Object merge (Lisp_Object, Lisp_Object, Lisp_Object); |
| 4887 | 4886 | ||
| 4888 | DEFUN ("car-less-than-car", Fcar_less_than_car, Scar_less_than_car, 2, 2, 0, | 4887 | DEFUN ("car-less-than-car", Fcar_less_than_car, Scar_less_than_car, 2, 2, 0, |
| 4889 | doc: /* Return t if (car A) is numerically less than (car B). */) | 4888 | doc: /* Return t if (car A) is numerically less than (car B). */) |
diff --git a/src/floatfns.c b/src/floatfns.c index 5cd996d033c..af82df0bf5d 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -941,8 +941,7 @@ With optional DIVISOR, truncate ARG/DIVISOR. */) | |||
| 941 | 941 | ||
| 942 | 942 | ||
| 943 | Lisp_Object | 943 | Lisp_Object |
| 944 | fmod_float (x, y) | 944 | fmod_float (Lisp_Object x, Lisp_Object y) |
| 945 | register Lisp_Object x, y; | ||
| 946 | { | 945 | { |
| 947 | double f1, f2; | 946 | double f1, f2; |
| 948 | 947 | ||
diff --git a/src/frame.c b/src/frame.c index 33b09c66cd7..1f31c19e653 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -201,7 +201,7 @@ extern Lisp_Object Vminibuffer_list; | |||
| 201 | extern Lisp_Object get_minibuffer (int); | 201 | extern Lisp_Object get_minibuffer (int); |
| 202 | extern Lisp_Object Fhandle_switch_frame (Lisp_Object event); | 202 | extern Lisp_Object Fhandle_switch_frame (Lisp_Object event); |
| 203 | extern Lisp_Object Fredirect_frame_focus (Lisp_Object frame, Lisp_Object focus_frame); | 203 | extern Lisp_Object Fredirect_frame_focus (Lisp_Object frame, Lisp_Object focus_frame); |
| 204 | extern Lisp_Object x_get_focus_frame (); | 204 | extern Lisp_Object x_get_focus_frame (struct frame *frame); |
| 205 | extern Lisp_Object QCname, Qfont_param; | 205 | extern Lisp_Object QCname, Qfont_param; |
| 206 | 206 | ||
| 207 | 207 | ||
diff --git a/src/gtkutil.c b/src/gtkutil.c index ba111164a95..86bf03eed41 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1154,12 +1154,9 @@ struct xg_dialog_data | |||
| 1154 | USER_DATA is what we passed in to g_signal_connect. */ | 1154 | USER_DATA is what we passed in to g_signal_connect. */ |
| 1155 | 1155 | ||
| 1156 | static void | 1156 | static void |
| 1157 | xg_dialog_response_cb (w, | 1157 | xg_dialog_response_cb (GtkDialog *w, |
| 1158 | response, | 1158 | gint response, |
| 1159 | user_data) | 1159 | gpointer user_data) |
| 1160 | GtkDialog *w; | ||
| 1161 | gint response; | ||
| 1162 | gpointer user_data; | ||
| 1163 | { | 1160 | { |
| 1164 | struct xg_dialog_data *dd = (struct xg_dialog_data *)user_data; | 1161 | struct xg_dialog_data *dd = (struct xg_dialog_data *)user_data; |
| 1165 | dd->response = response; | 1162 | dd->response = response; |
| @@ -1338,13 +1335,11 @@ xg_toggle_notify_cb (GObject *gobject, GParamSpec *arg1, gpointer user_data) | |||
| 1338 | Returns the created widget. */ | 1335 | Returns the created widget. */ |
| 1339 | 1336 | ||
| 1340 | static GtkWidget * | 1337 | static GtkWidget * |
| 1341 | xg_get_file_with_chooser (f, prompt, default_filename, | 1338 | xg_get_file_with_chooser (FRAME_PTR f, |
| 1342 | mustmatch_p, only_dir_p, func) | 1339 | char *prompt, |
| 1343 | FRAME_PTR f; | 1340 | char *default_filename, |
| 1344 | char *prompt; | 1341 | int mustmatch_p, int only_dir_p, |
| 1345 | char *default_filename; | 1342 | xg_get_file_func *func) |
| 1346 | int mustmatch_p, only_dir_p; | ||
| 1347 | xg_get_file_func *func; | ||
| 1348 | { | 1343 | { |
| 1349 | char message[1024]; | 1344 | char message[1024]; |
| 1350 | 1345 | ||
| @@ -1464,13 +1459,12 @@ xg_get_file_name_from_selector (GtkWidget *w) | |||
| 1464 | Returns the created widget. */ | 1459 | Returns the created widget. */ |
| 1465 | 1460 | ||
| 1466 | static GtkWidget * | 1461 | static GtkWidget * |
| 1467 | xg_get_file_with_selection (f, prompt, default_filename, | 1462 | xg_get_file_with_selection ( |
| 1468 | mustmatch_p, only_dir_p, func) | 1463 | FRAME_PTR f, |
| 1469 | FRAME_PTR f; | 1464 | char *prompt, |
| 1470 | char *prompt; | 1465 | char *default_filename, |
| 1471 | char *default_filename; | 1466 | int mustmatch_p, int only_dir_p, |
| 1472 | int mustmatch_p, only_dir_p; | 1467 | xg_get_file_func *func) |
| 1473 | xg_get_file_func *func; | ||
| 1474 | { | 1468 | { |
| 1475 | GtkWidget *filewin; | 1469 | GtkWidget *filewin; |
| 1476 | GtkFileSelection *filesel; | 1470 | GtkFileSelection *filesel; |
| @@ -2278,18 +2272,16 @@ xg_destroy_widgets (GList *list) | |||
| 2278 | This function calls itself to walk through the menu bar names. */ | 2272 | This function calls itself to walk through the menu bar names. */ |
| 2279 | 2273 | ||
| 2280 | static void | 2274 | static void |
| 2281 | xg_update_menubar (menubar, f, list, iter, pos, val, | 2275 | xg_update_menubar (GtkWidget *menubar, |
| 2282 | select_cb, deactivate_cb, highlight_cb, cl_data) | 2276 | FRAME_PTR f, |
| 2283 | GtkWidget *menubar; | 2277 | GList **list, |
| 2284 | FRAME_PTR f; | 2278 | GList *iter, |
| 2285 | GList **list; | 2279 | int pos, |
| 2286 | GList *iter; | 2280 | widget_value *val, |
| 2287 | int pos; | 2281 | GCallback select_cb, |
| 2288 | widget_value *val; | 2282 | GCallback deactivate_cb, |
| 2289 | GCallback select_cb; | 2283 | GCallback highlight_cb, |
| 2290 | GCallback deactivate_cb; | 2284 | xg_menu_cb_data *cl_data) |
| 2291 | GCallback highlight_cb; | ||
| 2292 | xg_menu_cb_data *cl_data; | ||
| 2293 | { | 2285 | { |
| 2294 | if (! iter && ! val) | 2286 | if (! iter && ! val) |
| 2295 | return; | 2287 | return; |
| @@ -2590,15 +2582,13 @@ xg_update_radio_item (widget_value *val, GtkWidget *w) | |||
| 2590 | was NULL. */ | 2582 | was NULL. */ |
| 2591 | 2583 | ||
| 2592 | static GtkWidget * | 2584 | static GtkWidget * |
| 2593 | xg_update_submenu (submenu, f, val, | 2585 | xg_update_submenu (GtkWidget *submenu, |
| 2594 | select_cb, deactivate_cb, highlight_cb, cl_data) | 2586 | FRAME_PTR f, |
| 2595 | GtkWidget *submenu; | 2587 | widget_value *val, |
| 2596 | FRAME_PTR f; | 2588 | GCallback select_cb, |
| 2597 | widget_value *val; | 2589 | GCallback deactivate_cb, |
| 2598 | GCallback select_cb; | 2590 | GCallback highlight_cb, |
| 2599 | GCallback deactivate_cb; | 2591 | xg_menu_cb_data *cl_data) |
| 2600 | GCallback highlight_cb; | ||
| 2601 | xg_menu_cb_data *cl_data; | ||
| 2602 | { | 2592 | { |
| 2603 | GtkWidget *newsub = submenu; | 2593 | GtkWidget *newsub = submenu; |
| 2604 | GList *list = 0; | 2594 | GList *list = 0; |
diff --git a/src/lread.c b/src/lread.c index 8f9667f172d..b35d2be78eb 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -223,7 +223,7 @@ static int read_emacs_mule_char (int, int (*) (int, Lisp_Object), | |||
| 223 | Lisp_Object); | 223 | Lisp_Object); |
| 224 | 224 | ||
| 225 | static void readevalloop (Lisp_Object, FILE*, Lisp_Object, | 225 | static void readevalloop (Lisp_Object, FILE*, Lisp_Object, |
| 226 | Lisp_Object (*) (), int, | 226 | Lisp_Object (*) (Lisp_Object), int, |
| 227 | Lisp_Object, Lisp_Object, | 227 | Lisp_Object, Lisp_Object, |
| 228 | Lisp_Object, Lisp_Object); | 228 | Lisp_Object, Lisp_Object); |
| 229 | static Lisp_Object load_unwind (Lisp_Object); | 229 | static Lisp_Object load_unwind (Lisp_Object); |
| @@ -1610,15 +1610,13 @@ end_of_file_error (void) | |||
| 1610 | If the input is not from a buffer, they must be nil. */ | 1610 | If the input is not from a buffer, they must be nil. */ |
| 1611 | 1611 | ||
| 1612 | static void | 1612 | static void |
| 1613 | readevalloop (readcharfun, stream, sourcename, evalfun, | 1613 | readevalloop (Lisp_Object readcharfun, |
| 1614 | printflag, unibyte, readfun, start, end) | 1614 | FILE *stream, |
| 1615 | Lisp_Object readcharfun; | 1615 | Lisp_Object sourcename, |
| 1616 | FILE *stream; | 1616 | Lisp_Object (*evalfun) (Lisp_Object), |
| 1617 | Lisp_Object sourcename; | 1617 | int printflag, |
| 1618 | Lisp_Object (*evalfun) (); | 1618 | Lisp_Object unibyte, Lisp_Object readfun, |
| 1619 | int printflag; | 1619 | Lisp_Object start, Lisp_Object end) |
| 1620 | Lisp_Object unibyte, readfun; | ||
| 1621 | Lisp_Object start, end; | ||
| 1622 | { | 1620 | { |
| 1623 | register int c; | 1621 | register int c; |
| 1624 | register Lisp_Object val; | 1622 | register Lisp_Object val; |
diff --git a/src/mem-limits.h b/src/mem-limits.h index 16e6b15d922..490a61227ae 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h | |||
| @@ -67,7 +67,7 @@ typedef unsigned long SIZE; | |||
| 67 | #endif | 67 | #endif |
| 68 | #define NULL ((POINTER) 0) | 68 | #define NULL ((POINTER) 0) |
| 69 | 69 | ||
| 70 | extern POINTER start_of_data (); | 70 | extern POINTER start_of_data (void); |
| 71 | #if defined USE_LSB_TAG | 71 | #if defined USE_LSB_TAG |
| 72 | #define EXCEEDS_LISP_PTR(ptr) 0 | 72 | #define EXCEEDS_LISP_PTR(ptr) 0 |
| 73 | #elif defined DATA_SEG_BITS | 73 | #elif defined DATA_SEG_BITS |
diff --git a/src/scroll.c b/src/scroll.c index 410420df0b8..f05b59e3bfd 100644 --- a/src/scroll.c +++ b/src/scroll.c | |||
| @@ -86,17 +86,12 @@ static void do_scrolling (struct frame *, | |||
| 86 | new contents appears. */ | 86 | new contents appears. */ |
| 87 | 87 | ||
| 88 | static void | 88 | static void |
| 89 | calculate_scrolling (frame, matrix, window_size, lines_below, | 89 | calculate_scrolling (FRAME_PTR frame, |
| 90 | draw_cost, old_hash, new_hash, | 90 | /* matrix is of size window_size + 1 on each side. */ |
| 91 | free_at_end) | 91 | struct matrix_elt *matrix, |
| 92 | FRAME_PTR frame; | 92 | int window_size, int lines_below, |
| 93 | /* matrix is of size window_size + 1 on each side. */ | 93 | int *draw_cost, int *old_hash, int *new_hash, |
| 94 | struct matrix_elt *matrix; | 94 | int free_at_end) |
| 95 | int window_size, lines_below; | ||
| 96 | int *draw_cost; | ||
| 97 | int *old_hash; | ||
| 98 | int *new_hash; | ||
| 99 | int free_at_end; | ||
| 100 | { | 95 | { |
| 101 | register int i, j; | 96 | register int i, j; |
| 102 | int frame_lines = FRAME_LINES (frame); | 97 | int frame_lines = FRAME_LINES (frame); |
| @@ -424,18 +419,13 @@ do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, struct m | |||
| 424 | is the equivalent of draw_cost for the old line contents */ | 419 | is the equivalent of draw_cost for the old line contents */ |
| 425 | 420 | ||
| 426 | static void | 421 | static void |
| 427 | calculate_direct_scrolling (frame, matrix, window_size, lines_below, | 422 | calculate_direct_scrolling (FRAME_PTR frame, |
| 428 | draw_cost, old_draw_cost, old_hash, new_hash, | 423 | /* matrix is of size window_size + 1 on each side. */ |
| 429 | free_at_end) | 424 | struct matrix_elt *matrix, |
| 430 | FRAME_PTR frame; | 425 | int window_size, int lines_below, |
| 431 | /* matrix is of size window_size + 1 on each side. */ | 426 | int *draw_cost, int *old_draw_cost, |
| 432 | struct matrix_elt *matrix; | 427 | int *old_hash, int *new_hash, |
| 433 | int window_size, lines_below; | 428 | int free_at_end) |
| 434 | int *draw_cost; | ||
| 435 | int *old_draw_cost; | ||
| 436 | int *old_hash; | ||
| 437 | int *new_hash; | ||
| 438 | int free_at_end; | ||
| 439 | { | 429 | { |
| 440 | register int i, j; | 430 | register int i, j; |
| 441 | int frame_lines = FRAME_LINES (frame); | 431 | int frame_lines = FRAME_LINES (frame); |
| @@ -956,15 +946,11 @@ line_ins_del (FRAME_PTR frame, int ov1, int pf1, int ovn, int pfn, register int | |||
| 956 | } | 946 | } |
| 957 | 947 | ||
| 958 | static void | 948 | static void |
| 959 | ins_del_costs (frame, | 949 | ins_del_costs (FRAME_PTR frame, |
| 960 | one_line_string, multi_string, | 950 | char *one_line_string, char *multi_string, |
| 961 | setup_string, cleanup_string, | 951 | char *setup_string, char *cleanup_string, |
| 962 | costvec, ncostvec, coefficient) | 952 | int *costvec, int *ncostvec, |
| 963 | FRAME_PTR frame; | 953 | int coefficient) |
| 964 | char *one_line_string, *multi_string; | ||
| 965 | char *setup_string, *cleanup_string; | ||
| 966 | int *costvec, *ncostvec; | ||
| 967 | int coefficient; | ||
| 968 | { | 954 | { |
| 969 | if (multi_string) | 955 | if (multi_string) |
| 970 | line_ins_del (frame, | 956 | line_ins_del (frame, |
diff --git a/src/syntax.c b/src/syntax.c index 22620219335..2f83b0cc644 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1331,7 +1331,7 @@ and the function returns nil. Field boundaries are not noticed if | |||
| 1331 | return val == orig_val ? Qt : Qnil; | 1331 | return val == orig_val ? Qt : Qnil; |
| 1332 | } | 1332 | } |
| 1333 | 1333 | ||
| 1334 | Lisp_Object skip_chars (); | 1334 | Lisp_Object skip_chars (int, Lisp_Object, Lisp_Object, int); |
| 1335 | 1335 | ||
| 1336 | DEFUN ("skip-chars-forward", Fskip_chars_forward, Sskip_chars_forward, 1, 2, 0, | 1336 | DEFUN ("skip-chars-forward", Fskip_chars_forward, Sskip_chars_forward, 1, 2, 0, |
| 1337 | doc: /* Move point forward, stopping before a char not in STRING, or at pos LIM. | 1337 | doc: /* Move point forward, stopping before a char not in STRING, or at pos LIM. |
| @@ -2093,12 +2093,10 @@ in_classes (int c, Lisp_Object iso_classes) | |||
| 2093 | remains valid for forward search starting at the returned position. */ | 2093 | remains valid for forward search starting at the returned position. */ |
| 2094 | 2094 | ||
| 2095 | static int | 2095 | static int |
| 2096 | forw_comment (from, from_byte, stop, nesting, style, prev_syntax, | 2096 | forw_comment (EMACS_INT from, EMACS_INT from_byte, EMACS_INT stop, |
| 2097 | charpos_ptr, bytepos_ptr, incomment_ptr) | 2097 | int nesting, int style, int prev_syntax, |
| 2098 | EMACS_INT from, from_byte, stop; | 2098 | EMACS_INT *charpos_ptr, EMACS_INT *bytepos_ptr, |
| 2099 | int nesting, style, prev_syntax; | 2099 | int *incomment_ptr) |
| 2100 | EMACS_INT *charpos_ptr, *bytepos_ptr; | ||
| 2101 | int *incomment_ptr; | ||
| 2102 | { | 2100 | { |
| 2103 | register int c, c1; | 2101 | register int c, c1; |
| 2104 | register enum syntaxcode code; | 2102 | register enum syntaxcode code; |
diff --git a/src/window.c b/src/window.c index f3c63935347..774fec255ec 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3009,11 +3009,8 @@ adjust_window_margins (struct window *w) | |||
| 3009 | a specific window, it will attempt to strictly resize that window | 3009 | a specific window, it will attempt to strictly resize that window |
| 3010 | proportionally, even at the expense of deleting smaller windows. */ | 3010 | proportionally, even at the expense of deleting smaller windows. */ |
| 3011 | static int * | 3011 | static int * |
| 3012 | shrink_windows (total, size, nchildren, shrinkable, resize_fixed_p, | 3012 | shrink_windows (int total, int size, int nchildren, int shrinkable, |
| 3013 | forward, width_p, safe_p) | 3013 | int resize_fixed_p, Lisp_Object forward, int width_p, int safe_p) |
| 3014 | int total, size, nchildren, shrinkable; | ||
| 3015 | int resize_fixed_p, width_p, safe_p; | ||
| 3016 | Lisp_Object forward; | ||
| 3017 | { | 3014 | { |
| 3018 | int available_resize = 0; | 3015 | int available_resize = 0; |
| 3019 | int *new_sizes, *min_sizes; | 3016 | int *new_sizes, *min_sizes; |
diff --git a/src/xrdb.c b/src/xrdb.c index 870672611e4..f9033f22e7f 100644 --- a/src/xrdb.c +++ b/src/xrdb.c | |||
| @@ -68,7 +68,7 @@ extern struct passwd *getpwuid (uid_t); | |||
| 68 | extern struct passwd *getpwnam (const char *); | 68 | extern struct passwd *getpwnam (const char *); |
| 69 | #endif | 69 | #endif |
| 70 | 70 | ||
| 71 | extern char *get_system_name (); | 71 | extern char *get_system_name (void); |
| 72 | 72 | ||
| 73 | /* Make sure not to #include anything after these definitions. Let's | 73 | /* Make sure not to #include anything after these definitions. Let's |
| 74 | not step on anyone's prototypes. */ | 74 | not step on anyone's prototypes. */ |
diff --git a/src/xsmfns.c b/src/xsmfns.c index 214d5ff5407..dbf52af92d5 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c | |||
| @@ -184,18 +184,12 @@ smc_interact_CB (SmcConn smcConn, SmPointer clientData) | |||
| 184 | we do so, because we don't know what the lisp code might do. */ | 184 | we do so, because we don't know what the lisp code might do. */ |
| 185 | 185 | ||
| 186 | static void | 186 | static void |
| 187 | smc_save_yourself_CB (smcConn, | 187 | smc_save_yourself_CB (SmcConn smcConn, |
| 188 | clientData, | 188 | SmPointer clientData, |
| 189 | saveType, | 189 | int saveType, |
| 190 | shutdown, | 190 | Bool shutdown, |
| 191 | interactStyle, | 191 | int interactStyle, |
| 192 | fast) | 192 | Bool fast) |
| 193 | SmcConn smcConn; | ||
| 194 | SmPointer clientData; | ||
| 195 | int saveType; | ||
| 196 | Bool shutdown; | ||
| 197 | int interactStyle; | ||
| 198 | Bool fast; | ||
| 199 | { | 193 | { |
| 200 | #define NR_PROPS 5 | 194 | #define NR_PROPS 5 |
| 201 | 195 | ||
| @@ -336,39 +330,25 @@ smc_shutdown_cancelled_CB (SmcConn smcConn, SmPointer clientData) | |||
| 336 | because there is some error in the session management. */ | 330 | because there is some error in the session management. */ |
| 337 | 331 | ||
| 338 | static void | 332 | static void |
| 339 | smc_error_handler (smcConn, | 333 | smc_error_handler (SmcConn smcConn, |
| 340 | swap, | 334 | Bool swap, |
| 341 | offendingMinorOpcode, | 335 | int offendingMinorOpcode, |
| 342 | offendingSequence, | 336 | unsigned long offendingSequence, |
| 343 | errorClass, | 337 | int errorClass, |
| 344 | severity, | 338 | int severity, |
| 345 | values) | 339 | SmPointer values) |
| 346 | SmcConn smcConn; | ||
| 347 | Bool swap; | ||
| 348 | int offendingMinorOpcode; | ||
| 349 | unsigned long offendingSequence; | ||
| 350 | int errorClass; | ||
| 351 | int severity; | ||
| 352 | SmPointer values; | ||
| 353 | { | 340 | { |
| 354 | /* Empty */ | 341 | /* Empty */ |
| 355 | } | 342 | } |
| 356 | 343 | ||
| 357 | static void | 344 | static void |
| 358 | ice_error_handler (iceConn, | 345 | ice_error_handler (IceConn iceConn, |
| 359 | swap, | 346 | Bool swap, |
| 360 | offendingMinorOpcode, | 347 | int offendingMinorOpcode, |
| 361 | offendingSequence, | 348 | unsigned long offendingSequence, |
| 362 | errorClass, | 349 | int errorClass, |
| 363 | severity, | 350 | int severity, |
| 364 | values) | 351 | IcePointer values) |
| 365 | IceConn iceConn; | ||
| 366 | Bool swap; | ||
| 367 | int offendingMinorOpcode; | ||
| 368 | unsigned long offendingSequence; | ||
| 369 | int errorClass; | ||
| 370 | int severity; | ||
| 371 | IcePointer values; | ||
| 372 | { | 352 | { |
| 373 | /* Empty */ | 353 | /* Empty */ |
| 374 | } | 354 | } |