aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-06-06 14:12:10 +0000
committerDave Love2000-06-06 14:12:10 +0000
commit99570665ff9d1822bcd45a27135906e3bd5c786b (patch)
tree1741458eadb7401eb30927e5cb7e43767aed346f
parent4374c6b0cb768a84c0eeb4826744c9b898734cbe (diff)
downloademacs-99570665ff9d1822bcd45a27135906e3bd5c786b.tar.gz
emacs-99570665ff9d1822bcd45a27135906e3bd5c786b.zip
Enable prototypes.
-rw-r--r--lwlib/lwlib-Xaw.h14
-rw-r--r--lwlib/lwlib-Xlw.h16
-rw-r--r--lwlib/lwlib-Xm.h24
-rw-r--r--lwlib/lwlib-int.h14
-rw-r--r--lwlib/lwlib-utils.h16
-rw-r--r--lwlib/lwlib.h74
-rw-r--r--lwlib/xlwmenu.h2
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 @@
6extern widget_creation_entry xaw_creation_table []; 6extern widget_creation_entry xaw_creation_table [];
7 7
8Widget 8Widget
9xaw_create_dialog (); 9xaw_create_dialog __P ((widget_instance*));
10 10
11Boolean 11Boolean
12lw_xaw_widget_p (); 12lw_xaw_widget_p __P ((Widget));
13 13
14void 14void
15xaw_update_one_widget (); 15xaw_update_one_widget __P ((widget_instance *, Widget, widget_value *, Boolean));
16 16
17void 17void
18xaw_update_one_value (); 18xaw_update_one_value __P ((widget_instance *, Widget, widget_value *));
19 19
20void 20void
21xaw_destroy_instance (); 21xaw_destroy_instance __P ((widget_instance *));
22 22
23void 23void
24xaw_popup_menu (); 24xaw_popup_menu __P ((Widget, XEvent *));
25 25
26void 26void
27xaw_pop_instance (); 27xaw_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 [];
7extern widget_creation_function xlw_create_dialog; 7extern widget_creation_function xlw_create_dialog;
8 8
9Boolean 9Boolean
10lw_lucid_widget_p (/* Widget widget */); 10lw_lucid_widget_p __P ((Widget widget));
11 11
12void 12void
13xlw_update_one_widget (/* widget_instance* instance, Widget widget, 13xlw_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
16void 16void
17xlw_update_one_value (/* widget_instance* instance, Widget widget, 17xlw_update_one_value __P ((widget_instance* instance, Widget widget,
18 widget_value* val */); 18 widget_value* val));
19 19
20void 20void
21xlw_destroy_instance (/* widget_instance* instance */); 21xlw_destroy_instance __P ((widget_instance* instance));
22 22
23void 23void
24xlw_pop_instance (/* widget_instance* instance, Boolean up */); 24xlw_pop_instance __P ((widget_instance* instance, Boolean up));
25 25
26void 26void
27xlw_popup_menu (/* Widget widget */); 27xlw_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 @@
6extern widget_creation_entry xm_creation_table []; 6extern widget_creation_entry xm_creation_table [];
7 7
8Widget 8Widget
9xm_create_dialog (/* widget_instance* instance */); 9xm_create_dialog __P ((widget_instance* instance));
10 10
11Boolean 11Boolean
12lw_motif_widget_p (/* Widget widget */); 12lw_motif_widget_p __P ((Widget widget));
13 13
14void 14void
15xm_update_one_widget (/* widget_instance* instance, Widget widget, 15xm_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
18void 18void
19xm_update_one_value (/* widget_instance* instance, Widget widget, 19xm_update_one_value __P ((widget_instance* instance, Widget widget,
20 widget_value* val */); 20 widget_value* val));
21 21
22void 22void
23xm_destroy_instance (/* widget_instance* instance */); 23xm_destroy_instance __P ((widget_instance* instance));
24 24
25void 25void
26xm_set_keyboard_focus (/* Widget parent, Widget w */); 26xm_set_keyboard_focus __P ((Widget parent, Widget w));
27 27
28void 28void
29xm_popup_menu (/* Widget widget */); 29xm_popup_menu __P ((Widget widget, XEvent *event));
30 30
31void 31void
32xm_pop_instance (/* widget_instance* instance, Boolean up */); 32xm_pop_instance __P ((widget_instance* instance, Boolean up));
33 33
34void 34void
35xm_set_main_areas (/* Widget parent, Widget menubar, Widget work_area */); 35xm_set_main_areas __P ((Widget parent, Widget menubar, Widget work_area));
36 36
37void 37void
38xm_manage_resizing (/* Widget w, Boolean flag */); 38xm_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/* 6extern char *safe_strdup __P ((const char *));
7extern char *strdup (const char *);
8extern int strcasecmp (const char *, const char *);
9*/
10extern char *safe_strdup ();
11 7
12typedef struct _widget_instance 8typedef 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 */
47void 43void
48lw_internal_update_other_instances (); 44lw_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 */
51widget_value* 47widget_value*
52lw_get_widget_value_for_widget (); 48lw_get_widget_value_for_widget __P ((widget_instance *, Widget));
53 49
54widget_info *lw_get_widget_info (); 50widget_info *lw_get_widget_info __P ((LWLIB_ID));
55widget_instance * lw_get_widget_instance (); 51widget_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
4void XtNoClearRefreshWidget (/* Widget */); 4void XtNoClearRefreshWidget __P ((Widget));
5 5
6typedef void (*XtApplyToWidgetsProc) (/* Widget, XtPointer */); 6typedef void (*XtApplyToWidgetsProc) __P ((Widget, XtPointer));
7typedef void* (*XtApplyUntilToWidgetsProc) (/* Widget, XtPointer */); 7typedef void* (*XtApplyUntilToWidgetsProc) __P ((Widget, XtPointer));
8 8
9void XtApplyToWidgets (/* Widget, XtApplyToWidgetsProc, XtPointer */); 9void XtApplyToWidgets __P ((Widget, XtApplyToWidgetsProc, XtPointer));
10void *XtApplyUntilToWidgets (/* Widget, XtApplyUntilToWidgetsProc, XtPointer */); 10void *XtApplyUntilToWidgets __P ((Widget, XtApplyUntilToWidgetsProc, XtPointer));
11 11
12Widget *XtCompositeChildren (/* Widget, unsigned int * */); 12Widget *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 */
15Boolean 15Boolean
16XtWidgetBeingDestroyedP (/* Widget widget */); 16XtWidgetBeingDestroyedP __P ((Widget widget));
17 17
18void XtSafelyDestroyWidget (/* Widget */); 18void 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
106typedef void (*lw_callback) (/* Widget w, LWLIB_ID id, void* data */); 106typedef void (*lw_callback) __P ((Widget w, LWLIB_ID id, void* data));
107 107
108void lw_register_widget (/* char* type, char* name, LWLIB_ID id, 108void 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,
112Widget lw_get_widget (/* LWLIB_ID id, Widget parent, Boolean pop_up_p */); 112 lw_callback highlight_cb));
113Widget lw_make_widget (/* LWLIB_ID id, Widget parent, Boolean pop_up_p */); 113Widget lw_get_widget __P ((LWLIB_ID id, Widget parent, Boolean pop_up_p));
114Widget lw_create_widget (/* char* type, char* name, LWLIB_ID id, 114Widget lw_make_widget __P ((LWLIB_ID id, Widget parent, Boolean pop_up_p));
115 widget_value* val, Widget parent, Boolean pop_up_p, 115Widget 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,
119LWLIB_ID lw_get_widget_id (/* Widget w */); 119 lw_callback post_activate_cb,
120int lw_modify_all_widgets (/* LWLIB_ID id, widget_value* val, Boolean deep_p */); 120 lw_callback highlight_cb));
121void lw_destroy_widget (/* Widget w */); 121LWLIB_ID lw_get_widget_id __P ((Widget w));
122void lw_destroy_all_widgets (/* LWLIB_ID id */); 122int lw_modify_all_widgets __P ((LWLIB_ID id, widget_value* val, Boolean deep_p));
123void lw_destroy_everything (/* void */); 123void lw_destroy_widget __P ((Widget w));
124void lw_destroy_all_pop_ups (/* void */); 124void lw_destroy_all_widgets __P ((LWLIB_ID id));
125Widget lw_raise_all_pop_up_widgets (/* void */); 125void lw_destroy_everything __P ((void));
126widget_value* lw_get_all_values (/* LWLIB_ID id */); 126void lw_destroy_all_pop_ups __P ((void));
127Boolean lw_get_some_values (/* LWLIB_ID id, widget_value* val */); 127Widget lw_raise_all_pop_up_widgets __P ((void));
128void lw_pop_up_all_widgets (/* LWLIB_ID id */); 128widget_value* lw_get_all_values __P ((LWLIB_ID id));
129void lw_pop_down_all_widgets (/* LWLIB_ID id */); 129Boolean lw_get_some_values __P ((LWLIB_ID id, widget_value* val));
130void lw_pop_up_all_widgets __P ((LWLIB_ID id));
131void lw_pop_down_all_widgets __P ((LWLIB_ID id));
130widget_value *malloc_widget_value (); 132widget_value *malloc_widget_value ();
131void free_widget_value (/* widget_value * */); 133void free_widget_value __P ((widget_value *));
132void lw_popup_menu (/* Widget */); 134void 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. */
135void lw_set_keyboard_focus (/* Widget parent, Widget w */); 137void 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 */
138void lw_show_busy (/* Widget w, Boolean busy */); 140void 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. */
141void lw_refigure_widget (/* Widget w, Boolean doit */); 143void 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. */
145Boolean lw_window_is_in_menubar (/* Window win, Widget menubar_widget */); 147Boolean 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. */
148void lw_allow_resizing (/* Widget w, Boolean flag */); 150void lw_allow_resizing __P ((Widget w, Boolean flag));
149 151
150/* Set up the main window. */ 152/* Set up the main window. */
151void lw_set_main_areas (/* Widget parent, 153void 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
160int lw_separator_p (/* char *label, enum menu_separator *type, 162int lw_separator_p __P ((char *label, enum menu_separator *type,
161 int motif_p */); 163 int motif_p));
164
165void 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;
52extern WidgetClass xlwMenuWidgetClass; 52extern WidgetClass xlwMenuWidgetClass;
53 53
54void 54void
55pop_up_menu (); 55pop_up_menu __P ((XlwMenuWidget, XButtonPressedEvent*));
56 56
57#endif /* _XlwMenu_h */ 57#endif /* _XlwMenu_h */