diff options
| author | Dan Nicolaescu | 2010-07-07 22:42:59 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-07 22:42:59 -0700 |
| commit | d8825aa36e51836d75112ebddc93beca9f31185a (patch) | |
| tree | 414c54c083c3312490f1b03113c906d044a9e25f | |
| parent | 295d0d8f2008cbd2deb200fc6ecb30d19847f725 (diff) | |
| download | emacs-d8825aa36e51836d75112ebddc93beca9f31185a.tar.gz emacs-d8825aa36e51836d75112ebddc93beca9f31185a.zip | |
Remove alternative K&R declarations.
* lwlib/lwlib.c (allocate_widget_instance, get_widget_info)
(get_widget_instance, find_instance, set_one_value)
(update_one_widget_instance, update_all_widget_values)
(lw_modify_all_widgets, lw_get_widget, lw_make_widget)
(lw_create_widget, lw_pop_all_widgets, lw_show_busy)
(lw_refigure_widget, lw_allow_resizing): Remove alternative K&R
declarations.
* lwlib/lwlib-Xlw.c (xlw_update_one_widget):
(xlw_pop_instance): Likewise.
* lwlib/lwlib-Xaw.c (xaw_update_one_widget, xaw_pop_instance):
Likewise.
* lwlib/lwlib-Xm.c (P_): Remove.
* src/xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
| -rw-r--r-- | lwlib/ChangeLog | 15 | ||||
| -rw-r--r-- | lwlib/lwlib-Xaw.c | 14 | ||||
| -rw-r--r-- | lwlib/lwlib-Xlw.c | 14 | ||||
| -rw-r--r-- | lwlib/lwlib-Xm.c | 7 | ||||
| -rw-r--r-- | lwlib/lwlib.c | 114 | ||||
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 5 |
7 files changed, 17 insertions, 154 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 91ad1c5ddee..67762e16041 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * lwlib.c (allocate_widget_instance, get_widget_info) | ||
| 4 | (get_widget_instance, find_instance, set_one_value) | ||
| 5 | (update_one_widget_instance, update_all_widget_values) | ||
| 6 | (lw_modify_all_widgets, lw_get_widget, lw_make_widget) | ||
| 7 | (lw_create_widget, lw_pop_all_widgets, lw_show_busy) | ||
| 8 | (lw_refigure_widget, lw_allow_resizing): Remove alternative K&R | ||
| 9 | declarations. | ||
| 10 | * lwlib-Xlw.c (xlw_update_one_widget): | ||
| 11 | (xlw_pop_instance): Likewise. | ||
| 12 | * lwlib-Xaw.c (xaw_update_one_widget, xaw_pop_instance): | ||
| 13 | Likewise. | ||
| 14 | * lwlib-Xm.c (P_): Remove. | ||
| 15 | |||
| 1 | 2010-07-07 Andreas Schwab <schwab@linux-m68k.org> | 16 | 2010-07-07 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 17 | ||
| 3 | * lwlib.c (lwlib_memset, lwlib_bcopy): Remove. | 18 | * lwlib.c (lwlib_memset, lwlib_bcopy): Remove. |
diff --git a/lwlib/lwlib-Xaw.c b/lwlib/lwlib-Xaw.c index 632ba7153ae..924764376ef 100644 --- a/lwlib/lwlib-Xaw.c +++ b/lwlib/lwlib-Xaw.c | |||
| @@ -348,16 +348,8 @@ command_reset (Widget widget, | |||
| 348 | #endif | 348 | #endif |
| 349 | 349 | ||
| 350 | void | 350 | void |
| 351 | #ifdef PROTOTYPES | ||
| 352 | xaw_update_one_widget (widget_instance *instance, Widget widget, | 351 | xaw_update_one_widget (widget_instance *instance, Widget widget, |
| 353 | widget_value *val, Boolean deep_p) | 352 | widget_value *val, Boolean deep_p) |
| 354 | #else | ||
| 355 | xaw_update_one_widget (instance, widget, val, deep_p) | ||
| 356 | widget_instance *instance; | ||
| 357 | Widget widget; | ||
| 358 | widget_value *val; | ||
| 359 | Boolean deep_p; | ||
| 360 | #endif | ||
| 361 | { | 353 | { |
| 362 | #if 0 | 354 | #if 0 |
| 363 | if (XtIsSubclass (widget, scrollbarWidgetClass)) | 355 | if (XtIsSubclass (widget, scrollbarWidgetClass)) |
| @@ -474,13 +466,7 @@ xaw_popup_menu (Widget widget, XEvent *event) | |||
| 474 | } | 466 | } |
| 475 | 467 | ||
| 476 | void | 468 | void |
| 477 | #ifdef PROTOTYPES | ||
| 478 | xaw_pop_instance (widget_instance *instance, Boolean up) | 469 | xaw_pop_instance (widget_instance *instance, Boolean up) |
| 479 | #else | ||
| 480 | xaw_pop_instance (instance, up) | ||
| 481 | widget_instance *instance; | ||
| 482 | Boolean up; | ||
| 483 | #endif | ||
| 484 | { | 470 | { |
| 485 | Widget widget = instance->widget; | 471 | Widget widget = instance->widget; |
| 486 | 472 | ||
diff --git a/lwlib/lwlib-Xlw.c b/lwlib/lwlib-Xlw.c index a088b299b8b..8a98184ab93 100644 --- a/lwlib/lwlib-Xlw.c +++ b/lwlib/lwlib-Xlw.c | |||
| @@ -210,16 +210,8 @@ lw_lucid_widget_p (Widget widget) | |||
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | void | 212 | void |
| 213 | #ifdef PROTOTYPES | ||
| 214 | xlw_update_one_widget (widget_instance* instance, Widget widget, | 213 | xlw_update_one_widget (widget_instance* instance, Widget widget, |
| 215 | widget_value* val, Boolean deep_p) | 214 | widget_value* val, Boolean deep_p) |
| 216 | #else | ||
| 217 | xlw_update_one_widget (instance, widget, val, deep_p) | ||
| 218 | widget_instance* instance; | ||
| 219 | Widget widget; | ||
| 220 | widget_value* val; | ||
| 221 | Boolean deep_p; | ||
| 222 | #endif | ||
| 223 | { | 215 | { |
| 224 | Arg al[1]; | 216 | Arg al[1]; |
| 225 | 217 | ||
| @@ -237,13 +229,7 @@ xlw_update_one_value (widget_instance *instance, Widget widget, widget_value *va | |||
| 237 | } | 229 | } |
| 238 | 230 | ||
| 239 | void | 231 | void |
| 240 | #ifdef PROTOTYPES | ||
| 241 | xlw_pop_instance (widget_instance* instance, Boolean up) | 232 | xlw_pop_instance (widget_instance* instance, Boolean up) |
| 242 | #else | ||
| 243 | xlw_pop_instance (instance, up) | ||
| 244 | widget_instance* instance; | ||
| 245 | Boolean up; | ||
| 246 | #endif | ||
| 247 | { | 233 | { |
| 248 | } | 234 | } |
| 249 | 235 | ||
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c index 06fe2515e64..e8276eb7ca1 100644 --- a/lwlib/lwlib-Xm.c +++ b/lwlib/lwlib-Xm.c | |||
| @@ -65,13 +65,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 65 | #include <Xm/DialogS.h> | 65 | #include <Xm/DialogS.h> |
| 66 | #include <Xm/Form.h> | 66 | #include <Xm/Form.h> |
| 67 | 67 | ||
| 68 | #undef P_ | ||
| 69 | #if defined __STDC__ || defined PROTOTYPES | ||
| 70 | #define P_(X) X | ||
| 71 | #else | ||
| 72 | #define P_(X) () | ||
| 73 | #endif | ||
| 74 | |||
| 75 | enum do_call_type { pre_activate, selection, no_selection, post_activate }; | 68 | enum do_call_type { pre_activate, selection, no_selection, post_activate }; |
| 76 | 69 | ||
| 77 | 70 | ||
diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c index bee47aadcdd..fe228b9a69a 100644 --- a/lwlib/lwlib.c +++ b/lwlib/lwlib.c | |||
| @@ -298,18 +298,8 @@ mark_widget_destroyed (Widget widget, XtPointer closure, XtPointer call_data) | |||
| 298 | instance->widget = NULL; | 298 | instance->widget = NULL; |
| 299 | } | 299 | } |
| 300 | 300 | ||
| 301 | /* The messy #ifdef PROTOTYPES here and elsewhere are prompted by a | ||
| 302 | flood of warnings about argument promotion from proprietary ISO C | ||
| 303 | compilers. (etags still only makes one entry for each function.) */ | ||
| 304 | static widget_instance * | 301 | static widget_instance * |
| 305 | #ifdef PROTOTYPES | ||
| 306 | allocate_widget_instance (widget_info* info, Widget parent, Boolean pop_up_p) | 302 | allocate_widget_instance (widget_info* info, Widget parent, Boolean pop_up_p) |
| 307 | #else | ||
| 308 | allocate_widget_instance (info, parent, pop_up_p) | ||
| 309 | widget_info* info; | ||
| 310 | Widget parent; | ||
| 311 | Boolean pop_up_p; | ||
| 312 | #endif | ||
| 313 | { | 303 | { |
| 314 | widget_instance* instance = | 304 | widget_instance* instance = |
| 315 | (widget_instance*)malloc (sizeof (widget_instance)); | 305 | (widget_instance*)malloc (sizeof (widget_instance)); |
| @@ -335,13 +325,7 @@ free_widget_instance (widget_instance *instance) | |||
| 335 | } | 325 | } |
| 336 | 326 | ||
| 337 | static widget_info * | 327 | static widget_info * |
| 338 | #ifdef PROTOTYPES | ||
| 339 | get_widget_info (LWLIB_ID id, Boolean remove_p) | 328 | get_widget_info (LWLIB_ID id, Boolean remove_p) |
| 340 | #else | ||
| 341 | get_widget_info (id, remove_p) | ||
| 342 | LWLIB_ID id; | ||
| 343 | Boolean remove_p; | ||
| 344 | #endif | ||
| 345 | { | 329 | { |
| 346 | widget_info* info; | 330 | widget_info* info; |
| 347 | widget_info* prev; | 331 | widget_info* prev; |
| @@ -371,13 +355,7 @@ lw_get_widget_info (LWLIB_ID id) | |||
| 371 | } | 355 | } |
| 372 | 356 | ||
| 373 | static widget_instance * | 357 | static widget_instance * |
| 374 | #ifdef PROTOTYPES | ||
| 375 | get_widget_instance (Widget widget, Boolean remove_p) | 358 | get_widget_instance (Widget widget, Boolean remove_p) |
| 376 | #else | ||
| 377 | get_widget_instance (widget, remove_p) | ||
| 378 | Widget widget; | ||
| 379 | Boolean remove_p; | ||
| 380 | #endif | ||
| 381 | { | 359 | { |
| 382 | widget_info* info; | 360 | widget_info* info; |
| 383 | widget_instance* instance; | 361 | widget_instance* instance; |
| @@ -410,14 +388,7 @@ lw_get_widget_instance (Widget widget) | |||
| 410 | } | 388 | } |
| 411 | 389 | ||
| 412 | static widget_instance* | 390 | static widget_instance* |
| 413 | #ifdef PROTOTYPES | ||
| 414 | find_instance (LWLIB_ID id, Widget parent, Boolean pop_up_p) | 391 | find_instance (LWLIB_ID id, Widget parent, Boolean pop_up_p) |
| 415 | #else | ||
| 416 | find_instance (id, parent, pop_up_p) | ||
| 417 | LWLIB_ID id; | ||
| 418 | Widget parent; | ||
| 419 | Boolean pop_up_p; | ||
| 420 | #endif | ||
| 421 | { | 392 | { |
| 422 | widget_info* info = get_widget_info (id, False); | 393 | widget_info* info = get_widget_info (id, False); |
| 423 | widget_instance* instance; | 394 | widget_instance* instance; |
| @@ -638,14 +609,7 @@ name_to_widget (widget_instance *instance, char *name) | |||
| 638 | } | 609 | } |
| 639 | 610 | ||
| 640 | static void | 611 | static void |
| 641 | #ifdef PROTOTYPES | ||
| 642 | set_one_value (widget_instance* instance, widget_value* val, Boolean deep_p) | 612 | set_one_value (widget_instance* instance, widget_value* val, Boolean deep_p) |
| 643 | #else | ||
| 644 | set_one_value (instance, val, deep_p) | ||
| 645 | widget_instance* instance; | ||
| 646 | widget_value* val; | ||
| 647 | Boolean deep_p; | ||
| 648 | #endif | ||
| 649 | { | 613 | { |
| 650 | Widget widget = name_to_widget (instance, val->name); | 614 | Widget widget = name_to_widget (instance, val->name); |
| 651 | 615 | ||
| @@ -667,13 +631,7 @@ set_one_value (instance, val, deep_p) | |||
| 667 | } | 631 | } |
| 668 | 632 | ||
| 669 | static void | 633 | static void |
| 670 | #ifdef PROTOTYPES | ||
| 671 | update_one_widget_instance (widget_instance* instance, Boolean deep_p) | 634 | update_one_widget_instance (widget_instance* instance, Boolean deep_p) |
| 672 | #else | ||
| 673 | update_one_widget_instance (instance, deep_p) | ||
| 674 | widget_instance* instance; | ||
| 675 | Boolean deep_p; | ||
| 676 | #endif | ||
| 677 | { | 635 | { |
| 678 | widget_value *val; | 636 | widget_value *val; |
| 679 | 637 | ||
| @@ -687,13 +645,7 @@ update_one_widget_instance (instance, deep_p) | |||
| 687 | } | 645 | } |
| 688 | 646 | ||
| 689 | static void | 647 | static void |
| 690 | #ifdef PROTOTYPES | ||
| 691 | update_all_widget_values (widget_info* info, Boolean deep_p) | 648 | update_all_widget_values (widget_info* info, Boolean deep_p) |
| 692 | #else | ||
| 693 | update_all_widget_values (info, deep_p) | ||
| 694 | widget_info* info; | ||
| 695 | Boolean deep_p; | ||
| 696 | #endif | ||
| 697 | { | 649 | { |
| 698 | widget_instance* instance; | 650 | widget_instance* instance; |
| 699 | widget_value* val; | 651 | widget_value* val; |
| @@ -706,14 +658,7 @@ update_all_widget_values (info, deep_p) | |||
| 706 | } | 658 | } |
| 707 | 659 | ||
| 708 | int | 660 | int |
| 709 | #ifdef PROTOTYPES | ||
| 710 | lw_modify_all_widgets (LWLIB_ID id, widget_value* val, Boolean deep_p) | 661 | lw_modify_all_widgets (LWLIB_ID id, widget_value* val, Boolean deep_p) |
| 711 | #else | ||
| 712 | lw_modify_all_widgets (id, val, deep_p) | ||
| 713 | LWLIB_ID id; | ||
| 714 | widget_value* val; | ||
| 715 | Boolean deep_p; | ||
| 716 | #endif | ||
| 717 | { | 662 | { |
| 718 | widget_info* info = get_widget_info (id, False); | 663 | widget_info* info = get_widget_info (id, False); |
| 719 | widget_value* new_val; | 664 | widget_value* new_val; |
| @@ -894,14 +839,7 @@ lw_register_widget (type, name, id, val, pre_activate_cb, | |||
| 894 | } | 839 | } |
| 895 | 840 | ||
| 896 | Widget | 841 | Widget |
| 897 | #ifdef PROTOTYPES | ||
| 898 | lw_get_widget (LWLIB_ID id, Widget parent, Boolean pop_up_p) | 842 | lw_get_widget (LWLIB_ID id, Widget parent, Boolean pop_up_p) |
| 899 | #else | ||
| 900 | lw_get_widget (id, parent, pop_up_p) | ||
| 901 | LWLIB_ID id; | ||
| 902 | Widget parent; | ||
| 903 | Boolean pop_up_p; | ||
| 904 | #endif | ||
| 905 | { | 843 | { |
| 906 | widget_instance* instance; | 844 | widget_instance* instance; |
| 907 | 845 | ||
| @@ -910,14 +848,7 @@ lw_get_widget (id, parent, pop_up_p) | |||
| 910 | } | 848 | } |
| 911 | 849 | ||
| 912 | Widget | 850 | Widget |
| 913 | #ifdef PROTOTYPES | ||
| 914 | lw_make_widget (LWLIB_ID id, Widget parent, Boolean pop_up_p) | 851 | lw_make_widget (LWLIB_ID id, Widget parent, Boolean pop_up_p) |
| 915 | #else | ||
| 916 | lw_make_widget (id, parent, pop_up_p) | ||
| 917 | LWLIB_ID id; | ||
| 918 | Widget parent; | ||
| 919 | Boolean pop_up_p; | ||
| 920 | #endif | ||
| 921 | { | 852 | { |
| 922 | widget_instance* instance; | 853 | widget_instance* instance; |
| 923 | widget_info* info; | 854 | widget_info* info; |
| @@ -937,25 +868,10 @@ lw_make_widget (id, parent, pop_up_p) | |||
| 937 | } | 868 | } |
| 938 | 869 | ||
| 939 | Widget | 870 | Widget |
| 940 | #ifdef PROTOTYPES | ||
| 941 | lw_create_widget (char* type, char* name, LWLIB_ID id, widget_value* val, | 871 | lw_create_widget (char* type, char* name, LWLIB_ID id, widget_value* val, |
| 942 | Widget parent, Boolean pop_up_p, | 872 | Widget parent, Boolean pop_up_p, |
| 943 | lw_callback pre_activate_cb, lw_callback selection_cb, | 873 | lw_callback pre_activate_cb, lw_callback selection_cb, |
| 944 | lw_callback post_activate_cb, lw_callback highlight_cb) | 874 | lw_callback post_activate_cb, lw_callback highlight_cb) |
| 945 | #else | ||
| 946 | lw_create_widget (type, name, id, val, parent, pop_up_p, pre_activate_cb, | ||
| 947 | selection_cb, post_activate_cb, highlight_cb) | ||
| 948 | char* type; | ||
| 949 | char* name; | ||
| 950 | LWLIB_ID id; | ||
| 951 | widget_value* val; | ||
| 952 | Widget parent; | ||
| 953 | Boolean pop_up_p; | ||
| 954 | lw_callback pre_activate_cb; | ||
| 955 | lw_callback selection_cb; | ||
| 956 | lw_callback post_activate_cb; | ||
| 957 | lw_callback highlight_cb; | ||
| 958 | #endif | ||
| 959 | { | 875 | { |
| 960 | lw_register_widget (type, name, id, val, pre_activate_cb, selection_cb, | 876 | lw_register_widget (type, name, id, val, pre_activate_cb, selection_cb, |
| 961 | post_activate_cb, highlight_cb); | 877 | post_activate_cb, highlight_cb); |
| @@ -1102,13 +1018,7 @@ lw_raise_all_pop_up_widgets (void) | |||
| 1102 | } | 1018 | } |
| 1103 | 1019 | ||
| 1104 | static void | 1020 | static void |
| 1105 | #ifdef PROTOTYPES | ||
| 1106 | lw_pop_all_widgets (LWLIB_ID id, Boolean up) | 1021 | lw_pop_all_widgets (LWLIB_ID id, Boolean up) |
| 1107 | #else | ||
| 1108 | lw_pop_all_widgets (id, up) | ||
| 1109 | LWLIB_ID id; | ||
| 1110 | Boolean up; | ||
| 1111 | #endif | ||
| 1112 | { | 1022 | { |
| 1113 | widget_info* info = get_widget_info (id, False); | 1023 | widget_info* info = get_widget_info (id, False); |
| 1114 | widget_instance* instance; | 1024 | widget_instance* instance; |
| @@ -1309,13 +1219,7 @@ lw_set_keyboard_focus (Widget parent, Widget w) | |||
| 1309 | 1219 | ||
| 1310 | /* Show busy */ | 1220 | /* Show busy */ |
| 1311 | static void | 1221 | static void |
| 1312 | #ifdef PROTOTYPES | ||
| 1313 | show_one_widget_busy (Widget w, Boolean flag) | 1222 | show_one_widget_busy (Widget w, Boolean flag) |
| 1314 | #else | ||
| 1315 | show_one_widget_busy (w, flag) | ||
| 1316 | Widget w; | ||
| 1317 | Boolean flag; | ||
| 1318 | #endif | ||
| 1319 | { | 1223 | { |
| 1320 | Pixel foreground = 0; | 1224 | Pixel foreground = 0; |
| 1321 | Pixel background = 1; | 1225 | Pixel background = 1; |
| @@ -1334,13 +1238,7 @@ show_one_widget_busy (w, flag) | |||
| 1334 | } | 1238 | } |
| 1335 | 1239 | ||
| 1336 | void | 1240 | void |
| 1337 | #ifdef PROTOTYPES | ||
| 1338 | lw_show_busy (Widget w, Boolean busy) | 1241 | lw_show_busy (Widget w, Boolean busy) |
| 1339 | #else | ||
| 1340 | lw_show_busy (w, busy) | ||
| 1341 | Widget w; | ||
| 1342 | Boolean busy; | ||
| 1343 | #endif | ||
| 1344 | { | 1242 | { |
| 1345 | widget_instance* instance = get_widget_instance (w, False); | 1243 | widget_instance* instance = get_widget_instance (w, False); |
| 1346 | widget_info* info; | 1244 | widget_info* info; |
| @@ -1362,13 +1260,7 @@ lw_show_busy (w, busy) | |||
| 1362 | /* This hack exists because Lucid/Athena need to execute the strange | 1260 | /* This hack exists because Lucid/Athena need to execute the strange |
| 1363 | function below to support geometry management. */ | 1261 | function below to support geometry management. */ |
| 1364 | void | 1262 | void |
| 1365 | #ifdef PROTOTYPES | ||
| 1366 | lw_refigure_widget (Widget w, Boolean doit) | 1263 | lw_refigure_widget (Widget w, Boolean doit) |
| 1367 | #else | ||
| 1368 | lw_refigure_widget (w, doit) | ||
| 1369 | Widget w; | ||
| 1370 | Boolean doit; | ||
| 1371 | #endif | ||
| 1372 | { | 1264 | { |
| 1373 | #if defined (USE_XAW) | 1265 | #if defined (USE_XAW) |
| 1374 | XawPanedSetRefigureMode (w, doit); | 1266 | XawPanedSetRefigureMode (w, doit); |
| @@ -1410,13 +1302,7 @@ lw_set_main_areas (Widget parent, Widget menubar, Widget work_area) | |||
| 1410 | /* Manage resizing for Motif. This disables resizing when the menubar | 1302 | /* Manage resizing for Motif. This disables resizing when the menubar |
| 1411 | is about to be modified. */ | 1303 | is about to be modified. */ |
| 1412 | void | 1304 | void |
| 1413 | #ifdef PROTOTYPES | ||
| 1414 | lw_allow_resizing (Widget w, Boolean flag) | 1305 | lw_allow_resizing (Widget w, Boolean flag) |
| 1415 | #else | ||
| 1416 | lw_allow_resizing (w, flag) | ||
| 1417 | Widget w; | ||
| 1418 | Boolean flag; | ||
| 1419 | #endif | ||
| 1420 | { | 1306 | { |
| 1421 | #if defined (USE_MOTIF) | 1307 | #if defined (USE_MOTIF) |
| 1422 | xm_manage_resizing (w, flag); | 1308 | xm_manage_resizing (w, flag); |
diff --git a/src/ChangeLog b/src/ChangeLog index cdbecfc5455..6daf98787a5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration. | ||
| 4 | |||
| 3 | Clean up include guards. | 5 | Clean up include guards. |
| 4 | * tparam.c: Remove include guards for config.h, string.h and code | 6 | * tparam.c: Remove include guards for config.h, string.h and code |
| 5 | that assumes #ifndef emacs. | 7 | that assumes #ifndef emacs. |
diff --git a/src/xdisp.c b/src/xdisp.c index 545f597e7bc..c2aea3ce0c8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -9630,12 +9630,7 @@ unwind_format_mode_line (Lisp_Object vector) | |||
| 9630 | Re-allocate mode_line_noprop_buf if necessary. */ | 9630 | Re-allocate mode_line_noprop_buf if necessary. */ |
| 9631 | 9631 | ||
| 9632 | static void | 9632 | static void |
| 9633 | #ifdef PROTOTYPES | ||
| 9634 | store_mode_line_noprop_char (char c) | 9633 | store_mode_line_noprop_char (char c) |
| 9635 | #else | ||
| 9636 | store_mode_line_noprop_char (c) | ||
| 9637 | char c; | ||
| 9638 | #endif | ||
| 9639 | { | 9634 | { |
| 9640 | /* If output position has reached the end of the allocated buffer, | 9635 | /* If output position has reached the end of the allocated buffer, |
| 9641 | double the buffer's size. */ | 9636 | double the buffer's size. */ |