src/gedlib/lloptions.c
/*=================================
 * load_global_options -- 
 *  Load internal table of global options from caller-specified config file
 * STRING * pmsg: heap-alloc'd error string if fails
 * returns 1 for ok, 0 for not found, -1 for error
 *===============================*/
load_global_options
Load internal table of global options from caller-specified config file
STRING * pmsg: heap-alloc'd error string if fails
returns 1 for ok, 0 for not found, -1 for error
load_global_options Load internal table of global options from caller - specified config file STRING * pmsg : heap - alloc ' d error string if fails returns 1 for ok 0 for not found - 1 for error
INT
load_global_options (STRING configfile, STRING * pmsg)
{
	STRING chain = NULL;
	INT rtn = 0;
	INT cnt = 0;
	*pmsg = NULL;
	if (!f_global) 
		f_global= create_table_str();
	do {
	    if (chain) strfree(&chain);
	    rtn = load_config_file(configfile, pmsg, &chain);
	    if (rtn == -1) {
		if (chain) strfree(&chain);
		return rtn;
	    }
	    if (++cnt > 100) {
	        return -1;  
	    }
	} while (chain);
	return rtn;
}
INT load_global_options ( STRING configfile , STRING * pmsg ) { STRING chain = NULL ; INT rtn = 0 ; INT cnt = 0 ; * pmsg = NULL ; if ( ! f_global ) f_global = create_table_str ( ) ; do { if ( chain ) strfree ( & chain ) ; rtn = load_config_file ( configfile , pmsg , & chain ) ; if ( rtn == -1 ) { if ( chain ) strfree ( & chain ) ; return rtn ; } if ( ++ cnt > 100 ) { return -1 ; } } while ( chain ) ; return rtn ; }
load_global_options 
  Load internal table of global options from caller-specified config file
 STRING * pmsg: heap-alloc'd error string if fails
 returns 1 for ok, 0 for not found, -1 for error
load_global_options Load internal table of global options from caller - specified config file STRING * pmsg : heap - alloc ' d error string if fails returns 1 for ok 0 for not found - 1 for error
/* prevent infinite recursion */