1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Kill most warnings in lib/DtTerm.

Mostly missing headers, explicit parentheses and new prototypes.

Some Caveats:
* I haven't compile-tested the SVR4 getpty file, it might need another tweak
* There were operator precedence bugs in TermPrimCursor.c and TermPrimRender.c
  (^ vs. !=).  This might change behaviour, but at least I haven't experienced
  any crashes ...
* This adds a little more dependencies for include ordering, but unless we
  want to play the "headers that include headers that include headers..." game,
  this is unavoidable.
This commit is contained in:
Pascal Stumpf 2013-07-22 12:34:15 +02:00 committed by Jon Trulson
parent 8f98ac92cd
commit dc0e8ea74d
43 changed files with 437 additions and 285 deletions

View file

@ -81,11 +81,26 @@ extern char * _XmStringSourceGetString(XmTextWidget tw,
Boolean want_wchar);
#endif /* NeedWidePrototypes */
/* Extracted from TravActI.h */
extern void _XmEnterGadget(
extern void _XmPrimitiveEnter(
Widget wid,
XEvent *event,
String *params,
Cardinal *num_params) ;
extern void _XmPrimitiveLeave(
Widget wid,
XEvent *event,
String *params,
Cardinal *num_params) ;
extern void _XmPrimitiveFocusOut(
Widget wid,
XEvent *event,
String *params,
Cardinal *num_params) ;
extern void _XmPrimitiveFocusIn(
Widget pw,
XEvent *event,
String *params,
Cardinal *num_params) ;
extern void _XmLeaveGadget(
Widget wid,
XEvent *event,
@ -104,6 +119,8 @@ extern void _XmFocusOutGadget(
/* Extracted from TraversalI.h */
extern Boolean _XmFocusIsHere(
Widget w) ;
extern unsigned char _XmGetFocusPolicy(
Widget w) ;
extern Boolean _XmShellIsExclusive(
Widget wid) ;
/* Extracted from UniqueEvnI.h */

View file

@ -61,4 +61,9 @@ function proto() {
/_XmShellIsExclusive/ { proto(); }
/_XmTextFieldSetDestination/ { proto(); }
/_XmGetActiveTopLevelMenu/ { proto(); }
/_XmGetFocusPolicy/ { proto(); }
/_XmPrimitiveEnter/ { proto(); }
/_XmPrimitiveLeave/ { proto(); }
/_XmPrimitiveFocusOut/ { proto(); }
/_XmPrimitiveFocusIn\(/ { proto(); }
/XmeFlushIconFileCache/ { proto(); }