aboutsummaryrefslogtreecommitdiffstats
path: root/oldXMenu/Internal.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-03 22:57:11 -0700
committerDan Nicolaescu2010-07-03 22:57:11 -0700
commitb782e2d7f36a742156e5b13d43efdcf620356bc0 (patch)
tree2c34b178184f880183bf64db7553be73c2c1c8e7 /oldXMenu/Internal.c
parentc3174d16e2a91d19313afd8109c31ad8695a87c6 (diff)
downloademacs-b782e2d7f36a742156e5b13d43efdcf620356bc0.tar.gz
emacs-b782e2d7f36a742156e5b13d43efdcf620356bc0.zip
Convert function definitions in oldXMenu to standard C.
* oldXMenu/Activate.c: Convert function definitions to standard C. * oldXMenu/AddPane.c: * oldXMenu/AddSel.c: * oldXMenu/ChgPane.c: * oldXMenu/ChgSel.c: * oldXMenu/Create.c: * oldXMenu/DelPane.c: * oldXMenu/DelSel.c: * oldXMenu/Destroy.c: * oldXMenu/Error.c: * oldXMenu/EvHand.c: * oldXMenu/FindPane.c: * oldXMenu/FindSel.c: * oldXMenu/InsPane.c: * oldXMenu/InsSel.c: * oldXMenu/Internal.c: * oldXMenu/Locate.c: * oldXMenu/Post.c: * oldXMenu/Recomp.c: * oldXMenu/SetAEQ.c: * oldXMenu/SetFrz.c: * oldXMenu/SetPane.c: * oldXMenu/SetSel.c: * oldXMenu/X10.h: * oldXMenu/XCrAssoc.c: * oldXMenu/XDelAssoc.c: * oldXMenu/XDestAssoc.c: * oldXMenu/XLookAssoc.c: * oldXMenu/XMakeAssoc.c: * oldXMenu/XMenu.h: * oldXMenu/XMenuInt.h: * oldXMenu/insque.c: Likewise.
Diffstat (limited to 'oldXMenu/Internal.c')
-rw-r--r--oldXMenu/Internal.c94
1 files changed, 44 insertions, 50 deletions
diff --git a/oldXMenu/Internal.c b/oldXMenu/Internal.c
index b00841b0cc3..cb87dd650c7 100644
--- a/oldXMenu/Internal.c
+++ b/oldXMenu/Internal.c
@@ -96,7 +96,7 @@ _XMErrorList[XME_CODE_COUNT] = {
96/* 96/*
97 * _XMEventHandler - Internal event handler variable. 97 * _XMEventHandler - Internal event handler variable.
98 */ 98 */
99int (*_XMEventHandler)() = NULL; 99int (*_XMEventHandler)(XEvent*) = NULL;
100 100
101 101
102 102
@@ -104,7 +104,7 @@ int (*_XMEventHandler)() = NULL;
104 * _XMWinQueInit - Internal routine to initialize the window 104 * _XMWinQueInit - Internal routine to initialize the window
105 * queue. 105 * queue.
106 */ 106 */
107_XMWinQueInit() 107_XMWinQueInit(void)
108{ 108{
109 /* 109 /*
110 * If the queue is not initialized initialize it. 110 * If the queue is not initialized initialize it.
@@ -138,10 +138,10 @@ _XMWinQueInit()
138 * window queue. 138 * window queue.
139 */ 139 */
140int 140int
141_XMWinQueAddPane(display, menu, p_ptr) 141_XMWinQueAddPane(register Display *display, register XMenu *menu, register XMPane *p_ptr)
142 register Display *display; 142
143 register XMenu *menu; /* Menu being manipulated. */ 143 /* Menu being manipulated. */
144 register XMPane *p_ptr; /* XMPane being queued. */ 144 /* XMPane being queued. */
145{ 145{
146 /* 146 /*
147 * If the queue is currently full then flush it. 147 * If the queue is currently full then flush it.
@@ -172,10 +172,10 @@ _XMWinQueAddPane(display, menu, p_ptr)
172 * the selection window queue. 172 * the selection window queue.
173 */ 173 */
174int 174int
175_XMWinQueAddSelection(display, menu, s_ptr) 175_XMWinQueAddSelection(register Display *display, register XMenu *menu, register XMSelect *s_ptr)
176 register Display *display; 176
177 register XMenu *menu; /* Menu being manipulated. */ 177 /* Menu being manipulated. */
178 register XMSelect *s_ptr; /* XMSelection being queued. */ 178 /* XMSelection being queued. */
179{ 179{
180 /* 180 /*
181 * If this entry will overflow the queue then flush it. 181 * If this entry will overflow the queue then flush it.
@@ -206,10 +206,10 @@ _XMWinQueAddSelection(display, menu, s_ptr)
206 * selection window queues. 206 * selection window queues.
207 */ 207 */
208int 208int
209_XMWinQueFlush(display, menu, pane, select) 209_XMWinQueFlush(register Display *display, register XMenu *menu, register XMPane *pane, XMSelect *select)
210 register Display *display; 210
211 register XMenu *menu; /* Menu being manipulated. */ 211 /* Menu being manipulated. */
212 register XMPane *pane; /* Current pane. */ 212 /* Current pane. */
213{ 213{
214 register int pq_index; /* Pane queue index. */ 214 register int pq_index; /* Pane queue index. */
215 register int sq_index; /* Selection queue index. */ 215 register int sq_index; /* Selection queue index. */
@@ -346,9 +346,9 @@ _XMWinQueFlush(display, menu, pane, select)
346 * a pane pointer that points to the indexed pane. 346 * a pane pointer that points to the indexed pane.
347 */ 347 */
348XMPane * 348XMPane *
349_XMGetPanePtr(menu, p_num) 349_XMGetPanePtr(register XMenu *menu, register int p_num)
350 register XMenu *menu; /* Menu to find the pane in. */ 350 /* Menu to find the pane in. */
351 register int p_num; /* Index number of pane to find. */ 351 /* Index number of pane to find. */
352{ 352{
353 register XMPane *p_ptr; /* Pane pointer to be returned. */ 353 register XMPane *p_ptr; /* Pane pointer to be returned. */
354 register int i; /* Loop counter. */ 354 register int i; /* Loop counter. */
@@ -382,9 +382,9 @@ _XMGetPanePtr(menu, p_num)
382 * indexed selection. 382 * indexed selection.
383 */ 383 */
384XMSelect * 384XMSelect *
385_XMGetSelectionPtr(p_ptr, s_num) 385_XMGetSelectionPtr(register XMPane *p_ptr, register int s_num)
386 register XMPane *p_ptr; /* Pane to find the selection in. */ 386 /* Pane to find the selection in. */
387 register int s_num; /* Index number of the selection to find. */ 387 /* Index number of the selection to find. */
388{ 388{
389 register XMSelect *s_ptr; /* Selection pointer to be returned. */ 389 register XMSelect *s_ptr; /* Selection pointer to be returned. */
390 register int i; /* Loop counter. */ 390 register int i; /* Loop counter. */
@@ -416,9 +416,9 @@ _XMGetSelectionPtr(p_ptr, s_num)
416 * _XMRecomputeGlobals - Internal subroutine to recompute menu wide 416 * _XMRecomputeGlobals - Internal subroutine to recompute menu wide
417 * global values. 417 * global values.
418 */ 418 */
419_XMRecomputeGlobals(display, menu) 419_XMRecomputeGlobals(register Display *display, register XMenu *menu)
420 register Display *display; /*X11 display variable. */ 420 /*X11 display variable. */
421 register XMenu *menu; /* Menu object to compute from. */ 421 /* Menu object to compute from. */
422{ 422{
423 register XMPane *p_ptr; /* Pane pointer. */ 423 register XMPane *p_ptr; /* Pane pointer. */
424 register XMSelect *s_ptr; /* Selection pointer. */ 424 register XMSelect *s_ptr; /* Selection pointer. */
@@ -531,11 +531,11 @@ _XMRecomputeGlobals(display, menu)
531 * window dependencies. 531 * window dependencies.
532 */ 532 */
533int 533int
534_XMRecomputePane(display, menu, p_ptr, p_num) 534_XMRecomputePane(register Display *display, register XMenu *menu, register XMPane *p_ptr, register int p_num)
535 register Display *display; /* Standard X display variable. */ 535 /* Standard X display variable. */
536 register XMenu *menu; /* Menu object being recomputed. */ 536 /* Menu object being recomputed. */
537 register XMPane *p_ptr; /* Pane pointer. */ 537 /* Pane pointer. */
538 register int p_num; /* Pane sequence number. */ 538 /* Pane sequence number. */
539{ 539{
540 register int window_x; /* Recomputed window X coordinate. */ 540 register int window_x; /* Recomputed window X coordinate. */
541 register int window_y; /* Recomputed window Y coordinate. */ 541 register int window_y; /* Recomputed window Y coordinate. */
@@ -681,11 +681,11 @@ _XMRecomputePane(display, menu, p_ptr, p_num)
681 * selection window dependencies. 681 * selection window dependencies.
682 */ 682 */
683int 683int
684_XMRecomputeSelection(display, menu, s_ptr, s_num) 684_XMRecomputeSelection(register Display *display, register XMenu *menu, register XMSelect *s_ptr, register int s_num)
685 register Display *display; 685
686 register XMenu *menu; /* Menu object being recomputed. */ 686 /* Menu object being recomputed. */
687 register XMSelect *s_ptr; /* Selection pointer. */ 687 /* Selection pointer. */
688 register int s_num; /* Selection sequence number. */ 688 /* Selection sequence number. */
689{ 689{
690 register Bool config_s = False; /* Reconfigure selection window? */ 690 register Bool config_s = False; /* Reconfigure selection window? */
691 XWindowChanges *changes; /* Values to change in configure. */ 691 XWindowChanges *changes; /* Values to change in configure. */
@@ -811,15 +811,15 @@ _XMRecomputeSelection(display, menu, s_ptr, s_num)
811 * recomputed before calling this routine or 811 * recomputed before calling this routine or
812 * unpredictable results will follow. 812 * unpredictable results will follow.
813 */ 813 */
814_XMTransToOrigin(display, menu, p_ptr, s_ptr, x_pos, y_pos, orig_x, orig_y) 814_XMTransToOrigin(Display *display, register XMenu *menu, register XMPane *p_ptr, register XMSelect *s_ptr, int x_pos, int y_pos, int *orig_x, int *orig_y)
815 Display *display; /* Not used. Included for consistency. */ 815 /* Not used. Included for consistency. */
816 register XMenu *menu; /* Menu being computed against. */ 816 /* Menu being computed against. */
817 register XMPane *p_ptr; /* Current pane pointer. */ 817 /* Current pane pointer. */
818 register XMSelect *s_ptr; /* Current selection pointer. */ 818 /* Current selection pointer. */
819 int x_pos; /* X coordinate of point to translate. */ 819 /* X coordinate of point to translate. */
820 int y_pos; /* Y coordinate of point to translate. */ 820 /* Y coordinate of point to translate. */
821 int *orig_x; /* Return value X coord. of the menu origin. */ 821 /* Return value X coord. of the menu origin. */
822 int *orig_y; /* Return value Y coord. of the menu origin. */ 822 /* Return value Y coord. of the menu origin. */
823{ 823{
824 register int l_orig_x; /* Local X coordinate of the menu origin. */ 824 register int l_orig_x; /* Local X coordinate of the menu origin. */
825 register int l_orig_y; /* Local Y coordinate of the menu origin. */ 825 register int l_orig_y; /* Local Y coordinate of the menu origin. */
@@ -871,10 +871,7 @@ _XMTransToOrigin(display, menu, p_ptr, s_ptr, x_pos, y_pos, orig_x, orig_y)
871 * _XMRefreshPane - Internal subroutine to completely refresh 871 * _XMRefreshPane - Internal subroutine to completely refresh
872 * the contents of a pane. 872 * the contents of a pane.
873 */ 873 */
874_XMRefreshPane(display, menu, pane) 874_XMRefreshPane(register Display *display, register XMenu *menu, register XMPane *pane)
875 register Display *display;
876 register XMenu *menu;
877 register XMPane *pane;
878{ 875{
879 register XMSelect *s_list = pane->s_list; 876 register XMSelect *s_list = pane->s_list;
880 register XMSelect *s_ptr; 877 register XMSelect *s_ptr;
@@ -941,10 +938,7 @@ _XMRefreshPane(display, menu, pane)
941 * _XMRefreshSelection - Internal subroutine that refreshes 938 * _XMRefreshSelection - Internal subroutine that refreshes
942 * a single selection window. 939 * a single selection window.
943 */ 940 */
944_XMRefreshSelection(display, menu, select) 941_XMRefreshSelection(register Display *display, register XMenu *menu, register XMSelect *select)
945 register Display *display;
946 register XMenu *menu;
947 register XMSelect *select;
948{ 942{
949 register int width = select->window_w; 943 register int width = select->window_w;
950 register int height = select->window_h; 944 register int height = select->window_h;