static const struct Name2ID { const char* const name; const int   id; } name2id[] = { { "dumb"        , 'd' }, { "ALSA"        , 'A' }, { "ncurses"     , 'n' }, { "slang"       , 's' }, { "Motif"       , 'm' }, { "tcktk"       , 'k' }, { "Tcl/Tk"      , 'k' }, /* synonym */ { "emacs"       , 'e' }, { "VT100"       , 'T' }, { "xaw"         , 'a' }, { "xskin"       , 'i' }, { "GTK"         , 'g' }, { "server"      , 'r' }, { "twsynth"     , 'W' }, { "twsyng"      , 'W' }, { "portminisyn" , 'P' }, { "w32gui"      , 'w' }, { "UMP"         , 'p' }, { NULL          , '\0' }, /* terminator */ }; int id; ControlMode*  cp; ControlMode** cpp = ctl_list; if(strlen(arg) == 1) { id = arg[0]; } else { int i; for(i=0;name2id[i].name;i++) { if(! strcasecmp(name2id[i].name,arg)) { id = name2id[i].id; break; } 
static const struct Name2ID { const char *name; const int id; } name2id[] = { { "dumb", 'd' }, { "ALSA", 'A' }, { "ncurses", 'n' }, { "slang", 's' }, { "Motif", 'm' }, { "tcktk", 'k' }, { "Tcl/Tk", 'k' }, /* synonym */ { "emacs", 'e' }, { "VT100", 'T' }, { "xaw", 'a' }, { "xskin", 'i' }, { "GTK", 'g' }, { "server", 'r' }, { "twsynth", 'W' }, { "twsyng", 'W' }, { "portminisyn", 'P' }, { "w32gui", 'w' }, { "UMP", 'p' }, { NULL, '\0' }, /* terminator */ }; int id; ControlMode *cp; ControlMode **cpp = ctl_list;  if (strlen(arg) == 1) id = arg[0]; else { int i;  for (i = 0; name2id[i].name; i++) if (! strcasecmp(name2id[i].name,arg)) { id = name2id[i].id; break; } 
static inline bool parse_opt_i(const char* const arg){    static const struct Name2ID {	const char* const name;	const int   id;    } name2id[] = {	{ "dumb"        , 'd' },	{ "ALSA"        , 'A' },	{ "ncurses"     , 'n' },	{ "slang"       , 's' },	{ "Motif"       , 'm' },	{ "tcktk"       , 'k' },	{ "Tcl/Tk"      , 'k' }, /* synonym */	{ "emacs"       , 'e' },	{ "VT100"       , 'T' },	{ "xaw"         , 'a' },	{ "xskin"       , 'i' },	{ "GTK"         , 'g' },	{ "server"      , 'r' },	{ "twsynth"     , 'W' },	{ "twsyng"      , 'W' },	{ "portminisyn" , 'P' },	{ "w32gui"      , 'w' },	{ "UMP"         , 'p' },	{ NULL          , '\0' }, /* terminator */    };    int id;    ControlMode*  cp;    ControlMode** cpp = ctl_list;    if(strlen(arg) == 1) {	id = arg[0];    }    else {	int i;	for(i=0;name2id[i].name;i++) {	    if(! strcasecmp(name2id[i].name,arg)) {		id = name2id[i].id;		break;	    }	}    }    while(cp = *cpp++) {	if(cp->id_character == id) {	    ctl = cp;	    return true;	}#ifdef IA_DYNAMIC	else if((cp->id_character == dynamic_interface_id) &&		(dynamic_interface_module(id) !=NULL)) {	    ctl = cp;	    if(dynamic_interface_id != id)	    {		ctl->verbosity = 1;		ctl->trace_playing = 0;		ctl->flags = 0;		ctl->id_character = dynamic_interface_id = id;	    }	    return true;	}#endif    }    ctl->cmsg(CMSG_ERROR, VERB_NORMAL,	      "Interface `%s' not found.", arg);    return false;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/c992099a6189578c646e487a6f741b805160b425/timidity.c/buggy/timidity/timidity.c