diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-26 00:26:26 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-26 17:31:45 -0500 |
commit | 46aab45f6a089e39075ed36f2e3e569c2f74bd4c (patch) | |
tree | 681d48e6f4278bda0b042663d72ded3df0652798 /include/X11/Xaw3d/TextSrcP.h | |
parent | c9f8e4d90a70e63fd51bf8d517a5650b25055241 (diff) |
include: Fix old-style function definitions
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Acked-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'include/X11/Xaw3d/TextSrcP.h')
-rw-r--r-- | include/X11/Xaw3d/TextSrcP.h | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/include/X11/Xaw3d/TextSrcP.h b/include/X11/Xaw3d/TextSrcP.h index d944849..973420a 100644 --- a/include/X11/Xaw3d/TextSrcP.h +++ b/include/X11/Xaw3d/TextSrcP.h @@ -69,6 +69,7 @@ SOFTWARE. * ************************************************************/ +#if 0 /* no longer used */ typedef struct { XtPointer next_extension; XrmQuark record_type; @@ -76,14 +77,34 @@ typedef struct { Cardinal record_size; int (*Input)(); } TextSrcExtRec, *TextSrcExt; +#endif + +typedef XawTextPosition (*_XawSrcReadProc) + (Widget, XawTextPosition, XawTextBlock*, int); + +typedef int (*_XawSrcReplaceProc) + (Widget, XawTextPosition, XawTextPosition, XawTextBlock*); + +typedef XawTextPosition (*_XawSrcScanProc) + (Widget, XawTextPosition, XawTextScanType, XawTextScanDirection, + int, Boolean); + +typedef XawTextPosition (*_XawSrcSearchProc) + (Widget, XawTextPosition, XawTextScanDirection, XawTextBlock*); + +typedef void (*_XawSrcSetSelectionProc) + (Widget, XawTextPosition, XawTextPosition, Atom); + +typedef Boolean (*_XawSrcConvertSelectionProc) + (Widget, Atom*, Atom*, Atom*, XtPointer*, unsigned long*, int*); typedef struct _TextSrcClassPart { - XawTextPosition (*Read)(); - int (*Replace)(); - XawTextPosition (*Scan)(); - XawTextPosition (*Search)(); - void (*SetSelection)(); - Boolean (*ConvertSelection)(); + _XawSrcReadProc Read; + _XawSrcReplaceProc Replace; + _XawSrcScanProc Scan; + _XawSrcSearchProc Search; + _XawSrcSetSelectionProc SetSelection; + _XawSrcConvertSelectionProc ConvertSelection; } TextSrcClassPart; /* Full class record declaration */ @@ -137,18 +158,17 @@ wchar_t* _XawTextMBToWC( * ************************************************************/ -typedef Boolean (*_XawBooleanFunc)(); -typedef int (*_XawIntFunc)(); +#if 0 /* no longer used */ typedef XawTextPosition (*_XawTextPositionFunc)(); -typedef void (*_XawTextVoidFunc)(); +#endif #define XtInheritInput ((_XawTextPositionFunc) _XtInherit) -#define XtInheritRead ((_XawTextPositionFunc) _XtInherit) -#define XtInheritReplace ((_XawIntFunc) _XtInherit) -#define XtInheritScan ((_XawTextPositionFunc) _XtInherit) -#define XtInheritSearch ((_XawTextPositionFunc) _XtInherit) -#define XtInheritSetSelection ((_XawTextVoidFunc) _XtInherit) -#define XtInheritConvertSelection ((_XawBooleanFunc) _XtInherit) +#define XtInheritRead ((_XawSrcReadProc) _XtInherit) +#define XtInheritReplace ((_XawSrcReplaceProc) _XtInherit) +#define XtInheritScan ((_XawSrcScanProc) _XtInherit) +#define XtInheritSearch ((_XawSrcSearchProc) _XtInherit) +#define XtInheritSetSelection ((_XawSrcSetSelectionProc) _XtInherit) +#define XtInheritConvertSelection ((_XawSrcConvertSelectionProc) _XtInherit) #define XtTextSrcExtVersion 1 #define XtTextSrcExtTypeString "XT_TEXTSRC_EXT" |