flag++; } return err;
return err;
int set_extension_modes(char *flag){    int err;    err = 0;    while(*flag)    {	switch(*flag)	{	  case 'w':	    opt_modulation_wheel = 1;	    break;	  case 'W':	    opt_modulation_wheel = 0;	    break;	  case 'p':	    opt_portamento = 1;	    break;	  case 'P':	    opt_portamento = 0;	    break;	  case 'v':	    opt_nrpn_vibrato = 1;	    break;	  case 'V':	    opt_nrpn_vibrato = 0;	    break;	  case 'R':	    ctl->cmsg(CMSG_ERROR, VERB_NORMAL,		      "-ER option is obsoleted.  Please use -EFreverb=0");	    err++;	    break;	  case 'r':	    ctl->cmsg(CMSG_ERROR, VERB_NORMAL,		      "-Er option is obsoleted.  Please use -EFreverb=2");	    err++;	    break;	  case 'C':	    ctl->cmsg(CMSG_ERROR, VERB_NORMAL,		      "-EC option is obsoleted.  Please use -EFchorus=0");	    err++;	    break;	  case 'c':	    ctl->cmsg(CMSG_ERROR, VERB_NORMAL,		      "-Ec option is obsoleted.  "		      "Please use -EFchorus (toggle on/off)");	    err++;	    break;	  case 's':	    opt_channel_pressure = 1;	    break;	  case 'S':	    opt_channel_pressure = 0;	    break;	  case 'l':	    opt_lpf_def = 1;	    break;	  case 'L':	    opt_lpf_def = 0;	  case 'e':	    opt_modulation_envelope = 1;	    break;	  case 'E':	    opt_modulation_envelope = 0;	    break;	  case 't':	    opt_trace_text_meta_event = 1;	    break;	  case 'T':	    opt_trace_text_meta_event = 0;	    break;	  case 'o':	    opt_overlap_voice_allow = 1;	    break;	  case 'O':	    opt_overlap_voice_allow = 0;	    break;	  case 'm':	    {		int val;		val = str2mID(flag + 1);		if(val == 0)		{		    ctl->cmsg(CMSG_ERROR, VERB_NORMAL,			      "-Em: Illegal value");		    err++;		}		else		    opt_default_mid = val;		flag += 2;	    }	    break;	  case 'M':	    {		int val;		val = str2mID(flag + 1);		if(val == 0)		{		    ctl->cmsg(CMSG_ERROR, VERB_NORMAL,			      "-EM: Illegal value");		    err++;		}		else		    opt_system_mid = val;		flag += 2;	    }	    break;	  case 'b':	    if(flag[1] < '0' || flag[1] > '9')		default_tonebank = 0;	    else	    {		flag++;		default_tonebank = 0;		while('0' <= *flag && *flag <= '9')		    default_tonebank = default_tonebank * 10 + *flag++ - '0';		default_tonebank &= 0x7f;		flag--; /* to be inc. */	    }	    break;	  case 'B':	    if(flag[1] < '0' || flag[1] > '9')		special_tonebank = -1;	    else	    {		flag++;		special_tonebank = 0;		while('0' <= *flag && *flag <= '9')		    special_tonebank = special_tonebank * 10 + *flag++ - '0';		special_tonebank &= 0x7f;		flag--; /* to be inc. */	    }	    break;	  case 'F':	    if(parse_effect_option(flag + 1))	    {		ctl->cmsg(CMSG_ERROR,			  VERB_NORMAL, "-E%s: unsupported effect", flag);		return 1+err;	    }	    return err;	  default:	    ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "-E: Illegal mode `%c'", *flag);	    err++;	    break;	}	flag++;    }    return err;}