diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-24 04:23:57 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-24 23:34:51 -0500 |
commit | a4c27e1e353978aeb78cfb9a3f4dda7689119ee9 (patch) | |
tree | e1ff9c075cd89e9d1fc88d610261ac3f68c82f4c /src/TextSink.c | |
parent | dc03ee95bc990e22094360c3b0c801ae2fdeed8e (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/TextSink.c')
-rw-r--r-- | src/TextSink.c | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/src/TextSink.c b/src/TextSink.c index d7211f1..65d81c5 100644 --- a/src/TextSink.c +++ b/src/TextSink.c @@ -481,7 +481,6 @@ XRectangle * rect; /* ARGSUSED */ void -#if NeedFunctionPrototypes XawTextSinkDisplayText(Widget w, #if NeedWidePrototypes /* Position */ int x, /* Position */ int y, @@ -494,13 +493,6 @@ XawTextSinkDisplayText(Widget w, #else Boolean highlight) #endif -#else -XawTextSinkDisplayText(w, x, y, pos1, pos2, highlight) -Widget w; -Position x, y; -Boolean highlight; -XawTextPosition pos1, pos2; -#endif { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; @@ -520,19 +512,12 @@ XawTextPosition pos1, pos2; /* ARGSUSED */ void -#if NeedFunctionPrototypes XawTextSinkInsertCursor(Widget w, #if NeedWidePrototypes int x, int y, int state) #else Position x, Position y, XawTextInsertState state) #endif -#else -XawTextSinkInsertCursor(w, x, y, state) -Widget w; -Position x, y; -XawTextInsertState state; -#endif { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; @@ -553,7 +538,6 @@ XawTextInsertState state; /* ARGSUSED */ void -#if NeedFunctionPrototypes XawTextSinkClearToBackground (Widget w, #if NeedWidePrototypes int x, int y, int width, int height) @@ -561,12 +545,6 @@ XawTextSinkClearToBackground (Widget w, Position x, Position y, Dimension width, Dimension height) #endif -#else -XawTextSinkClearToBackground (w, x, y, width, height) -Widget w; -Position x, y; -Dimension width, height; -#endif { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; @@ -588,7 +566,6 @@ Dimension width, height; /* ARGSUSED */ void -#if NeedFunctionPrototypes XawTextSinkFindPosition(Widget w, XawTextPosition fromPos, int fromx, int width, #if NeedWidePrototypes @@ -597,16 +574,6 @@ XawTextSinkFindPosition(Widget w, XawTextPosition fromPos, int fromx, Boolean stopAtWordBreak, #endif XawTextPosition *resPos, int *resWidth, int *resHeight) -#else -XawTextSinkFindPosition(w, fromPos, fromx, width, stopAtWordBreak, - resPos, resWidth, resHeight) -Widget w; -XawTextPosition fromPos; -int fromx, width; -Boolean stopAtWordBreak; -XawTextPosition *resPos; -int *resWidth, *resHeight; -#endif { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; @@ -629,16 +596,9 @@ int *resWidth, *resHeight; /* ARGSUSED */ void -#if NeedFunctionPrototypes XawTextSinkFindDistance (Widget w, XawTextPosition fromPos, int fromx, XawTextPosition toPos, int *resWidth, XawTextPosition *resPos, int *resHeight) -#else -XawTextSinkFindDistance (w, fromPos, fromx, toPos, resWidth, resPos, resHeight) -Widget w; -XawTextPosition fromPos, toPos, *resPos; -int fromx, *resWidth, *resHeight; -#endif { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; @@ -658,16 +618,8 @@ int fromx, *resWidth, *resHeight; /* ARGSUSED */ void -#if NeedFunctionPrototypes XawTextSinkResolve(Widget w, XawTextPosition pos, int fromx, int width, XawTextPosition *resPos) -#else -XawTextSinkResolve(w, pos, fromx, width, resPos) -Widget w; -XawTextPosition pos; -int fromx, width; -XawTextPosition *resPos; -#endif { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; @@ -684,18 +636,12 @@ XawTextPosition *resPos; /* ARGSUSED */ int -#if NeedFunctionPrototypes XawTextSinkMaxLines(Widget w, #if NeedWidePrototypes /* Dimension */ int height) #else Dimension height) #endif -#else -XawTextSinkMaxLines(w, height) -Widget w; -Dimension height; -#endif { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; @@ -712,13 +658,7 @@ Dimension height; /* ARGSUSED */ int -#if NeedFunctionPrototypes XawTextSinkMaxHeight(Widget w, int lines) -#else -XawTextSinkMaxHeight(w, lines) -Widget w; -int lines; -#endif { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; @@ -734,13 +674,7 @@ int lines; */ void -#if NeedFunctionPrototypes XawTextSinkSetTabs(Widget w, int tab_count, int *tabs) -#else -XawTextSinkSetTabs(w, tab_count, tabs) -Widget w; -int tab_count, *tabs; -#endif { if (tab_count > 0) { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; @@ -764,13 +698,7 @@ int tab_count, *tabs; /* ARGSUSED */ void -#if NeedFunctionPrototypes XawTextSinkGetCursorBounds(Widget w, XRectangle *rect) -#else -XawTextSinkGetCursorBounds(w, rect) -Widget w; -XRectangle * rect; -#endif { TextSinkObjectClass class = (TextSinkObjectClass) w->core.widget_class; |