#if defined(NEWTON_INTERPOLATION) || defined(GAUSS_INTERPOLATION) initialize_newton_coeffs(); #endif #ifdef GAUSS_INTERPOLATION ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "Initializing Gauss table..."); initialize_gauss_table(gauss_n); ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "Done"); #endif 
MAIN_INTERFACE void timidity_start_initialize(void){    int i;    static int drums[] = DEFAULT_DRUMCHANNELS;    static int is_first = 1;#if defined(__FreeBSD__) && !defined(__alpha__)    fp_except_t fpexp;#elif defined(__NetBSD__) || defined(__OpenBSD__)    fp_except fpexp;#endif#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)    fpexp = fpgetmask();    fpsetmask(fpexp & ~(FP_X_INV|FP_X_DZ));#endif    if(!output_text_code)	output_text_code = safe_strdup(OUTPUT_TEXT_CODE);    if(!opt_aq_max_buff)	opt_aq_max_buff = safe_strdup("5.0");    if(!opt_aq_fill_buff)	opt_aq_fill_buff = safe_strdup("100%");    /* Check the byte order */    i = 1;#ifdef LITTLE_ENDIAN    if(*(char *)&i != 1)#else    if(*(char *)&i == 1)#endif    {	fprintf(stderr, "Byte order is miss configured.\n");	exit(1);    }    CLEAR_CHANNELMASK(quietchannels);    CLEAR_CHANNELMASK(default_drumchannels);    for(i = 0; drums[i] > 0; i++)	SET_CHANNELMASK(default_drumchannels, drums[i] - 1);#if MAX_CHANNELS > 16    for(i = 16; i < MAX_CHANNELS; i++)	if(IS_SET_CHANNELMASK(default_drumchannels, i & 0xF))	    SET_CHANNELMASK(default_drumchannels, i);#endif    if(program_name == NULL)	program_name = "TiMidity";    uudecode_unquote_html = 1;    for(i = 0; i < MAX_CHANNELS; i++)    {	default_program[i] = DEFAULT_PROGRAM;	memset(channel[i].drums, 0, sizeof(channel[i].drums));    }    arc_error_handler = timidity_arc_error_handler;    if(play_mode == NULL)    {	char *output_id;	int i;	play_mode = play_mode_list[0];	output_id = getenv("TIMIDITY_OUTPUT_ID");#ifdef TIMIDITY_OUTPUT_ID	if(output_id == NULL)	    output_id = TIMIDITY_OUTPUT_ID;#endif /* TIMIDITY_OUTPUT_ID */	if(output_id != NULL)	{	    for(i = 0; play_mode_list[i]; i++)		if(play_mode_list[i]->id_character == *output_id)		{		    play_mode = play_mode_list[i];		    break;		}	}    }    if(is_first) /* initialize once time */    {	got_a_configuration = 0;#ifdef SUPPORT_SOCKET	init_mail_addr();	if(url_user_agent == NULL)	{	    url_user_agent =		(char *)safe_malloc(10 + strlen(timidity_version));	    strcpy(url_user_agent, "TiMidity-");	    strcat(url_user_agent, timidity_version);	}#endif /* SUPPORT_SOCKET */	for(i = 0; url_module_list[i]; i++)	    url_add_module(url_module_list[i]);	init_string_table(&opt_config_string);	init_freq_table();	init_freq_table_pytha();	init_freq_table_meantone();	init_freq_table_pureint();	init_bend_fine();	init_bend_coarse();	init_tables();	init_attack_vol_table();	init_sb_vol_table();	init_convex_vol_table();	init_def_vol_table();	init_gs_vol_table();#if defined(NEWTON_INTERPOLATION) || defined(GAUSS_INTERPOLATION)    initialize_newton_coeffs();#endif#ifdef GAUSS_INTERPOLATION    ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "Initializing Gauss table...");    initialize_gauss_table(gauss_n);    ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "Done");#endif	init_perceived_vol_table();#ifdef SUPPORT_SOCKET	url_news_connection_cache(URL_NEWS_CONN_CACHE);#endif /* SUPPORT_SOCKET */	for(i = 0; i < NSPECIAL_PATCH; i++)	    special_patch[i] = NULL;	init_midi_trace();	int_rand(-1);	/* initialize random seed */	int_rand(42);	/* the 1st number generated is not very random */	ML_RegisterAllLoaders ();    }    is_first = 0;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/982c069ceae585dd86c633cbadac26bf8e4dffb6/timidity.c/buggy/timidity/timidity.c