static void handle_toggle (proc, var, params, nparams, w, closure, data) void (*proc)PROTO_XT_CALLBACK_ARGS; int var; String *params; Cardinal nparams; Widget w; XtPointer closure, data;
static void handle_toggle ( void (*proc)PROTO_XT_CALLBACK_ARGS, int var, String *params, Cardinal nparams, Widget w, XtPointer closure, XtPointer data)
static void handle_toggle (proc, var, params, nparams, w, closure, data)    void (*proc)PROTO_XT_CALLBACK_ARGS;    int var;    String *params;    Cardinal nparams;    Widget w;    XtPointer closure, data;{    int dir = -2;    switch (nparams) {      case 0:	dir = -1;	break;      case 1:	if (XmuCompareISOLatin1 (params[0], "on") == 0) dir = 1;	else if (XmuCompareISOLatin1 (params[0], "off") == 0) dir = 0;	else if (XmuCompareISOLatin1 (params[0], "toggle") == 0) dir = -1;	break;    }    switch (dir) {      case -2:	Bell(XkbBI_MinorError, 0);	break;      case -1:	(*proc) (w, closure, data);	break;      case 0:	if (var) (*proc) (w, closure, data);	else Bell(XkbBI_MinorError, 0);	break;      case 1:	if (!var) (*proc) (w, closure, data);	else Bell(XkbBI_MinorError, 0);	break;    }    return;}