diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:13 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:13 +0000 |
commit | c059776a3a8a7c760799d1a55c1a130c2179ecc9 (patch) | |
tree | 82ffbfb4d920bed078bcd77ebea90f0f2c7ff26e /choice.c | |
parent | e3dfd7a6398174ae8db6a1c0d5e5590d1dabcf31 (diff) |
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330
Diffstat (limited to 'choice.c')
-rw-r--r-- | choice.c | 34 |
1 files changed, 10 insertions, 24 deletions
@@ -1,3 +1,4 @@ +/* $XFree86: xc/programs/xgc/choice.c,v 1.3 2003/10/24 20:38:18 tsi Exp $ */ /* ** xgc ** @@ -15,14 +16,7 @@ #include "xgc.h" -static void print_text_to_buffer( -#if NeedFunctionPrototypes - Widget, caddr_t, caddr_t -#endif -); -extern void interpret(); - -extern XStuff X; +static void print_text_to_buffer(Widget, caddr_t, caddr_t); /* create_choice(w,info) ** --------------------- @@ -50,9 +44,7 @@ extern XStuff X; */ ChoiceDesc * -create_choice(w,info) - Widget w; - XgcStuff *info; +create_choice(Widget w, XgcStuff *info) { ChoiceDesc *choice; /* What we will return. Contains ** Widget ID's of the label and toggles. */ @@ -188,9 +180,7 @@ create_choice(w,info) */ void -select_button(choice,togglenum) - ChoiceDesc *choice; - int togglenum; +select_button(ChoiceDesc *choice, int togglenum) { static Arg toggleargs[] = { {XtNstate, (XtArgVal) True} @@ -207,9 +197,7 @@ select_button(choice,togglenum) */ void -line_up_labels(descs,numdescs) - ChoiceDesc *descs[]; - int numdescs; +line_up_labels(ChoiceDesc *descs[], int numdescs) { int i; /* counter */ Dimension width; /* current width */ @@ -246,9 +234,7 @@ line_up_labels(descs,numdescs) */ void -choose_defaults(descs,numdescs) - ChoiceDesc *descs[]; - int numdescs; +choose_defaults(ChoiceDesc *descs[], int numdescs) { int i; /* which choice layout */ int j; /* which toggle within it */ @@ -273,10 +259,10 @@ choose_defaults(descs,numdescs) /*ARGSUSED*/ static void -print_text_to_buffer(w,closure,call_data) - Widget w; - caddr_t closure; /* contains the string */ - caddr_t call_data; +print_text_to_buffer( + Widget w, + caddr_t closure, /* contains the string */ + caddr_t call_data) { interpret((char *) closure); /* Gee, that was easy */ } |