diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-26 00:23:24 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-26 17:31:57 -0500 |
commit | 42123013118c42f40873b1b8785c7e5ce2734965 (patch) | |
tree | a795a3bc1565ddf8dfc5edb813a9e77c92656dd3 /src/Sme.c | |
parent | 36ceec196ad8f500c1d73e7755f7e115ab0e12f8 (diff) |
Sme: Fix old-style function definitions
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Acked-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'src/Sme.c')
-rw-r--r-- | src/Sme.c | 30 |
1 files changed, 12 insertions, 18 deletions
@@ -56,9 +56,12 @@ static XtResource resources[] = { * Semi Public function definitions. */ -static void Unhighlight(), Highlight(), Notify(), ClassPartInitialize(); -static void Initialize(); -static XtGeometryResult QueryGeometry(); +static void Unhighlight(Widget); +static void Highlight(Widget); +static void Notify(Widget); +static void ClassPartInitialize(WidgetClass); +static void Initialize(Widget, Widget, ArgList, Cardinal *); +static XtGeometryResult QueryGeometry(Widget, XtWidgetGeometry *, XtWidgetGeometry *); #define SUPERCLASS (&rectObjClassRec) @@ -121,8 +124,7 @@ WidgetClass smeObjectClass = (WidgetClass) &smeClassRec; */ static void -ClassPartInitialize(class) -WidgetClass class; +ClassPartInitialize(WidgetClass class) { SmeObjectClass m_ent, superC; @@ -156,10 +158,7 @@ WidgetClass class; /* ARGSUSED */ static void -Initialize(request, new, args, num_args) -Widget request, new; -ArgList args; -Cardinal *num_args; +Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args) { SmeObject entry = (SmeObject) new; @@ -174,8 +173,7 @@ Cardinal *num_args; /* ARGSUSED */ static void -Highlight(w) -Widget w; +Highlight(Widget w) { /* This space intentionally left blank. */ } @@ -188,8 +186,7 @@ Widget w; /* ARGSUSED */ static void -Unhighlight(w) -Widget w; +Unhighlight(Widget w) { /* This space intentionally left blank. */ } @@ -201,8 +198,7 @@ Widget w; */ static void -Notify(w) -Widget w; +Notify(Widget w) { XtCallCallbacks(w, XtNcallback, (XtPointer)NULL); } @@ -219,9 +215,7 @@ Widget w; */ static XtGeometryResult -QueryGeometry(w, intended, return_val) -Widget w; -XtWidgetGeometry *intended, *return_val; +QueryGeometry(Widget w, XtWidgetGeometry *intended, XtWidgetGeometry *return_val) { SmeObject entry = (SmeObject) w; Dimension width; |