diff options
| author | Dave Love | 2000-06-06 14:12:10 +0000 |
|---|---|---|
| committer | Dave Love | 2000-06-06 14:12:10 +0000 |
| commit | 99570665ff9d1822bcd45a27135906e3bd5c786b (patch) | |
| tree | 1741458eadb7401eb30927e5cb7e43767aed346f | |
| parent | 4374c6b0cb768a84c0eeb4826744c9b898734cbe (diff) | |
| download | emacs-99570665ff9d1822bcd45a27135906e3bd5c786b.tar.gz emacs-99570665ff9d1822bcd45a27135906e3bd5c786b.zip | |
Enable prototypes.
| -rw-r--r-- | lwlib/lwlib-Xaw.h | 14 | ||||
| -rw-r--r-- | lwlib/lwlib-Xlw.h | 16 | ||||
| -rw-r--r-- | lwlib/lwlib-Xm.h | 24 | ||||
| -rw-r--r-- | lwlib/lwlib-int.h | 14 | ||||
| -rw-r--r-- | lwlib/lwlib-utils.h | 16 | ||||
| -rw-r--r-- | lwlib/lwlib.h | 74 | ||||
| -rw-r--r-- | lwlib/xlwmenu.h | 2 |
7 files changed, 80 insertions, 80 deletions
diff --git a/lwlib/lwlib-Xaw.h b/lwlib/lwlib-Xaw.h index 958cd9c5986..88f9114a237 100644 --- a/lwlib/lwlib-Xaw.h +++ b/lwlib/lwlib-Xaw.h | |||
| @@ -6,24 +6,24 @@ | |||
| 6 | extern widget_creation_entry xaw_creation_table []; | 6 | extern widget_creation_entry xaw_creation_table []; |
| 7 | 7 | ||
| 8 | Widget | 8 | Widget |
| 9 | xaw_create_dialog (); | 9 | xaw_create_dialog __P ((widget_instance*)); |
| 10 | 10 | ||
| 11 | Boolean | 11 | Boolean |
| 12 | lw_xaw_widget_p (); | 12 | lw_xaw_widget_p __P ((Widget)); |
| 13 | 13 | ||
| 14 | void | 14 | void |
| 15 | xaw_update_one_widget (); | 15 | xaw_update_one_widget __P ((widget_instance *, Widget, widget_value *, Boolean)); |
| 16 | 16 | ||
| 17 | void | 17 | void |
| 18 | xaw_update_one_value (); | 18 | xaw_update_one_value __P ((widget_instance *, Widget, widget_value *)); |
| 19 | 19 | ||
| 20 | void | 20 | void |
| 21 | xaw_destroy_instance (); | 21 | xaw_destroy_instance __P ((widget_instance *)); |
| 22 | 22 | ||
| 23 | void | 23 | void |
| 24 | xaw_popup_menu (); | 24 | xaw_popup_menu __P ((Widget, XEvent *)); |
| 25 | 25 | ||
| 26 | void | 26 | void |
| 27 | xaw_pop_instance (); | 27 | xaw_pop_instance __P ((widget_instance *, Boolean)); |
| 28 | 28 | ||
| 29 | #endif /* LWLIB_XAW_H */ | 29 | #endif /* LWLIB_XAW_H */ |
diff --git a/lwlib/lwlib-Xlw.h b/lwlib/lwlib-Xlw.h index 037e18af89d..26b848b6c8f 100644 --- a/lwlib/lwlib-Xlw.h +++ b/lwlib/lwlib-Xlw.h | |||
| @@ -7,23 +7,23 @@ extern widget_creation_entry xlw_creation_table []; | |||
| 7 | extern widget_creation_function xlw_create_dialog; | 7 | extern widget_creation_function xlw_create_dialog; |
| 8 | 8 | ||
| 9 | Boolean | 9 | Boolean |
| 10 | lw_lucid_widget_p (/* Widget widget */); | 10 | lw_lucid_widget_p __P ((Widget widget)); |
| 11 | 11 | ||
| 12 | void | 12 | void |
| 13 | xlw_update_one_widget (/* widget_instance* instance, Widget widget, | 13 | xlw_update_one_widget __P ((widget_instance* instance, Widget widget, |
| 14 | widget_value* val, Boolean deep_p */); | 14 | widget_value* val, Boolean deep_p)); |
| 15 | 15 | ||
| 16 | void | 16 | void |
| 17 | xlw_update_one_value (/* widget_instance* instance, Widget widget, | 17 | xlw_update_one_value __P ((widget_instance* instance, Widget widget, |
| 18 | widget_value* val */); | 18 | widget_value* val)); |
| 19 | 19 | ||
| 20 | void | 20 | void |
| 21 | xlw_destroy_instance (/* widget_instance* instance */); | 21 | xlw_destroy_instance __P ((widget_instance* instance)); |
| 22 | 22 | ||
| 23 | void | 23 | void |
| 24 | xlw_pop_instance (/* widget_instance* instance, Boolean up */); | 24 | xlw_pop_instance __P ((widget_instance* instance, Boolean up)); |
| 25 | 25 | ||
| 26 | void | 26 | void |
| 27 | xlw_popup_menu (/* Widget widget */); | 27 | xlw_popup_menu __P ((Widget widget, XEvent * event)); |
| 28 | 28 | ||
| 29 | #endif /* LWLIB_XLW_H */ | 29 | #endif /* LWLIB_XLW_H */ |
diff --git a/lwlib/lwlib-Xm.h b/lwlib/lwlib-Xm.h index 08c3d76f6ce..9d4af609660 100644 --- a/lwlib/lwlib-Xm.h +++ b/lwlib/lwlib-Xm.h | |||
| @@ -6,35 +6,35 @@ | |||
| 6 | extern widget_creation_entry xm_creation_table []; | 6 | extern widget_creation_entry xm_creation_table []; |
| 7 | 7 | ||
| 8 | Widget | 8 | Widget |
| 9 | xm_create_dialog (/* widget_instance* instance */); | 9 | xm_create_dialog __P ((widget_instance* instance)); |
| 10 | 10 | ||
| 11 | Boolean | 11 | Boolean |
| 12 | lw_motif_widget_p (/* Widget widget */); | 12 | lw_motif_widget_p __P ((Widget widget)); |
| 13 | 13 | ||
| 14 | void | 14 | void |
| 15 | xm_update_one_widget (/* widget_instance* instance, Widget widget, | 15 | xm_update_one_widget __P ((widget_instance* instance, Widget widget, |
| 16 | widget_value* val, Boolean deep_p */); | 16 | widget_value* val, Boolean deep_p)); |
| 17 | 17 | ||
| 18 | void | 18 | void |
| 19 | xm_update_one_value (/* widget_instance* instance, Widget widget, | 19 | xm_update_one_value __P ((widget_instance* instance, Widget widget, |
| 20 | widget_value* val */); | 20 | widget_value* val)); |
| 21 | 21 | ||
| 22 | void | 22 | void |
| 23 | xm_destroy_instance (/* widget_instance* instance */); | 23 | xm_destroy_instance __P ((widget_instance* instance)); |
| 24 | 24 | ||
| 25 | void | 25 | void |
| 26 | xm_set_keyboard_focus (/* Widget parent, Widget w */); | 26 | xm_set_keyboard_focus __P ((Widget parent, Widget w)); |
| 27 | 27 | ||
| 28 | void | 28 | void |
| 29 | xm_popup_menu (/* Widget widget */); | 29 | xm_popup_menu __P ((Widget widget, XEvent *event)); |
| 30 | 30 | ||
| 31 | void | 31 | void |
| 32 | xm_pop_instance (/* widget_instance* instance, Boolean up */); | 32 | xm_pop_instance __P ((widget_instance* instance, Boolean up)); |
| 33 | 33 | ||
| 34 | void | 34 | void |
| 35 | xm_set_main_areas (/* Widget parent, Widget menubar, Widget work_area */); | 35 | xm_set_main_areas __P ((Widget parent, Widget menubar, Widget work_area)); |
| 36 | 36 | ||
| 37 | void | 37 | void |
| 38 | xm_manage_resizing (/* Widget w, Boolean flag */); | 38 | xm_manage_resizing __P ((Widget w, Boolean flag)); |
| 39 | 39 | ||
| 40 | #endif /* LWLIB_XM_H */ | 40 | #endif /* LWLIB_XM_H */ |
diff --git a/lwlib/lwlib-int.h b/lwlib/lwlib-int.h index 115cf790345..a198d10551d 100644 --- a/lwlib/lwlib-int.h +++ b/lwlib/lwlib-int.h | |||
| @@ -3,11 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include "lwlib.h" | 4 | #include "lwlib.h" |
| 5 | 5 | ||
| 6 | /* | 6 | extern char *safe_strdup __P ((const char *)); |
| 7 | extern char *strdup (const char *); | ||
| 8 | extern int strcasecmp (const char *, const char *); | ||
| 9 | */ | ||
| 10 | extern char *safe_strdup (); | ||
| 11 | 7 | ||
| 12 | typedef struct _widget_instance | 8 | typedef struct _widget_instance |
| 13 | { | 9 | { |
| @@ -45,13 +41,13 @@ typedef struct _widget_creation_entry | |||
| 45 | /* update all other instances of a widget. Can be used in a callback when | 41 | /* update all other instances of a widget. Can be used in a callback when |
| 46 | a widget has been used by the user */ | 42 | a widget has been used by the user */ |
| 47 | void | 43 | void |
| 48 | lw_internal_update_other_instances (); | 44 | lw_internal_update_other_instances __P ((Widget, XtPointer, XtPointer)); |
| 49 | 45 | ||
| 50 | /* get the widget_value for a widget in a given instance */ | 46 | /* get the widget_value for a widget in a given instance */ |
| 51 | widget_value* | 47 | widget_value* |
| 52 | lw_get_widget_value_for_widget (); | 48 | lw_get_widget_value_for_widget __P ((widget_instance *, Widget)); |
| 53 | 49 | ||
| 54 | widget_info *lw_get_widget_info (); | 50 | widget_info *lw_get_widget_info __P ((LWLIB_ID)); |
| 55 | widget_instance * lw_get_widget_instance (); | 51 | widget_instance * lw_get_widget_instance __P ((Widget)); |
| 56 | 52 | ||
| 57 | #endif /* LWLIB_INTERNAL_H */ | 53 | #endif /* LWLIB_INTERNAL_H */ |
diff --git a/lwlib/lwlib-utils.h b/lwlib/lwlib-utils.h index 020d2a982dc..c2a7607b136 100644 --- a/lwlib/lwlib-utils.h +++ b/lwlib/lwlib-utils.h | |||
| @@ -1,20 +1,20 @@ | |||
| 1 | #ifndef _LWLIB_UTILS_H_ | 1 | #ifndef _LWLIB_UTILS_H_ |
| 2 | #define _LWLIB_UTILS_H_ | 2 | #define _LWLIB_UTILS_H_ |
| 3 | 3 | ||
| 4 | void XtNoClearRefreshWidget (/* Widget */); | 4 | void XtNoClearRefreshWidget __P ((Widget)); |
| 5 | 5 | ||
| 6 | typedef void (*XtApplyToWidgetsProc) (/* Widget, XtPointer */); | 6 | typedef void (*XtApplyToWidgetsProc) __P ((Widget, XtPointer)); |
| 7 | typedef void* (*XtApplyUntilToWidgetsProc) (/* Widget, XtPointer */); | 7 | typedef void* (*XtApplyUntilToWidgetsProc) __P ((Widget, XtPointer)); |
| 8 | 8 | ||
| 9 | void XtApplyToWidgets (/* Widget, XtApplyToWidgetsProc, XtPointer */); | 9 | void XtApplyToWidgets __P ((Widget, XtApplyToWidgetsProc, XtPointer)); |
| 10 | void *XtApplyUntilToWidgets (/* Widget, XtApplyUntilToWidgetsProc, XtPointer */); | 10 | void *XtApplyUntilToWidgets __P ((Widget, XtApplyUntilToWidgetsProc, XtPointer)); |
| 11 | 11 | ||
| 12 | Widget *XtCompositeChildren (/* Widget, unsigned int * */); | 12 | Widget *XtCompositeChildren __P ((Widget, unsigned int *)); |
| 13 | 13 | ||
| 14 | /* returns True is the widget is being destroyed, False otherwise */ | 14 | /* returns True is the widget is being destroyed, False otherwise */ |
| 15 | Boolean | 15 | Boolean |
| 16 | XtWidgetBeingDestroyedP (/* Widget widget */); | 16 | XtWidgetBeingDestroyedP __P ((Widget widget)); |
| 17 | 17 | ||
| 18 | void XtSafelyDestroyWidget (/* Widget */); | 18 | void XtSafelyDestroyWidget __P ((Widget)); |
| 19 | 19 | ||
| 20 | #endif /* _LWLIB_UTILS_H_ */ | 20 | #endif /* _LWLIB_UTILS_H_ */ |
diff --git a/lwlib/lwlib.h b/lwlib/lwlib.h index c94d466d752..e101801949c 100644 --- a/lwlib/lwlib.h +++ b/lwlib/lwlib.h | |||
| @@ -103,61 +103,65 @@ typedef struct _widget_value | |||
| 103 | } widget_value; | 103 | } widget_value; |
| 104 | 104 | ||
| 105 | 105 | ||
| 106 | typedef void (*lw_callback) (/* Widget w, LWLIB_ID id, void* data */); | 106 | typedef void (*lw_callback) __P ((Widget w, LWLIB_ID id, void* data)); |
| 107 | 107 | ||
| 108 | void lw_register_widget (/* char* type, char* name, LWLIB_ID id, | 108 | void lw_register_widget __P ((char* type, char* name, LWLIB_ID id, |
| 109 | widget_value* val, lw_callback pre_activate_cb, | 109 | widget_value* val, lw_callback pre_activate_cb, |
| 110 | lw_callback selection_cb, | 110 | lw_callback selection_cb, |
| 111 | lw_callback post_activate_cb */); | 111 | lw_callback post_activate_cb, |
| 112 | Widget lw_get_widget (/* LWLIB_ID id, Widget parent, Boolean pop_up_p */); | 112 | lw_callback highlight_cb)); |
| 113 | Widget lw_make_widget (/* LWLIB_ID id, Widget parent, Boolean pop_up_p */); | 113 | Widget lw_get_widget __P ((LWLIB_ID id, Widget parent, Boolean pop_up_p)); |
| 114 | Widget lw_create_widget (/* char* type, char* name, LWLIB_ID id, | 114 | Widget lw_make_widget __P ((LWLIB_ID id, Widget parent, Boolean pop_up_p)); |
| 115 | widget_value* val, Widget parent, Boolean pop_up_p, | 115 | Widget lw_create_widget __P ((char* type, char* name, LWLIB_ID id, |
| 116 | lw_callback pre_activate_cb, | 116 | widget_value* val, Widget parent, Boolean pop_up_p, |
| 117 | lw_callback selection_cb, | 117 | lw_callback pre_activate_cb, |
| 118 | lw_callback post_activate_cb */); | 118 | lw_callback selection_cb, |
| 119 | LWLIB_ID lw_get_widget_id (/* Widget w */); | 119 | lw_callback post_activate_cb, |
| 120 | int lw_modify_all_widgets (/* LWLIB_ID id, widget_value* val, Boolean deep_p */); | 120 | lw_callback highlight_cb)); |
| 121 | void lw_destroy_widget (/* Widget w */); | 121 | LWLIB_ID lw_get_widget_id __P ((Widget w)); |
| 122 | void lw_destroy_all_widgets (/* LWLIB_ID id */); | 122 | int lw_modify_all_widgets __P ((LWLIB_ID id, widget_value* val, Boolean deep_p)); |
| 123 | void lw_destroy_everything (/* void */); | 123 | void lw_destroy_widget __P ((Widget w)); |
| 124 | void lw_destroy_all_pop_ups (/* void */); | 124 | void lw_destroy_all_widgets __P ((LWLIB_ID id)); |
| 125 | Widget lw_raise_all_pop_up_widgets (/* void */); | 125 | void lw_destroy_everything __P ((void)); |
| 126 | widget_value* lw_get_all_values (/* LWLIB_ID id */); | 126 | void lw_destroy_all_pop_ups __P ((void)); |
| 127 | Boolean lw_get_some_values (/* LWLIB_ID id, widget_value* val */); | 127 | Widget lw_raise_all_pop_up_widgets __P ((void)); |
| 128 | void lw_pop_up_all_widgets (/* LWLIB_ID id */); | 128 | widget_value* lw_get_all_values __P ((LWLIB_ID id)); |
| 129 | void lw_pop_down_all_widgets (/* LWLIB_ID id */); | 129 | Boolean lw_get_some_values __P ((LWLIB_ID id, widget_value* val)); |
| 130 | void lw_pop_up_all_widgets __P ((LWLIB_ID id)); | ||
| 131 | void lw_pop_down_all_widgets __P ((LWLIB_ID id)); | ||
| 130 | widget_value *malloc_widget_value (); | 132 | widget_value *malloc_widget_value (); |
| 131 | void free_widget_value (/* widget_value * */); | 133 | void free_widget_value __P ((widget_value *)); |
| 132 | void lw_popup_menu (/* Widget */); | 134 | void lw_popup_menu __P ((Widget, XEvent *)); |
| 133 | 135 | ||
| 134 | /* Toolkit independent way of focusing on a Widget at the Xt level. */ | 136 | /* Toolkit independent way of focusing on a Widget at the Xt level. */ |
| 135 | void lw_set_keyboard_focus (/* Widget parent, Widget w */); | 137 | void lw_set_keyboard_focus __P ((Widget parent, Widget w)); |
| 136 | 138 | ||
| 137 | /* Silly Energize hack to invert the "sheet" button */ | 139 | /* Silly Energize hack to invert the "sheet" button */ |
| 138 | void lw_show_busy (/* Widget w, Boolean busy */); | 140 | void lw_show_busy __P ((Widget w, Boolean busy)); |
| 139 | 141 | ||
| 140 | /* Silly hack to assist with Lucid/Athena geometry management. */ | 142 | /* Silly hack to assist with Lucid/Athena geometry management. */ |
| 141 | void lw_refigure_widget (/* Widget w, Boolean doit */); | 143 | void lw_refigure_widget __P ((Widget w, Boolean doit)); |
| 142 | 144 | ||
| 143 | /* Toolkit independent way of determining if an event occurred on a | 145 | /* Toolkit independent way of determining if an event occurred on a |
| 144 | menubar. */ | 146 | menubar. */ |
| 145 | Boolean lw_window_is_in_menubar (/* Window win, Widget menubar_widget */); | 147 | Boolean lw_window_is_in_menubar __P ((Window win, Widget menubar_widget)); |
| 146 | 148 | ||
| 147 | /* Manage resizing: TRUE permits resizing widget w; FALSE disallows it. */ | 149 | /* Manage resizing: TRUE permits resizing widget w; FALSE disallows it. */ |
| 148 | void lw_allow_resizing (/* Widget w, Boolean flag */); | 150 | void lw_allow_resizing __P ((Widget w, Boolean flag)); |
| 149 | 151 | ||
| 150 | /* Set up the main window. */ | 152 | /* Set up the main window. */ |
| 151 | void lw_set_main_areas (/* Widget parent, | 153 | void lw_set_main_areas __P ((Widget parent, |
| 152 | Widget menubar, | 154 | Widget menubar, |
| 153 | Widget work_area */); | 155 | Widget work_area)); |
| 154 | 156 | ||
| 155 | /* Value is non-zero if LABEL is a menu separator. If it is, *TYPE is | 157 | /* Value is non-zero if LABEL is a menu separator. If it is, *TYPE is |
| 156 | set to an appropriate enumerator of type enum menu_separator. | 158 | set to an appropriate enumerator of type enum menu_separator. |
| 157 | MOTIF_P non-zero means map separator types not supported by Motif | 159 | MOTIF_P non-zero means map separator types not supported by Motif |
| 158 | to similar ones that are supported. */ | 160 | to similar ones that are supported. */ |
| 159 | 161 | ||
| 160 | int lw_separator_p (/* char *label, enum menu_separator *type, | 162 | int lw_separator_p __P ((char *label, enum menu_separator *type, |
| 161 | int motif_p */); | 163 | int motif_p)); |
| 164 | |||
| 165 | void lwlib_bcopy __P ((char*, char*, int)); | ||
| 162 | 166 | ||
| 163 | #endif /* LWLIB_H */ | 167 | #endif /* LWLIB_H */ |
diff --git a/lwlib/xlwmenu.h b/lwlib/xlwmenu.h index 0dc39ebe322..5d9a4c2eef3 100644 --- a/lwlib/xlwmenu.h +++ b/lwlib/xlwmenu.h | |||
| @@ -52,6 +52,6 @@ typedef struct _XlwMenuClassRec *XlwMenuWidgetClass; | |||
| 52 | extern WidgetClass xlwMenuWidgetClass; | 52 | extern WidgetClass xlwMenuWidgetClass; |
| 53 | 53 | ||
| 54 | void | 54 | void |
| 55 | pop_up_menu (); | 55 | pop_up_menu __P ((XlwMenuWidget, XButtonPressedEvent*)); |
| 56 | 56 | ||
| 57 | #endif /* _XlwMenu_h */ | 57 | #endif /* _XlwMenu_h */ |