diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2005-02-21 21:08:27 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2005-02-21 21:08:27 +0000 |
commit | 85eb751e4e1683af6cee3ee9dce29f74911a639d (patch) | |
tree | b40f699ee646462a8f223b919ba68dda1d8fc371 /src/HookObj.c | |
parent | 94150cb72d9d641c64325cd70323d93b9a3701a5 (diff) |
Convert lib/Xt to ANSI C (Thomas Dickey). Fixes for a few valgrind warningsXORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_1
(Thomas Dickey).
Diffstat (limited to 'src/HookObj.c')
-rw-r--r-- | src/HookObj.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/HookObj.c b/src/HookObj.c index 697974a..98417f9 100644 --- a/src/HookObj.c +++ b/src/HookObj.c @@ -70,7 +70,7 @@ externaldef(hookobjclassrec) HookObjClassRec hookObjClassRec = { /* class_part_initialize*/ NULL, /* class_inited */ FALSE, /* initialize */ Initialize, - /* initialize_hook */ NULL, + /* initialize_hook */ NULL, /* realize */ NULL, /* actions */ NULL, /* num_actions */ 0, @@ -85,9 +85,9 @@ externaldef(hookobjclassrec) HookObjClassRec hookObjClassRec = { /* resize */ NULL, /* expose */ NULL, /* set_values */ NULL, - /* set_values_hook */ NULL, - /* set_values_almost */ NULL, - /* get_values_hook */ GetValuesHook, + /* set_values_hook */ NULL, + /* set_values_almost */ NULL, + /* get_values_hook */ GetValuesHook, /* accept_focus */ NULL, /* version */ XtVersion, /* callback_offsets */ NULL, @@ -101,7 +101,7 @@ externaldef(hookobjclassrec) HookObjClassRec hookObjClassRec = { } }; -externaldef(hookObjectClass) WidgetClass hookObjectClass = +externaldef(hookObjectClass) WidgetClass hookObjectClass = (WidgetClass)&hookObjClassRec; static void FreeShellList( @@ -114,21 +114,21 @@ static void FreeShellList( XtFree((char*)h->hooks.shells); } -static void Initialize(req, new, args, num_args) - Widget req, new; - ArgList args; - Cardinal* num_args; +static void Initialize( + Widget req, + Widget new, + ArgList args, + Cardinal* num_args) { HookObject w = (HookObject) new; w->hooks.max_shells = 0; XtAddCallback (new, XtNdestroyCallback, FreeShellList, (XtPointer) NULL); } -static void GetValuesHook(widget, args, num_args) - Widget widget; - ArgList args; - Cardinal* num_args; +static void GetValuesHook( + Widget widget, + ArgList args, + Cardinal* num_args) { /* get the XtNshells and XtNnumShells pseudo-resources */ } - |