if(sym->flags & SYMBOL_CHOICEVAL) 
if (sym->flags & SYMBOL_CHOICEVAL) 
static gchar **fill_row(struct menu *menu){	static gchar *row[COL_NUMBER];	struct symbol *sym = menu->sym;	const char *def;	int stype;	tristate val;	enum prop_type ptype;	int i;	for (i = COL_OPTION; i <= COL_COLOR; i++)		g_free(row[i]);	bzero(row, sizeof(row));	row[COL_OPTION] =	    g_strdup_printf("%s %s", menu_get_prompt(menu),			    sym ? (sym->				   flags & SYMBOL_NEW ? "(NEW)" : "") :			    "");	if (show_all && !menu_is_visible(menu))		row[COL_COLOR] = g_strdup("DarkGray");	else		row[COL_COLOR] = g_strdup("Black");	ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN;	switch (ptype) {	case P_MENU:		row[COL_PIXBUF] = (gchar *) xpm_menu;		if (view_mode == SINGLE_VIEW)			row[COL_PIXVIS] = GINT_TO_POINTER(TRUE);		row[COL_BTNVIS] = GINT_TO_POINTER(FALSE);		break;	case P_COMMENT:		row[COL_PIXBUF] = (gchar *) xpm_void;		row[COL_PIXVIS] = GINT_TO_POINTER(FALSE);		row[COL_BTNVIS] = GINT_TO_POINTER(FALSE);		break;	default:		row[COL_PIXBUF] = (gchar *) xpm_void;		row[COL_PIXVIS] = GINT_TO_POINTER(FALSE);		row[COL_BTNVIS] = GINT_TO_POINTER(TRUE);		break;	}	if (!sym)		return row;	row[COL_NAME] = g_strdup(sym->name);	sym_calc_value(sym);	sym->flags &= ~SYMBOL_CHANGED;	if (sym_is_choice(sym)) {	// parse childs for getting final value		struct menu *child;		struct symbol *def_sym = sym_get_choice_value(sym);		struct menu *def_menu = NULL;		row[COL_BTNVIS] = GINT_TO_POINTER(FALSE);		for (child = menu->list; child; child = child->next) {			if (menu_is_visible(child)			    && child->sym == def_sym)				def_menu = child;		}		if (def_menu)			row[COL_VALUE] =			    g_strdup(menu_get_prompt(def_menu));	}	if(sym->flags & SYMBOL_CHOICEVAL)		row[COL_BTNRAD] = GINT_TO_POINTER(TRUE);	stype = sym_get_type(sym);	switch (stype) {	case S_BOOLEAN:		if(GPOINTER_TO_INT(row[COL_PIXVIS]) == FALSE)			row[COL_BTNVIS] = GINT_TO_POINTER(TRUE);		if (sym_is_choice(sym))			break;	case S_TRISTATE:		val = sym_get_tristate_value(sym);		switch (val) {		case no:			row[COL_NO] = g_strdup("N");			row[COL_VALUE] = g_strdup("N");			row[COL_BTNACT] = GINT_TO_POINTER(FALSE);			row[COL_BTNINC] = GINT_TO_POINTER(FALSE);			break;		case mod:			row[COL_MOD] = g_strdup("M");			row[COL_VALUE] = g_strdup("M");			row[COL_BTNINC] = GINT_TO_POINTER(TRUE);			break;		case yes:			row[COL_YES] = g_strdup("Y");			row[COL_VALUE] = g_strdup("Y");			row[COL_BTNACT] = GINT_TO_POINTER(TRUE);			row[COL_BTNINC] = GINT_TO_POINTER(FALSE);			break;		}		if (val != no && sym_tristate_within_range(sym, no))			row[COL_NO] = g_strdup("_");		if (val != mod && sym_tristate_within_range(sym, mod))			row[COL_MOD] = g_strdup("_");		if (val != yes && sym_tristate_within_range(sym, yes))			row[COL_YES] = g_strdup("_");		break;	case S_INT:	case S_HEX:	case S_STRING:		def = sym_get_string_value(sym);		row[COL_VALUE] = g_strdup(def);		row[COL_EDIT] = GINT_TO_POINTER(TRUE);		row[COL_BTNVIS] = GINT_TO_POINTER(FALSE);		break;	}	return row;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/bafd2df5d0049bccc74947fece37963e3f68fadc/gconf.c/clean/scripts/kconfig/gconf.c