aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2010-07-12 19:47:17 +0200
committerAndreas Schwab2010-07-12 19:47:17 +0200
commitd5a3eaaf13bf8de7e52a79f3c9e8c248dbb5a93e (patch)
treeeeb2e0ed5cb8f7ccb1cd41cfceb03c6aaa2897fc /src
parentded80a25b7d4a088dd4c4a714666705749106138 (diff)
downloademacs-d5a3eaaf13bf8de7e52a79f3c9e8c248dbb5a93e.tar.gz
emacs-d5a3eaaf13bf8de7e52a79f3c9e8c248dbb5a93e.zip
Convert old-style definitions
* editfns.c (transpose_markers): Convert old-style definition. * emacs.c (abort, shut_down_emacs, fixup_locale) (synchronize_system_time_locale) (synchronize_system_messages_locale, syms_of_emacs): Likewise. * floatfns.c (extract_float, matherr, init_floatfns) (syms_of_floatfns): Likewise. * fns.c (make_hash_table): Likewise. * ftfont.c (ftfont_get_otf, ftfont_otf_features) (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics) (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape) (ftfont_variation_glyphs): Likewise. * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise. * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise. * lread.c (read_filtered_event): Likewise. * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise. * process.c (wait_reading_process_output): Likewise. * scroll.c (do_line_insertion_deletion_costs): Likewise. * search.c (search_buffer, boyer_moore): Likewise. * syntax.c (scan_sexps_forward): Likewise. * xdisp.c (try_scrolling): Likewise. * xfaces.c (face_at_buffer_position, face_for_overlay_string) (face_at_string_position): Likewise. * xfns.c (x_default_scroll_bar_color_parameter): Likewise. * xselect.c (x_get_window_property, receive_incremental_selection) (x_get_window_property_as_lisp_data, lisp_data_to_selection_data): Likewise. * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog30
-rw-r--r--src/editfns.c7
-rw-r--r--src/emacs.c14
-rw-r--r--src/floatfns.c10
-rw-r--r--src/fns.c7
-rw-r--r--src/ftfont.c47
-rw-r--r--src/gtkutil.c25
-rw-r--r--src/keymap.c45
-rw-r--r--src/lread.c6
-rw-r--r--src/minibuf.c35
-rw-r--r--src/process.c10
-rw-r--r--src/scroll.c14
-rw-r--r--src/search.c29
-rw-r--r--src/syntax.c12
-rw-r--r--src/xdisp.c10
-rw-r--r--src/xfaces.c40
-rw-r--r--src/xfns.c12
-rw-r--r--src/xselect.c60
-rw-r--r--src/xterm.c18
19 files changed, 156 insertions, 275 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 267ca18b699..2849373e1a2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,33 @@
12010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2
3 * editfns.c (transpose_markers): Convert old-style definition.
4 * emacs.c (abort, shut_down_emacs, fixup_locale)
5 (synchronize_system_time_locale)
6 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7 * floatfns.c (extract_float, matherr, init_floatfns)
8 (syms_of_floatfns): Likewise.
9 * fns.c (make_hash_table): Likewise.
10 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
11 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
12 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
13 (ftfont_variation_glyphs): Likewise.
14 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
15 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
16 * lread.c (read_filtered_event): Likewise.
17 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
18 * process.c (wait_reading_process_output): Likewise.
19 * scroll.c (do_line_insertion_deletion_costs): Likewise.
20 * search.c (search_buffer, boyer_moore): Likewise.
21 * syntax.c (scan_sexps_forward): Likewise.
22 * xdisp.c (try_scrolling): Likewise.
23 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
24 (face_at_string_position): Likewise.
25 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
26 * xselect.c (x_get_window_property, receive_incremental_selection)
27 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
28 Likewise.
29 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
30
12010-07-12 Dan Nicolaescu <dann@ics.uci.edu> 312010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2 32
3 * callproc.c (child_setup): Remove subprocesses conditional. 33 * callproc.c (child_setup): Remove subprocesses conditional.
diff --git a/src/editfns.c b/src/editfns.c
index 2d8fcb6c85b..805dba60446 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -4169,10 +4169,9 @@ Case is ignored if `case-fold-search' is non-nil in the current buffer. */)
4169 It's the caller's job to ensure that START1 <= END1 <= START2 <= END2. */ 4169 It's the caller's job to ensure that START1 <= END1 <= START2 <= END2. */
4170 4170
4171static void 4171static void
4172transpose_markers (start1, end1, start2, end2, 4172transpose_markers (int start1, int end1, int start2, int end2,
4173 start1_byte, end1_byte, start2_byte, end2_byte) 4173 int start1_byte, int end1_byte,
4174 register int start1, end1, start2, end2; 4174 int start2_byte, int end2_byte)
4175 register int start1_byte, end1_byte, start2_byte, end2_byte;
4176{ 4175{
4177 register int amt1, amt1_byte, amt2, amt2_byte, diff, diff_byte, mpos; 4176 register int amt1, amt1_byte, amt2, amt2_byte, diff, diff_byte, mpos;
4178 register struct Lisp_Marker *marker; 4177 register struct Lisp_Marker *marker;
diff --git a/src/emacs.c b/src/emacs.c
index f94e71b16d8..f5cd46cfc27 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -425,7 +425,7 @@ memory_warning_signal (sig)
425#if ! defined (DOS_NT) && ! defined (NO_ABORT) 425#if ! defined (DOS_NT) && ! defined (NO_ABORT)
426 426
427void 427void
428abort () 428abort (void)
429{ 429{
430 kill (getpid (), SIGABRT); 430 kill (getpid (), SIGABRT);
431 /* This shouldn't be executed, but it prevents a warning. */ 431 /* This shouldn't be executed, but it prevents a warning. */
@@ -2101,9 +2101,7 @@ all of which are called before Emacs is actually killed. */)
2101 and Fkill_emacs. */ 2101 and Fkill_emacs. */
2102 2102
2103void 2103void
2104shut_down_emacs (sig, no_x, stuff) 2104shut_down_emacs (int sig, int no_x, Lisp_Object stuff)
2105 int sig, no_x;
2106 Lisp_Object stuff;
2107{ 2105{
2108 /* Prevent running of hooks from now on. */ 2106 /* Prevent running of hooks from now on. */
2109 Vrun_hooks = Qnil; 2107 Vrun_hooks = Qnil;
@@ -2285,7 +2283,7 @@ You must run Emacs in batch mode in order to dump it. */)
2285#if HAVE_SETLOCALE 2283#if HAVE_SETLOCALE
2286/* Recover from setlocale (LC_ALL, ""). */ 2284/* Recover from setlocale (LC_ALL, ""). */
2287void 2285void
2288fixup_locale () 2286fixup_locale (void)
2289{ 2287{
2290 /* The Emacs Lisp reader needs LC_NUMERIC to be "C", 2288 /* The Emacs Lisp reader needs LC_NUMERIC to be "C",
2291 so that numbers are read and printed properly for Emacs Lisp. */ 2289 so that numbers are read and printed properly for Emacs Lisp. */
@@ -2308,7 +2306,7 @@ synchronize_locale (int category, Lisp_Object *plocale, Lisp_Object desired_loca
2308 2306
2309/* Set system time locale to match Vsystem_time_locale, if possible. */ 2307/* Set system time locale to match Vsystem_time_locale, if possible. */
2310void 2308void
2311synchronize_system_time_locale () 2309synchronize_system_time_locale (void)
2312{ 2310{
2313 synchronize_locale (LC_TIME, &Vprevious_system_time_locale, 2311 synchronize_locale (LC_TIME, &Vprevious_system_time_locale,
2314 Vsystem_time_locale); 2312 Vsystem_time_locale);
@@ -2317,7 +2315,7 @@ synchronize_system_time_locale ()
2317/* Set system messages locale to match Vsystem_messages_locale, if 2315/* Set system messages locale to match Vsystem_messages_locale, if
2318 possible. */ 2316 possible. */
2319void 2317void
2320synchronize_system_messages_locale () 2318synchronize_system_messages_locale (void)
2321{ 2319{
2322#ifdef LC_MESSAGES 2320#ifdef LC_MESSAGES
2323 synchronize_locale (LC_MESSAGES, &Vprevious_system_messages_locale, 2321 synchronize_locale (LC_MESSAGES, &Vprevious_system_messages_locale,
@@ -2443,7 +2441,7 @@ from the parent process and its tty file descriptors. */)
2443} 2441}
2444 2442
2445void 2443void
2446syms_of_emacs () 2444syms_of_emacs (void)
2447{ 2445{
2448 Qfile_name_handler_alist = intern_c_string ("file-name-handler-alist"); 2446 Qfile_name_handler_alist = intern_c_string ("file-name-handler-alist");
2449 staticpro (&Qfile_name_handler_alist); 2447 staticpro (&Qfile_name_handler_alist);
diff --git a/src/floatfns.c b/src/floatfns.c
index 64dc308c7dd..4c1548cfd8f 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -192,8 +192,7 @@ static char *float_error_fn_name;
192/* Extract a Lisp number as a `double', or signal an error. */ 192/* Extract a Lisp number as a `double', or signal an error. */
193 193
194double 194double
195extract_float (num) 195extract_float (Lisp_Object num)
196 Lisp_Object num;
197{ 196{
198 CHECK_NUMBER_OR_FLOAT (num); 197 CHECK_NUMBER_OR_FLOAT (num);
199 198
@@ -985,8 +984,7 @@ float_error (signo)
985 984
986#ifdef HAVE_MATHERR 985#ifdef HAVE_MATHERR
987int 986int
988matherr (x) 987matherr (struct exception *x)
989 struct exception *x;
990{ 988{
991 Lisp_Object args; 989 Lisp_Object args;
992 if (! in_float) 990 if (! in_float)
@@ -1014,7 +1012,7 @@ matherr (x)
1014#endif /* HAVE_MATHERR */ 1012#endif /* HAVE_MATHERR */
1015 1013
1016void 1014void
1017init_floatfns () 1015init_floatfns (void)
1018{ 1016{
1019#ifdef FLOAT_CATCH_SIGILL 1017#ifdef FLOAT_CATCH_SIGILL
1020 signal (SIGILL, float_error); 1018 signal (SIGILL, float_error);
@@ -1023,7 +1021,7 @@ init_floatfns ()
1023} 1021}
1024 1022
1025void 1023void
1026syms_of_floatfns () 1024syms_of_floatfns (void)
1027{ 1025{
1028 defsubr (&Sacos); 1026 defsubr (&Sacos);
1029 defsubr (&Sasin); 1027 defsubr (&Sasin);
diff --git a/src/fns.c b/src/fns.c
index 0e220c5ee0b..3d4c07aad3a 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -3757,10 +3757,9 @@ hashfn_user_defined (struct Lisp_Hash_Table *h, Lisp_Object key)
3757 one of the symbols `key', `value', `key-or-value', or `key-and-value'. */ 3757 one of the symbols `key', `value', `key-or-value', or `key-and-value'. */
3758 3758
3759Lisp_Object 3759Lisp_Object
3760make_hash_table (test, size, rehash_size, rehash_threshold, weak, 3760make_hash_table (Lisp_Object test, Lisp_Object size, Lisp_Object rehash_size,
3761 user_test, user_hash) 3761 Lisp_Object rehash_threshold, Lisp_Object weak,
3762 Lisp_Object test, size, rehash_size, rehash_threshold, weak; 3762 Lisp_Object user_test, Lisp_Object user_hash)
3763 Lisp_Object user_test, user_hash;
3764{ 3763{
3765 struct Lisp_Hash_Table *h; 3764 struct Lisp_Hash_Table *h;
3766 Lisp_Object table; 3765 Lisp_Object table;
diff --git a/src/ftfont.c b/src/ftfont.c
index 670e7964a53..1fdf4c265ce 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -457,8 +457,7 @@ ftfont_get_fc_charset (Lisp_Object entity)
457 457
458#ifdef HAVE_LIBOTF 458#ifdef HAVE_LIBOTF
459static OTF * 459static OTF *
460ftfont_get_otf (ftfont_info) 460ftfont_get_otf (struct ftfont_info *ftfont_info)
461 struct ftfont_info *ftfont_info;
462{ 461{
463 OTF *otf; 462 OTF *otf;
464 463
@@ -1475,8 +1474,7 @@ ftfont_anchor_point (struct font *font, unsigned int code, int index, int *x, in
1475#ifdef HAVE_LIBOTF 1474#ifdef HAVE_LIBOTF
1476 1475
1477static Lisp_Object 1476static Lisp_Object
1478ftfont_otf_features (gsub_gpos) 1477ftfont_otf_features (OTF_GSUB_GPOS *gsub_gpos)
1479 OTF_GSUB_GPOS *gsub_gpos;
1480{ 1478{
1481 Lisp_Object scripts, langsyses, features, sym; 1479 Lisp_Object scripts, langsyses, features, sym;
1482 int i, j, k, l; 1480 int i, j, k, l;
@@ -1520,8 +1518,7 @@ ftfont_otf_features (gsub_gpos)
1520 1518
1521 1519
1522static Lisp_Object 1520static Lisp_Object
1523ftfont_otf_capability (font) 1521ftfont_otf_capability (struct font *font)
1524 struct font *font;
1525{ 1522{
1526 struct ftfont_info *ftfont_info = (struct ftfont_info *) font; 1523 struct ftfont_info *ftfont_info = (struct ftfont_info *) font;
1527 OTF *otf = ftfont_get_otf (ftfont_info); 1524 OTF *otf = ftfont_get_otf (ftfont_info);
@@ -1559,10 +1556,8 @@ struct MFLTFontFT
1559}; 1556};
1560 1557
1561static int 1558static int
1562ftfont_get_glyph_id (font, gstring, from, to) 1559ftfont_get_glyph_id (MFLTFont *font, MFLTGlyphString *gstring,
1563 MFLTFont *font; 1560 int from, int to)
1564 MFLTGlyphString *gstring;
1565 int from, to;
1566{ 1561{
1567 struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font; 1562 struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font;
1568 FT_Face ft_face = flt_font_ft->ft_face; 1563 FT_Face ft_face = flt_font_ft->ft_face;
@@ -1586,10 +1581,8 @@ ftfont_get_glyph_id (font, gstring, from, to)
1586#define ROUND(x) (((x)+32) & -64) 1581#define ROUND(x) (((x)+32) & -64)
1587 1582
1588static int 1583static int
1589ftfont_get_metrics (font, gstring, from, to) 1584ftfont_get_metrics (MFLTFont *font, MFLTGlyphString *gstring,
1590 MFLTFont *font; 1585 int from, int to)
1591 MFLTGlyphString *gstring;
1592 int from, to;
1593{ 1586{
1594 struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font; 1587 struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font;
1595 FT_Face ft_face = flt_font_ft->ft_face; 1588 FT_Face ft_face = flt_font_ft->ft_face;
@@ -2086,13 +2079,9 @@ ftfont_try_otf (MFLTFont *font, MFLTOtfSpec *spec,
2086#else /* not M17N_FLT_USE_NEW_FEATURE */ 2079#else /* not M17N_FLT_USE_NEW_FEATURE */
2087 2080
2088static int 2081static int
2089ftfont_drive_otf (font, spec, in, from, to, out, adjustment) 2082ftfont_drive_otf (MFLTFont *font, MFLTOtfSpec *spec, MFLTGlyphString *in,
2090 MFLTFont *font; 2083 int from, int to,
2091 MFLTOtfSpec *spec; 2084 MFLTGlyphString *out, MFLTGlyphAdjustment *adjustment)
2092 MFLTGlyphString *in;
2093 int from, to;
2094 MFLTGlyphString *out;
2095 MFLTGlyphAdjustment *adjustment;
2096{ 2085{
2097 struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font; 2086 struct MFLTFontFT *flt_font_ft = (struct MFLTFontFT *) font;
2098 FT_Face ft_face = flt_font_ft->ft_face; 2087 FT_Face ft_face = flt_font_ft->ft_face;
@@ -2347,12 +2336,8 @@ static int m17n_flt_initialized;
2347extern Lisp_Object QCfamily; 2336extern Lisp_Object QCfamily;
2348 2337
2349static Lisp_Object 2338static Lisp_Object
2350ftfont_shape_by_flt (lgstring, font, ft_face, otf, matrix) 2339ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font,
2351 Lisp_Object lgstring; 2340 FT_Face ft_face, OTF *otf, FT_Matrix *matrix)
2352 struct font *font;
2353 FT_Face ft_face;
2354 OTF *otf;
2355 FT_Matrix *matrix;
2356{ 2341{
2357 EMACS_UINT len = LGSTRING_GLYPH_LEN (lgstring); 2342 EMACS_UINT len = LGSTRING_GLYPH_LEN (lgstring);
2358 EMACS_UINT i; 2343 EMACS_UINT i;
@@ -2518,8 +2503,7 @@ ftfont_shape_by_flt (lgstring, font, ft_face, otf, matrix)
2518} 2503}
2519 2504
2520Lisp_Object 2505Lisp_Object
2521ftfont_shape (lgstring) 2506ftfont_shape (Lisp_Object lgstring)
2522 Lisp_Object lgstring;
2523{ 2507{
2524 struct font *font; 2508 struct font *font;
2525 struct ftfont_info *ftfont_info; 2509 struct ftfont_info *ftfont_info;
@@ -2539,10 +2523,7 @@ ftfont_shape (lgstring)
2539#ifdef HAVE_OTF_GET_VARIATION_GLYPHS 2523#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
2540 2524
2541static int 2525static int
2542ftfont_variation_glyphs (font, c, variations) 2526ftfont_variation_glyphs (struct font *font, int c, unsigned variations[256])
2543 struct font *font;
2544 int c;
2545 unsigned variations[256];
2546{ 2527{
2547 struct ftfont_info *ftfont_info = (struct ftfont_info *) font; 2528 struct ftfont_info *ftfont_info = (struct ftfont_info *) font;
2548 OTF *otf = ftfont_get_otf (ftfont_info); 2529 OTF *otf = ftfont_get_otf (ftfont_info);
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 447d5642b79..396d9018e36 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -2175,15 +2175,9 @@ create_menus (widget_value *data,
2175 Returns the widget created. */ 2175 Returns the widget created. */
2176 2176
2177GtkWidget * 2177GtkWidget *
2178xg_create_widget (type, name, f, val, 2178xg_create_widget (char *type, char *name, FRAME_PTR f, widget_value *val,
2179 select_cb, deactivate_cb, highlight_cb) 2179 GCallback select_cb, GCallback deactivate_cb,
2180 char *type; 2180 GCallback highlight_cb)
2181 char *name;
2182 FRAME_PTR f;
2183 widget_value *val;
2184 GCallback select_cb;
2185 GCallback deactivate_cb;
2186 GCallback highlight_cb;
2187{ 2181{
2188 GtkWidget *w = 0; 2182 GtkWidget *w = 0;
2189 int menu_bar_p = strcmp (type, "menubar") == 0; 2183 int menu_bar_p = strcmp (type, "menubar") == 0;
@@ -2743,15 +2737,10 @@ xg_update_submenu (GtkWidget *submenu,
2743 HIGHLIGHT_CB is the callback to call when entering/leaving menu items. */ 2737 HIGHLIGHT_CB is the callback to call when entering/leaving menu items. */
2744 2738
2745void 2739void
2746xg_modify_menubar_widgets (menubar, f, val, deep_p, 2740xg_modify_menubar_widgets (GtkWidget *menubar, FRAME_PTR f, widget_value *val,
2747 select_cb, deactivate_cb, highlight_cb) 2741 int deep_p,
2748 GtkWidget *menubar; 2742 GCallback select_cb, GCallback deactivate_cb,
2749 FRAME_PTR f; 2743 GCallback highlight_cb)
2750 widget_value *val;
2751 int deep_p;
2752 GCallback select_cb;
2753 GCallback deactivate_cb;
2754 GCallback highlight_cb;
2755{ 2744{
2756 xg_menu_cb_data *cl_data; 2745 xg_menu_cb_data *cl_data;
2757 GList *list = gtk_container_get_children (GTK_CONTAINER (menubar)); 2746 GList *list = gtk_container_get_children (GTK_CONTAINER (menubar));
diff --git a/src/keymap.c b/src/keymap.c
index 40005a51008..8a0c855e0dc 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -3140,15 +3140,9 @@ You type Translation\n\
3140 don't omit it; instead, mention it but say it is shadowed. */ 3140 don't omit it; instead, mention it but say it is shadowed. */
3141 3141
3142void 3142void
3143describe_map_tree (startmap, partial, shadow, prefix, title, nomenu, transl, 3143describe_map_tree (Lisp_Object startmap, int partial, Lisp_Object shadow,
3144 always_title, mention_shadow) 3144 Lisp_Object prefix, char *title, int nomenu, int transl,
3145 Lisp_Object startmap, shadow, prefix; 3145 int always_title, int mention_shadow)
3146 int partial;
3147 char *title;
3148 int nomenu;
3149 int transl;
3150 int always_title;
3151 int mention_shadow;
3152{ 3146{
3153 Lisp_Object maps, orig_maps, seen, sub_shadows; 3147 Lisp_Object maps, orig_maps, seen, sub_shadows;
3154 struct gcpro gcpro1, gcpro2, gcpro3; 3148 struct gcpro gcpro1, gcpro2, gcpro3;
@@ -3355,16 +3349,10 @@ describe_map_compare (const void *aa, const void *bb)
3355 PARTIAL, SHADOW, NOMENU are as in `describe_map_tree' above. */ 3349 PARTIAL, SHADOW, NOMENU are as in `describe_map_tree' above. */
3356 3350
3357static void 3351static void
3358describe_map (map, prefix, elt_describer, partial, shadow, 3352describe_map (Lisp_Object map, Lisp_Object prefix,
3359 seen, nomenu, mention_shadow) 3353 void (*elt_describer) (Lisp_Object, Lisp_Object),
3360 register Lisp_Object map; 3354 int partial, Lisp_Object shadow,
3361 Lisp_Object prefix; 3355 Lisp_Object *seen, int nomenu, int mention_shadow)
3362 void (*elt_describer) (Lisp_Object, Lisp_Object);
3363 int partial;
3364 Lisp_Object shadow;
3365 Lisp_Object *seen;
3366 int nomenu;
3367 int mention_shadow;
3368{ 3356{
3369 Lisp_Object tail, definition, event; 3357 Lisp_Object tail, definition, event;
3370 Lisp_Object tem; 3358 Lisp_Object tem;
@@ -3603,20 +3591,11 @@ DESCRIBER is the output function used; nil means use `princ'. */)
3603 ARGS is simply passed as the second argument to ELT_DESCRIBER. */ 3591 ARGS is simply passed as the second argument to ELT_DESCRIBER. */
3604 3592
3605static void 3593static void
3606describe_vector (vector, prefix, args, elt_describer, 3594describe_vector (Lisp_Object vector, Lisp_Object prefix, Lisp_Object args,
3607 partial, shadow, entire_map, 3595 void (*elt_describer) (Lisp_Object, Lisp_Object),
3608 indices, char_table_depth, keymap_p, 3596 int partial, Lisp_Object shadow, Lisp_Object entire_map,
3609 mention_shadow) 3597 int *indices, int char_table_depth, int keymap_p,
3610 register Lisp_Object vector; 3598 int mention_shadow)
3611 Lisp_Object prefix, args;
3612 void (*elt_describer) (Lisp_Object, Lisp_Object);
3613 int partial;
3614 Lisp_Object shadow;
3615 Lisp_Object entire_map;
3616 int *indices;
3617 int char_table_depth;
3618 int keymap_p;
3619 int mention_shadow;
3620{ 3599{
3621 Lisp_Object definition; 3600 Lisp_Object definition;
3622 Lisp_Object tem2; 3601 Lisp_Object tem2;
diff --git a/src/lread.c b/src/lread.c
index 79214936f4c..96108ec4a72 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -661,10 +661,8 @@ static void substitute_in_interval (INTERVAL, Lisp_Object);
661 return Qnil if no input arrives within that time. */ 661 return Qnil if no input arrives within that time. */
662 662
663Lisp_Object 663Lisp_Object
664read_filtered_event (no_switch_frame, ascii_required, error_nonascii, 664read_filtered_event (int no_switch_frame, int ascii_required,
665 input_method, seconds) 665 int error_nonascii, int input_method, Lisp_Object seconds)
666 int no_switch_frame, ascii_required, error_nonascii, input_method;
667 Lisp_Object seconds;
668{ 666{
669 Lisp_Object val, delayed_switch_frame; 667 Lisp_Object val, delayed_switch_frame;
670 EMACS_TIME end_time; 668 EMACS_TIME end_time;
diff --git a/src/minibuf.c b/src/minibuf.c
index 1e1300b675c..5dc7b0b1f06 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -278,19 +278,12 @@ string_to_object (Lisp_Object val, Lisp_Object defalt)
278 from read_minibuf to do the job if noninteractive. */ 278 from read_minibuf to do the job if noninteractive. */
279 279
280static Lisp_Object 280static Lisp_Object
281read_minibuf_noninteractive (map, initial, prompt, backup_n, expflag, 281read_minibuf_noninteractive (Lisp_Object map, Lisp_Object initial,
282 histvar, histpos, defalt, allow_props, 282 Lisp_Object prompt, Lisp_Object backup_n,
283 inherit_input_method) 283 int expflag,
284 Lisp_Object map; 284 Lisp_Object histvar, Lisp_Object histpos,
285 Lisp_Object initial; 285 Lisp_Object defalt,
286 Lisp_Object prompt; 286 int allow_props, int inherit_input_method)
287 Lisp_Object backup_n;
288 int expflag;
289 Lisp_Object histvar;
290 Lisp_Object histpos;
291 Lisp_Object defalt;
292 int allow_props;
293 int inherit_input_method;
294{ 287{
295 int size, len; 288 int size, len;
296 char *line, *s; 289 char *line, *s;
@@ -434,18 +427,10 @@ If the current buffer is not a minibuffer, return its entire contents. */)
434 current input method. */ 427 current input method. */
435 428
436static Lisp_Object 429static Lisp_Object
437read_minibuf (map, initial, prompt, backup_n, expflag, 430read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt,
438 histvar, histpos, defalt, allow_props, inherit_input_method) 431 Lisp_Object backup_n, int expflag,
439 Lisp_Object map; 432 Lisp_Object histvar, Lisp_Object histpos, Lisp_Object defalt,
440 Lisp_Object initial; 433 int allow_props, int inherit_input_method)
441 Lisp_Object prompt;
442 Lisp_Object backup_n;
443 int expflag;
444 Lisp_Object histvar;
445 Lisp_Object histpos;
446 Lisp_Object defalt;
447 int allow_props;
448 int inherit_input_method;
449{ 434{
450 Lisp_Object val; 435 Lisp_Object val;
451 int count = SPECPDL_INDEX (); 436 int count = SPECPDL_INDEX ();
diff --git a/src/process.c b/src/process.c
index 8de85354dd3..233513efe9a 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4492,12 +4492,10 @@ select_wrapper (int n, fd_set *rfd, fd_set *wfd, fd_set *xfd, struct timeval *tm
4492 Otherwise, return true if we received input from any process. */ 4492 Otherwise, return true if we received input from any process. */
4493 4493
4494int 4494int
4495wait_reading_process_output (time_limit, microsecs, read_kbd, do_display, 4495wait_reading_process_output (int time_limit, int microsecs, int read_kbd,
4496 wait_for_cell, wait_proc, just_wait_proc) 4496 int do_display,
4497 int time_limit, microsecs, read_kbd, do_display; 4497 Lisp_Object wait_for_cell,
4498 Lisp_Object wait_for_cell; 4498 struct Lisp_Process *wait_proc, int just_wait_proc)
4499 struct Lisp_Process *wait_proc;
4500 int just_wait_proc;
4501{ 4499{
4502 register int channel, nfds; 4500 register int channel, nfds;
4503 SELECT_TYPE Available; 4501 SELECT_TYPE Available;
diff --git a/src/scroll.c b/src/scroll.c
index bf7a6d484cb..bdb7f691ee7 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -992,15 +992,11 @@ ins_del_costs (FRAME_PTR frame,
992 */ 992 */
993 993
994void 994void
995do_line_insertion_deletion_costs (frame, 995do_line_insertion_deletion_costs (FRAME_PTR frame,
996 ins_line_string, multi_ins_string, 996 char *ins_line_string, char *multi_ins_string,
997 del_line_string, multi_del_string, 997 char *del_line_string, char *multi_del_string,
998 setup_string, cleanup_string, coefficient) 998 char *setup_string, char *cleanup_string,
999 FRAME_PTR frame; 999 int coefficient)
1000 char *ins_line_string, *multi_ins_string;
1001 char *del_line_string, *multi_del_string;
1002 char *setup_string, *cleanup_string;
1003 int coefficient;
1004{ 1000{
1005 if (FRAME_INSERT_COST (frame) != 0) 1001 if (FRAME_INSERT_COST (frame) != 0)
1006 { 1002 {
diff --git a/src/search.c b/src/search.c
index 4f8b801c122..602a50c0abe 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1110,18 +1110,9 @@ while (0)
1110static struct re_registers search_regs_1; 1110static struct re_registers search_regs_1;
1111 1111
1112static EMACS_INT 1112static EMACS_INT
1113search_buffer (string, pos, pos_byte, lim, lim_byte, n, 1113search_buffer (Lisp_Object string, EMACS_INT pos, EMACS_INT pos_byte,
1114 RE, trt, inverse_trt, posix) 1114 EMACS_INT lim, EMACS_INT lim_byte, int n,
1115 Lisp_Object string; 1115 int RE, Lisp_Object trt, Lisp_Object inverse_trt, int posix)
1116 EMACS_INT pos;
1117 EMACS_INT pos_byte;
1118 EMACS_INT lim;
1119 EMACS_INT lim_byte;
1120 int n;
1121 int RE;
1122 Lisp_Object trt;
1123 Lisp_Object inverse_trt;
1124 int posix;
1125{ 1116{
1126 int len = SCHARS (string); 1117 int len = SCHARS (string);
1127 int len_byte = SBYTES (string); 1118 int len_byte = SBYTES (string);
@@ -1668,16 +1659,10 @@ simple_search (int n, unsigned char *pat, int len, int len_byte, Lisp_Object trt
1668 If that criterion is not satisfied, do not call this function. */ 1659 If that criterion is not satisfied, do not call this function. */
1669 1660
1670static EMACS_INT 1661static EMACS_INT
1671boyer_moore (n, base_pat, len, len_byte, trt, inverse_trt, 1662boyer_moore (int n, unsigned char *base_pat, int len, int len_byte,
1672 pos, pos_byte, lim, lim_byte, char_base) 1663 Lisp_Object trt, Lisp_Object inverse_trt,
1673 int n; 1664 EMACS_INT pos, EMACS_INT pos_byte,
1674 unsigned char *base_pat; 1665 EMACS_INT lim, EMACS_INT lim_byte, int char_base)
1675 int len, len_byte;
1676 Lisp_Object trt;
1677 Lisp_Object inverse_trt;
1678 EMACS_INT pos, pos_byte;
1679 EMACS_INT lim, lim_byte;
1680 int char_base;
1681{ 1666{
1682 int direction = ((n > 0) ? 1 : -1); 1667 int direction = ((n > 0) ? 1 : -1);
1683 register int dirlen; 1668 register int dirlen;
diff --git a/src/syntax.c b/src/syntax.c
index 3857f15cd10..9b707c6c3b7 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2861,14 +2861,10 @@ This includes chars with "quote" or "prefix" syntax (' or p). */)
2861 after the beginning of a string, or after the end of a string. */ 2861 after the beginning of a string, or after the end of a string. */
2862 2862
2863static void 2863static void
2864scan_sexps_forward (stateptr, from, from_byte, end, targetdepth, 2864scan_sexps_forward (struct lisp_parse_state *stateptr,
2865 stopbefore, oldstate, commentstop) 2865 EMACS_INT from, EMACS_INT from_byte, EMACS_INT end,
2866 struct lisp_parse_state *stateptr; 2866 int targetdepth, int stopbefore,
2867 register EMACS_INT from; 2867 Lisp_Object oldstate, int commentstop)
2868 EMACS_INT from_byte, end;
2869 int targetdepth, stopbefore;
2870 Lisp_Object oldstate;
2871 int commentstop;
2872{ 2868{
2873 struct lisp_parse_state state; 2869 struct lisp_parse_state state;
2874 2870
diff --git a/src/xdisp.c b/src/xdisp.c
index 97e6f1c09f7..8879fa41b75 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -13082,13 +13082,9 @@ enum
13082}; 13082};
13083 13083
13084static int 13084static int
13085try_scrolling (window, just_this_one_p, scroll_conservatively, 13085try_scrolling (Lisp_Object window, int just_this_one_p,
13086 scroll_step, temp_scroll_step, last_line_misfit) 13086 EMACS_INT scroll_conservatively, EMACS_INT scroll_step,
13087 Lisp_Object window; 13087 int temp_scroll_step, int last_line_misfit)
13088 int just_this_one_p;
13089 EMACS_INT scroll_conservatively, scroll_step;
13090 int temp_scroll_step;
13091 int last_line_misfit;
13092{ 13088{
13093 struct window *w = XWINDOW (window); 13089 struct window *w = XWINDOW (window);
13094 struct frame *f = XFRAME (w->frame); 13090 struct frame *f = XFRAME (w->frame);
diff --git a/src/xfaces.c b/src/xfaces.c
index ad436f06202..19be9971d07 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6074,15 +6074,10 @@ compute_char_face (struct frame *f, int ch, Lisp_Object prop)
6074 The face returned is suitable for displaying ASCII characters. */ 6074 The face returned is suitable for displaying ASCII characters. */
6075 6075
6076int 6076int
6077face_at_buffer_position (w, pos, region_beg, region_end, 6077face_at_buffer_position (struct window *w, EMACS_INT pos,
6078 endptr, limit, mouse, base_face_id) 6078 EMACS_INT region_beg, EMACS_INT region_end,
6079 struct window *w; 6079 EMACS_INT *endptr, EMACS_INT limit,
6080 EMACS_INT pos; 6080 int mouse, int base_face_id)
6081 EMACS_INT region_beg, region_end;
6082 EMACS_INT *endptr;
6083 EMACS_INT limit;
6084 int mouse;
6085 int base_face_id;
6086{ 6081{
6087 struct frame *f = XFRAME (w->frame); 6082 struct frame *f = XFRAME (w->frame);
6088 Lisp_Object attrs[LFACE_VECTOR_SIZE]; 6083 Lisp_Object attrs[LFACE_VECTOR_SIZE];
@@ -6182,15 +6177,10 @@ face_at_buffer_position (w, pos, region_beg, region_end,
6182 simply disregards the `face' properties of all overlays. */ 6177 simply disregards the `face' properties of all overlays. */
6183 6178
6184int 6179int
6185face_for_overlay_string (w, pos, region_beg, region_end, 6180face_for_overlay_string (struct window *w, EMACS_INT pos,
6186 endptr, limit, mouse, overlay) 6181 EMACS_INT region_beg, EMACS_INT region_end,
6187 struct window *w; 6182 EMACS_INT *endptr, EMACS_INT limit,
6188 EMACS_INT pos; 6183 int mouse, Lisp_Object overlay)
6189 EMACS_INT region_beg, region_end;
6190 EMACS_INT *endptr;
6191 EMACS_INT limit;
6192 int mouse;
6193 Lisp_Object overlay;
6194{ 6184{
6195 struct frame *f = XFRAME (w->frame); 6185 struct frame *f = XFRAME (w->frame);
6196 Lisp_Object attrs[LFACE_VECTOR_SIZE]; 6186 Lisp_Object attrs[LFACE_VECTOR_SIZE];
@@ -6275,15 +6265,11 @@ face_for_overlay_string (w, pos, region_beg, region_end,
6275 for displaying ASCII characters. */ 6265 for displaying ASCII characters. */
6276 6266
6277int 6267int
6278face_at_string_position (w, string, pos, bufpos, region_beg, 6268face_at_string_position (struct window *w, Lisp_Object string,
6279 region_end, endptr, base_face_id, mouse_p) 6269 EMACS_INT pos, EMACS_INT bufpos,
6280 struct window *w; 6270 EMACS_INT region_beg, EMACS_INT region_end,
6281 Lisp_Object string; 6271 EMACS_INT *endptr, enum face_id base_face_id,
6282 EMACS_INT pos, bufpos; 6272 int mouse_p)
6283 EMACS_INT region_beg, region_end;
6284 EMACS_INT *endptr;
6285 enum face_id base_face_id;
6286 int mouse_p;
6287{ 6273{
6288 Lisp_Object prop, position, end, limit; 6274 Lisp_Object prop, position, end, limit;
6289 struct frame *f = XFRAME (WINDOW_FRAME (w)); 6275 struct frame *f = XFRAME (WINDOW_FRAME (w));
diff --git a/src/xfns.c b/src/xfns.c
index 5a96598eaee..87170af9498 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1762,14 +1762,10 @@ x_set_scroll_bar_default_width (struct frame *f)
1762 named NAME. If that is not found either, use the value DEFLT. */ 1762 named NAME. If that is not found either, use the value DEFLT. */
1763 1763
1764static Lisp_Object 1764static Lisp_Object
1765x_default_scroll_bar_color_parameter (f, alist, prop, xprop, xclass, 1765x_default_scroll_bar_color_parameter (struct frame *f,
1766 foreground_p) 1766 Lisp_Object alist, Lisp_Object prop,
1767 struct frame *f; 1767 char *xprop, char *xclass,
1768 Lisp_Object alist; 1768 int foreground_p)
1769 Lisp_Object prop;
1770 char *xprop;
1771 char *xclass;
1772 int foreground_p;
1773{ 1769{
1774 struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); 1770 struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
1775 Lisp_Object tem; 1771 Lisp_Object tem;
diff --git a/src/xselect.c b/src/xselect.c
index 45690a05460..cd0307344ab 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1453,18 +1453,10 @@ x_get_foreign_selection (Lisp_Object selection_symbol, Lisp_Object target_type,
1453/* Use xfree, not XFree, to free the data obtained with this function. */ 1453/* Use xfree, not XFree, to free the data obtained with this function. */
1454 1454
1455static void 1455static void
1456x_get_window_property (display, window, property, data_ret, bytes_ret, 1456x_get_window_property (Display *display, Window window, Atom property,
1457 actual_type_ret, actual_format_ret, actual_size_ret, 1457 unsigned char **data_ret, int *bytes_ret,
1458 delete_p) 1458 Atom *actual_type_ret, int *actual_format_ret,
1459 Display *display; 1459 unsigned long *actual_size_ret, int delete_p)
1460 Window window;
1461 Atom property;
1462 unsigned char **data_ret;
1463 int *bytes_ret;
1464 Atom *actual_type_ret;
1465 int *actual_format_ret;
1466 unsigned long *actual_size_ret;
1467 int delete_p;
1468{ 1460{
1469 int total_size; 1461 int total_size;
1470 unsigned long bytes_remaining; 1462 unsigned long bytes_remaining;
@@ -1572,19 +1564,12 @@ x_get_window_property (display, window, property, data_ret, bytes_ret,
1572/* Use xfree, not XFree, to free the data obtained with this function. */ 1564/* Use xfree, not XFree, to free the data obtained with this function. */
1573 1565
1574static void 1566static void
1575receive_incremental_selection (display, window, property, target_type, 1567receive_incremental_selection (Display *display, Window window, Atom property,
1576 min_size_bytes, data_ret, size_bytes_ret, 1568 Lisp_Object target_type,
1577 type_ret, format_ret, size_ret) 1569 unsigned int min_size_bytes,
1578 Display *display; 1570 unsigned char **data_ret, int *size_bytes_ret,
1579 Window window; 1571 Atom *type_ret, int *format_ret,
1580 Atom property; 1572 unsigned long *size_ret)
1581 Lisp_Object target_type; /* for error messages only */
1582 unsigned int min_size_bytes;
1583 unsigned char **data_ret;
1584 int *size_bytes_ret;
1585 Atom *type_ret;
1586 unsigned long *size_ret;
1587 int *format_ret;
1588{ 1573{
1589 int offset = 0; 1574 int offset = 0;
1590 struct prop_location *wait_object; 1575 struct prop_location *wait_object;
@@ -1673,13 +1658,10 @@ receive_incremental_selection (display, window, property, target_type,
1673 TARGET_TYPE and SELECTION_ATOM are used in error message if this fails. */ 1658 TARGET_TYPE and SELECTION_ATOM are used in error message if this fails. */
1674 1659
1675static Lisp_Object 1660static Lisp_Object
1676x_get_window_property_as_lisp_data (display, window, property, target_type, 1661x_get_window_property_as_lisp_data (Display *display, Window window,
1677 selection_atom) 1662 Atom property,
1678 Display *display; 1663 Lisp_Object target_type,
1679 Window window; 1664 Atom selection_atom)
1680 Atom property;
1681 Lisp_Object target_type; /* for error messages only */
1682 Atom selection_atom; /* for error messages only */
1683{ 1665{
1684 Atom actual_type; 1666 Atom actual_type;
1685 int actual_format; 1667 int actual_format;
@@ -1869,16 +1851,10 @@ selection_data_to_lisp_data (Display *display, unsigned char *data, int size, At
1869/* Use xfree, not XFree, to free the data obtained with this function. */ 1851/* Use xfree, not XFree, to free the data obtained with this function. */
1870 1852
1871static void 1853static void
1872lisp_data_to_selection_data (display, obj, 1854lisp_data_to_selection_data (Display *display, Lisp_Object obj,
1873 data_ret, type_ret, size_ret, 1855 unsigned char **data_ret, Atom *type_ret,
1874 format_ret, nofree_ret) 1856 unsigned int *size_ret,
1875 Display *display; 1857 int *format_ret, int *nofree_ret)
1876 Lisp_Object obj;
1877 unsigned char **data_ret;
1878 Atom *type_ret;
1879 unsigned int *size_ret;
1880 int *format_ret;
1881 int *nofree_ret;
1882{ 1858{
1883 Lisp_Object type = Qnil; 1859 Lisp_Object type = Qnil;
1884 struct x_display_info *dpyinfo = x_display_info_for_display (display); 1860 struct x_display_info *dpyinfo = x_display_info_for_display (display);
diff --git a/src/xterm.c b/src/xterm.c
index 3ec0636fc60..c00d0330c23 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1967,12 +1967,10 @@ x_setup_relief_colors (struct glyph_string *s)
1967 when drawing. */ 1967 when drawing. */
1968 1968
1969static void 1969static void
1970x_draw_relief_rect (f, left_x, top_y, right_x, bottom_y, width, 1970x_draw_relief_rect (struct frame *f,
1971 raised_p, top_p, bot_p, left_p, right_p, clip_rect) 1971 int left_x, int top_y, int right_x, int bottom_y, int width,
1972 struct frame *f; 1972 int raised_p, int top_p, int bot_p, int left_p, int right_p,
1973 int left_x, top_y, right_x, bottom_y, width; 1973 XRectangle *clip_rect)
1974 int top_p, bot_p, left_p, right_p, raised_p;
1975 XRectangle *clip_rect;
1976{ 1974{
1977 Display *dpy = FRAME_X_DISPLAY (f); 1975 Display *dpy = FRAME_X_DISPLAY (f);
1978 Window window = FRAME_X_WINDOW (f); 1976 Window window = FRAME_X_WINDOW (f);
@@ -2030,11 +2028,9 @@ x_draw_relief_rect (f, left_x, top_y, right_x, bottom_y, width,
2030 rectangle to use when drawing. */ 2028 rectangle to use when drawing. */
2031 2029
2032static void 2030static void
2033x_draw_box_rect (s, left_x, top_y, right_x, bottom_y, width, 2031x_draw_box_rect (struct glyph_string *s,
2034 left_p, right_p, clip_rect) 2032 int left_x, int top_y, int right_x, int bottom_y, int width,
2035 struct glyph_string *s; 2033 int left_p, int right_p, XRectangle *clip_rect)
2036 int left_x, top_y, right_x, bottom_y, width, left_p, right_p;
2037 XRectangle *clip_rect;
2038{ 2034{
2039 XGCValues xgcv; 2035 XGCValues xgcv;
2040 2036