From b01f39a8e6eadd35758fe4301e019b66f238917d Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Wed, 26 Nov 2003 22:49:11 +0000 Subject: merge latest (4.3.99.16) from XFree86 (vendor) branch --- choice.c | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) (limited to 'choice.c') diff --git a/choice.c b/choice.c index 57cf80d..5b0abcd 100644 --- a/choice.c +++ b/choice.c @@ -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 */ } -- cgit v1.2.3