summaryrefslogtreecommitdiff
path: root/src/TextSrc.c
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-24 04:23:57 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-24 23:34:51 -0500
commita4c27e1e353978aeb78cfb9a3f4dda7689119ee9 (patch)
treee1ff9c075cd89e9d1fc88d610261ac3f68c82f4c /src/TextSrc.c
parentdc03ee95bc990e22094360c3b0c801ae2fdeed8e (diff)
unifdef -DNeedFunctionPrototypes -DNeedVarargsPrototypes
This is the first step to removing old-style function definition warnings. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'src/TextSrc.c')
-rw-r--r--src/TextSrc.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/TextSrc.c b/src/TextSrc.c
index 10bb845..3f6898d 100644
--- a/src/TextSrc.c
+++ b/src/TextSrc.c
@@ -360,16 +360,8 @@ XrmValuePtr toVal;
*/
XawTextPosition
-#if NeedFunctionPrototypes
XawTextSourceRead(Widget w, XawTextPosition pos, XawTextBlock *text,
int length)
-#else
-XawTextSourceRead(w, pos, text, length)
-Widget w;
-XawTextPosition pos;
-XawTextBlock *text;
-int length;
-#endif
{
TextSrcObjectClass class = (TextSrcObjectClass) w->core.widget_class;
@@ -391,15 +383,8 @@ int length;
/*ARGSUSED*/
int
-#if NeedFunctionPrototypes
XawTextSourceReplace (Widget w, XawTextPosition startPos,
XawTextPosition endPos, XawTextBlock *text)
-#else
-XawTextSourceReplace (w, startPos, endPos, text)
-Widget w;
-XawTextPosition startPos, endPos;
-XawTextBlock *text;
-#endif
{
TextSrcObjectClass class = (TextSrcObjectClass) w->core.widget_class;
@@ -426,7 +411,6 @@ XawTextBlock *text;
*/
XawTextPosition
-#if NeedFunctionPrototypes
XawTextSourceScan(Widget w, XawTextPosition position,
#if NeedWidePrototypes
int type, int dir,
@@ -439,15 +423,6 @@ XawTextSourceScan(Widget w, XawTextPosition position,
#else
Boolean include)
#endif
-#else
-XawTextSourceScan(w, position, type, dir, count, include)
-Widget w;
-XawTextPosition position;
-XawTextScanType type;
-XawTextScanDirection dir;
-int count;
-Boolean include;
-#endif
{
TextSrcObjectClass class = (TextSrcObjectClass) w->core.widget_class;
@@ -470,7 +445,6 @@ Boolean include;
*/
XawTextPosition
-#if NeedFunctionPrototypes
XawTextSourceSearch(Widget w, XawTextPosition position,
#if NeedWidePrototypes
int dir,
@@ -478,13 +452,6 @@ XawTextSourceSearch(Widget w, XawTextPosition position,
XawTextScanDirection dir,
#endif
XawTextBlock *text)
-#else
-XawTextSourceSearch(w, position, dir, text)
-Widget w;
-XawTextPosition position;
-XawTextScanDirection dir;
-XawTextBlock * text;
-#endif
{
TextSrcObjectClass class = (TextSrcObjectClass) w->core.widget_class;
@@ -509,19 +476,9 @@ XawTextBlock * text;
*/
Boolean
-#if NeedFunctionPrototypes
XawTextSourceConvertSelection(Widget w, Atom *selection, Atom *target,
Atom *type, XtPointer *value,
unsigned long *length, int *format)
-#else
-XawTextSourceConvertSelection(w, selection,
- target, type, value, length, format)
-Widget w;
-Atom * selection, * target, * type;
-XtPointer * value;
-unsigned long * length;
-int * format;
-#endif
{
TextSrcObjectClass class = (TextSrcObjectClass) w->core.widget_class;
@@ -543,15 +500,8 @@ int * format;
*/
void
-#if NeedFunctionPrototypes
XawTextSourceSetSelection(Widget w, XawTextPosition left,
XawTextPosition right, Atom selection)
-#else
-XawTextSourceSetSelection(w, left, right, selection)
-Widget w;
-XawTextPosition left, right;
-Atom selection;
-#endif
{
TextSrcObjectClass class = (TextSrcObjectClass) w->core.widget_class;
@@ -575,12 +525,7 @@ Atom selection;
*
*/
XrmQuark
-#if NeedFunctionPrototypes
_XawTextFormat(TextWidget tw)
-#else
-_XawTextFormat(tw)
- TextWidget tw;
-#endif
{
return (((TextSrcObject)(tw->text.source))->textSrc.text_format);
}