* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 980816-1.c
bloba79100fab57a103ecd6fbe6f90351b85e15bc17e
1 typedef __SIZE_TYPE__ size_t;
2 typedef void *XtPointer;
4 typedef struct _WidgetRec *Widget;
5 typedef struct _WidgetClassRec *WidgetClass;
7 extern WidgetClass commandWidgetClass;
9 typedef void (*XtCallbackProc)(
10 Widget ,
11 XtPointer ,
12 XtPointer
15 extern const char XtStrings[];
18 typedef struct
20 char *Name,
21 *Label;
22 XtCallbackProc Callback;
23 XtPointer ClientData;
24 Widget W;
25 } DialogButtonType, *DialogButtonTypePtr;
28 Widget AddButtons(Widget Parent, Widget Top,
29 DialogButtonTypePtr Buttons, size_t Count)
31 int i;
33 for (i = 0; i < Count; i++)
35 if (!Buttons[i].Label)
36 continue;
37 Buttons[i].W = XtVaCreateManagedWidget(Buttons[i].Name,
38 commandWidgetClass,
39 Parent,
40 ((char*)&XtStrings[429]) , Buttons[i].Label,
41 "fromHoriz" , i ? Buttons[i-1].W : ((void *)0) ,
42 "fromVert" , Top,
43 "resizable" , 1 ,
44 ((void *)0) );
46 XtAddCallback(((char*)&XtStrings[136]),
47 Buttons[i].Callback, Buttons[i].ClientData);
49 return(Buttons[Count-1].W);