1 /* { dg-do compile } */
3 typedef struct { char Vshow
; } TScreen
;
4 typedef struct _Misc
{ char Tshow
; } Misc
;
5 typedef struct _XtermWidgetRec
{ TScreen screen
; Misc misc
; } XtermWidgetRec
, *XtermWidget
;
6 extern XtermWidget term
;
7 void Bell (XtermWidget
, int, int);
8 void set_tek_visibility (int);
11 handle_tekshow (void *gw
, int allowswitch
)
13 XtermWidget xw
= term
;
14 if (!((xw
)->misc
.Tshow
))
15 set_tek_visibility (1);
19 do_tekonoff (void *gw
, void *closure
, void *data
)
21 handle_tekshow (gw
, 0);
25 do_vtonoff (void *gw
, void *closure
, void *data
)
30 handle_toggle (void (*proc
) (void *gw
, void *closure
, void *data
),
31 int var
, char **params
, unsigned int nparams
, void *w
,
32 void *closure
, void *data
)
34 XtermWidget xw
= term
;
44 (*proc
) (w
, closure
, data
);
50 HandleVisibility (void *w
, char **params
, unsigned int *param_count
)
52 XtermWidget xw
= term
;
53 if (*param_count
== 2)
57 handle_toggle (do_vtonoff
, (int) ((int) (&(xw
)->screen
)->Vshow
),
58 params
+ 1, (*param_count
) - 1, w
, (void *) 0,
60 handle_toggle (do_tekonoff
, (int) ((int) ((xw
)->misc
.Tshow
)),
61 params
+ 1, (*param_count
) - 1, w
, (void *) 0,