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

XmPrivate.h: Avoid whitespace problems (IMPROVED)

When applying a patch, "git am" strips
trailing whitespace, although they are
present in the git formatted-patch.

This way the committed file will be
slightly different than the file re-generated
by extractprototype.h

It shouldn't hurt, but next run of
extractprototype.h will add trailing spaces
again and the resulting diff on XmPrivate.h
will include more changes than actually
needed.

This may break some viscious circle after
applying the patch, so enabling regeneration
on LinuxArchitecture again.

This patch does not add XmeFlushIconFileCache()
needed by dtcreate.
This commit is contained in:
Marcin Cieslak 2012-09-29 22:23:33 +02:00 committed by Jon Trulson
parent 71962e580d
commit 3eaeffaf7e
3 changed files with 18 additions and 18 deletions

View file

@ -14,10 +14,9 @@ BuildIncludes($(HEADERS),Xm,..)
XCOMM We do not build with Motif sources on Linux, so this will never
XCOMM do the right thing on that platform. Just leave XmPrivate.h as-is.
#if !defined(LinuxArchitecture)
XmPrivate.h: extractprototype.awk
awk -f extractprototype.awk $(MLIBSRC)/Xm/$(ALLHEADERS) > $@ || rm -f $@
#endif
depend::

View file

@ -10,7 +10,7 @@
extern "C" {
#endif
/* Extracted from BaseClassI.h */
extern void _XmPushWidgetExtData(
extern void _XmPushWidgetExtData(
Widget widget,
XmWidgetExtData data,
#if NeedWidePrototypes
@ -18,7 +18,7 @@ extern void _XmPushWidgetExtData(
#else
unsigned char extType) ;
#endif /* NeedWidePrototypes */
extern void _XmPopWidgetExtData(
extern void _XmPopWidgetExtData(
Widget widget,
XmWidgetExtData *dataRtn,
#if NeedWidePrototypes
@ -34,7 +34,7 @@ extern XmWidgetExtData _XmGetWidgetExtData(
unsigned char extType) ;
#endif /* NeedWidePrototypes */
/* Extracted from MenuStateI.h */
extern void _XmSetInDragMode(
extern void _XmSetInDragMode(
Widget widget,
#if NeedWidePrototypes
int mode) ;
@ -42,7 +42,7 @@ extern void _XmSetInDragMode(
Boolean mode) ;
#endif /* NeedWidePrototypes */
/* Extracted from MenuUtilI.h */
extern int _XmGrabPointer(
extern int _XmGrabPointer(
Widget widget,
int owner_events,
unsigned int event_mask,
@ -56,11 +56,11 @@ extern void _XmGetActiveTopLevelMenu(
Widget wid,
Widget *rwid);
/* Extracted from SyntheticI.h */
extern void _XmExtGetValuesHook(
extern void _XmExtGetValuesHook(
Widget w,
ArgList args,
Cardinal *num_args) ;
extern void _XmGadgetImportSecondaryArgs(
extern void _XmGadgetImportSecondaryArgs(
Widget w,
ArgList args,
Cardinal *num_args) ;
@ -79,36 +79,36 @@ extern char * _XmStringSourceGetString(XmTextWidget tw,
Boolean want_wchar);
#endif /* NeedWidePrototypes */
/* Extracted from TravActI.h */
extern void _XmEnterGadget(
extern void _XmEnterGadget(
Widget wid,
XEvent *event,
String *params,
Cardinal *num_params) ;
extern void _XmLeaveGadget(
extern void _XmLeaveGadget(
Widget wid,
XEvent *event,
String *params,
Cardinal *num_params) ;
extern void _XmFocusInGadget(
extern void _XmFocusInGadget(
Widget wid,
XEvent *event,
String *params,
Cardinal *num_params) ;
extern void _XmFocusOutGadget(
extern void _XmFocusOutGadget(
Widget wid,
XEvent *event,
String *params,
Cardinal *num_params) ;
/* Extracted from TraversalI.h */
extern Boolean _XmFocusIsHere(
extern Boolean _XmFocusIsHere(
Widget w) ;
extern Boolean _XmShellIsExclusive(
extern Boolean _XmShellIsExclusive(
Widget wid) ;
/* Extracted from UniqueEvnI.h */
extern Boolean _XmIsEventUnique(XEvent *event) ;
extern void _XmRecordEvent(XEvent *event) ;
/* Extracted from VendorSI.h */
extern void _XmAddGrab(
extern void _XmAddGrab(
Widget wid,
#if NeedWidePrototypes
int exclusive,
@ -117,15 +117,15 @@ extern void _XmAddGrab(
Boolean exclusive,
Boolean spring_loaded) ;
#endif /* NeedWidePrototypes */
extern void _XmRemoveGrab(
extern void _XmRemoveGrab(
Widget wid) ;
/* Extracted from XmI.h */
extern void _XmSocorro(
extern void _XmSocorro(
Widget w,
XEvent *event,
String *params,
Cardinal *num_params) ;
extern void _XmClearShadowType(
extern void _XmClearShadowType(
Widget w,
#if NeedWidePrototypes
int old_width,

View file

@ -24,6 +24,7 @@ function proto() {
printf("/* Extracted from %s */\n", n);
curfile = FILENAME;
}
sub(/[ \t]*$/, "", line);
print line;
getline;
if ( pattern == 0) {