comparison src/extw-Xt.c @ 2110:f18c80177dfe

[xemacs-hg @ 2004-06-03 10:10:45 by didierv] EXTERN_C fixes
author didierv
date Thu, 03 Jun 2004 10:10:46 +0000
parents 8de911beca70
children 2e4be8dd02fc
comparison
equal deleted inserted replaced
2109:92b1c3ca4824 2110:f18c80177dfe
26 26
27 #ifndef EXTERNAL_WIDGET 27 #ifndef EXTERNAL_WIDGET
28 ERROR! This ought not be getting compiled if EXTERNAL_WIDGET is undefined 28 ERROR! This ought not be getting compiled if EXTERNAL_WIDGET is undefined
29 #endif 29 #endif
30 30
31 EXTERN_C 31 EXTERN_C void fatal (const char *fmt, ...);
32 {
33 void fatal (const char *fmt, ...);
34 }
35 #else /* not emacs */ 32 #else /* not emacs */
36 static void fatal (char *msg); 33 static void fatal (char *msg);
37 #endif 34 #endif
38 35
39 #include <X11/Intrinsic.h> 36 #include <X11/Intrinsic.h>
46 43
47 Why the hell didn't the Xt people just export this function 44 Why the hell didn't the Xt people just export this function
48 for real? */ 45 for real? */
49 46
50 #if (XT_REVISION > 5) 47 #if (XT_REVISION > 5)
51 EXTERN_C 48 EXTERN_C int
52 { 49 _XtWaitForSomething (XtAppContext app, _XtBoolean ignoreEvents,
53 int _XtWaitForSomething (XtAppContext app, _XtBoolean ignoreEvents, 50 _XtBoolean ignoreTimers, _XtBoolean ignoreInputs,
54 _XtBoolean ignoreTimers, _XtBoolean ignoreInputs, 51 _XtBoolean ignoreSignals, _XtBoolean block,
55 _XtBoolean ignoreSignals, _XtBoolean block,
56 #ifdef XTHREADS 52 #ifdef XTHREADS
57 _XtBoolean drop_lock, 53 _XtBoolean drop_lock,
58 #endif 54 #endif
59 unsigned long *howlong); 55 unsigned long *howlong);
60 }
61 56
62 # ifndef XTHREADS 57 # ifndef XTHREADS
63 # define _XT_WAIT_FOR_SOMETHING(timers,inputs,events,block,howlong,appCtx) \ 58 # define _XT_WAIT_FOR_SOMETHING(timers,inputs,events,block,howlong,appCtx) \
64 _XtWaitForSomething (appCtx,events,timers,inputs,0,block,howlong) 59 _XtWaitForSomething (appCtx,events,timers,inputs,0,block,howlong)
65 # else 60 # else
66 # define _XT_WAIT_FOR_SOMETHING(timers,inputs,events,block,howlong,appCtx) \ 61 # define _XT_WAIT_FOR_SOMETHING(timers,inputs,events,block,howlong,appCtx) \
67 _XtWaitForSomething (appCtx,events,timers,inputs,0,block,1,howlong) 62 _XtWaitForSomething (appCtx,events,timers,inputs,0,block,1,howlong)
68 # endif 63 # endif
69 #else 64 #else
70 EXTERN_C 65 EXTERN_C int
71 { 66 _XtwaitForSomething (Boolean ignoreTimers, Boolean ignoreInputs,
72 int _XtwaitForSomething (Boolean ignoreTimers, Boolean ignoreInputs, 67 Boolean ignoreEvents, Boolean block,
73 Boolean ignoreEvents, Boolean block, 68 unsigned long *howlong, XtAppContext app);
74 unsigned long *howlong, XtAppContext app);
75 }
76 #endif 69 #endif
77 70
78 #ifdef DEBUG_WIDGET 71 #ifdef DEBUG_WIDGET
79 72
80 static int geom_masks[] = { 73 static int geom_masks[] = {