亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tkgen.c

?? fsmlabs的real time linux的內核
?? C
?? 第 1 頁 / 共 3 頁
字號:
    /*     * Now that the whole window is in place, we need to wait for an "update"     * so we can tell the canvas what its virtual size should be.     *     * Unfortunately, this causes some ugly screen-flashing because the whole     * window is drawn, and then it is immediately resized.  It seems     * unavoidable, though, since "frame" objects won't tell us their size     * until after an update, and "canvas" objects can't automatically pack     * around frames.  Sigh.     */    printf( "\tupdate idletasks\n" );    printf( "\t$w.config.canvas create window 0 0 -anchor nw -window $w.config.f\n\n" );    printf( "\t$w.config.canvas configure \\\n" );    printf( "\t\t-width [expr [winfo reqwidth $w.config.f] + 1]\\\n" );    printf( "\t\t-scrollregion \"-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \\\n" );    printf( "\t\t\t [expr [winfo reqheight $w.config.f] + 1]\"\n\n" );	     /*     * If the whole canvas will fit in 3/4 of the screen height, do it;     * otherwise, resize to around 1/2 the screen and let us scroll.     */    printf( "\tset winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]\n" );    printf( "\tset scry [expr [winfo screenh $w] / 2]\n" );    printf( "\tset maxy [expr [winfo screenh $w] * 3 / 4]\n" );    printf( "\tset canvtotal [expr [winfo reqh $w.config.f] + 2]\n" );    printf( "\tif [expr $winy + $canvtotal < $maxy] {\n" );    printf( "\t\t$w.config.canvas configure -height $canvtotal\n" );    printf( "\t} else {\n" );    printf( "\t\t$w.config.canvas configure -height [expr $scry - $winy]\n" );    printf( "\t}\n" );    /*     * Limit the min/max window size.  Height can vary, but not width,     * because of the limitations of canvas and our laziness.     */    printf( "\tupdate idletasks\n" );    printf( "\twm maxsize $w [winfo width $w] [winfo screenheight $w]\n" );    printf( "\twm minsize $w [winfo width $w] 100\n\n" );    printf( "\twm deiconify $w\n" );    printf( "}\n\n\n" );    /*     * Now we generate the companion procedure for the menu we just     * generated.  This procedure contains all of the code to     * disable/enable widgets based upon the settings of the other     * widgets, and will be called first when the window is mapped,     * and each time one of the buttons in the window are clicked.     */    printf( "proc update_menu%d {} {\n", menu_num );    /*     * Clear all of the booleans that are defined in this menu.     */    clear_globalflags();    for ( cfg = scfg; cfg != NULL; cfg = cfg->next )    {	if ( cfg->menu_number == menu_num	&&   cfg->token != token_mainmenu_option	&&   cfg->token != token_choice_item )	{	    if ( cfg->cond != NULL )	    {		int i;		if ( (cfg->token == token_tristate || cfg->token == token_dep_tristate)		&& ! vartable[i = get_varnum( "CONFIG_MODULES" )].global_written )		{		    global( "CONFIG_MODULES" );		    vartable[i].global_written = 1;		}		generate_if( cfg, cfg->cond, cfg->menu_number, cfg->menu_line );	    }	    else	    {		if ( cfg->token == token_tristate )		{		    if ( ! vartable[cfg->nameindex].global_written )		    {			vartable[cfg->nameindex].global_written = 1;			printf( "\tglobal %s\n", vartable[cfg->nameindex].name );		    }		    if ( ! vartable[i = get_varnum( "CONFIG_MODULES" )].global_written )		    {			global( "CONFIG_MODULES" );			vartable[i].global_written = 1;		    }		    printf( "\n\tif {($CONFIG_MODULES == 1)} then {configure_entry .menu%d.config.f.x%d normal {m}} else {configure_entry .menu%d.config.f.x%d disabled {m}}\n",			menu_num, cfg->menu_line,			menu_num, cfg->menu_line );		}	    }	}	else if ( cfg->token == token_mainmenu_option	     &&   cfg->menu_number == menu_num	     &&   cfg->cond != NULL )	{	    generate_if( cfg, cfg->cond, menu_num, cfg->menu_line );	}    }    printf("}\n\n\n");    generate_update_var( scfg, menu_num );}/* * This is the top level function for generating the tk script. */void dump_tk_script( struct kconfig * scfg ){    int menu_depth;    int menu_num [64];    int imenu, i;    int top_level_num = 0;    struct kconfig * cfg;    struct kconfig * cfg1 = NULL;    const char * name = "No Name";    /*     * Mark begin and end of each menu so I can omit submenus when walking     * over a parent menu.     */    tot_menu_num = 0;    menu_depth   = 0;    menu_num [0] = 0;    for ( cfg = scfg; cfg != NULL; cfg = cfg->next )    {	switch ( cfg->token )	{	default:	    break;	case token_mainmenu_name:	    name = cfg->label;	    break;	case token_mainmenu_option:	    if ( ++menu_depth >= 64 )		{ fprintf( stderr, "menus too deep\n" ); exit( 1 ); }	    if ( ++tot_menu_num >= 100 )		{ fprintf( stderr, "too many menus\n" ); exit( 1 ); }	    menu_num   [menu_depth]   = tot_menu_num;	    menu_first [tot_menu_num] = cfg;	    menu_last  [tot_menu_num] = cfg;	    /*	     * Note, that menu_number is set to the number of parent 	     * (upper level) menu.	     */	    cfg->menu_number = menu_num[menu_depth - 1];	    if ( menu_depth == 1 )		++top_level_num;	    break;	case token_endmenu:	    menu_last [menu_num [menu_depth]] = cfg;	    /* flatten menus with proper scoping */	    if ( --menu_depth < 0 )		{ fprintf( stderr, "unmatched endmenu\n" ); exit( 1 ); }	    break;	case token_bool:	case token_choice_header:	case token_choice_item:	case token_dep_bool:	case token_dep_tristate:	case token_dep_mbool:	case token_hex:	case token_int:	case token_string:	case token_tristate:	    cfg->menu_number = menu_num[menu_depth];	    if ( menu_depth == 0 )		{ fprintf( stderr, "statement not in menu\n" ); exit( 1 ); }	    break;	case token_define_bool:	case token_define_hex:	case token_define_int:	case token_define_string:	case token_define_tristate:	case token_unset:	    cfg->menu_number = menu_num[menu_depth];	    break;	}    }    /*     * Generate menus per column setting.     * There are:     *   four extra buttons for save/quit/load/store;     *   one blank button     *   add two to round up for division     */    printf( "set menus_per_column %d\n", (top_level_num + 4 + 1 + 2) / 3 );    printf( "set total_menus %d\n\n", tot_menu_num );    printf( "proc toplevel_menu {num} {\n" );    for ( imenu = 1; imenu <= tot_menu_num; ++imenu )    {	int parent = 1;	if ( menu_first[imenu]->menu_number == 0 )	    parent = menu_first[imenu]->menu_number;	else	    printf( "\tif {$num == %d} then {return %d}\n",		imenu, menu_first[imenu]->menu_number );    }    printf( "\treturn $num\n}\n\n" );    /*     * Generate the menus.     */    printf( "mainmenu_name \"%s\"\n", name );    for ( imenu = 1; imenu <= tot_menu_num; ++imenu )    {	int menu_line = 0;	int nr_submenu = imenu;	clear_globalflags();	start_proc( menu_first[imenu]->label, imenu, 		!menu_first[imenu]->menu_number );	for ( cfg = menu_first[imenu]->next; cfg != NULL && cfg != menu_last[imenu]; cfg = cfg->next )	{	    switch ( cfg->token )	    {	    default:		break;	    case token_mainmenu_option:		while ( menu_first[++nr_submenu]->menu_number > imenu )		    ;		cfg->menu_line = menu_line++;		printf( "\tsubmenu $w.config.f %d %d \"%s\" %d\n",		    cfg->menu_number, cfg->menu_line, cfg->label, nr_submenu );		cfg = menu_last[nr_submenu];		break;	    case token_bool:		cfg->menu_line = menu_line++;		printf( "\tbool $w.config.f %d %d \"%s\" %s\n",		    cfg->menu_number, cfg->menu_line, cfg->label,		    vartable[cfg->nameindex].name );		break;	    case token_choice_header:		/*		 * I need the first token_choice_item to pick out the right		 * help text from doc/Configure.help.		 */		cfg->menu_line = menu_line++;		printf( "\tglobal tmpvar_%d\n", -(cfg->nameindex) );		printf( "\tminimenu $w.config.f %d %d \"%s\" tmpvar_%d %s\n",		    cfg->menu_number, cfg->menu_line, cfg->label,		    -(cfg->nameindex), vartable[cfg->next->nameindex].name );		printf( "\tmenu $w.config.f.x%d.x.menu\n", cfg->menu_line );		cfg1 = cfg;		break;	    case token_choice_item:		/* note: no menu line; uses choice header menu line */		printf( "\t$w.config.f.x%d.x.menu add radiobutton -label \"%s\" -variable tmpvar_%d -value \"%s\" -command \"update_active\"\n",		    cfg1->menu_line, cfg->label, -(cfg1->nameindex),		    cfg->label );		break;	    case token_dep_bool:	    case token_dep_mbool:		cfg->menu_line = menu_line++;		printf( "\tdep_bool $w.config.f %d %d \"%s\" %s\n",		    cfg->menu_number, cfg->menu_line, cfg->label,		    vartable[cfg->nameindex].name );		break;	    case token_dep_tristate:		cfg->menu_line = menu_line++;		printf( "\tdep_tristate $w.config.f %d %d \"%s\" %s\n",		    cfg->menu_number, cfg->menu_line, cfg->label,		    vartable[cfg->nameindex].name );		break;	    case token_hex:		cfg->menu_line = menu_line++;		printf( "\thex $w.config.f %d %d \"%s\" %s\n",		    cfg->menu_number, cfg->menu_line, cfg->label,		    vartable[cfg->nameindex].name );		break;	    case token_int:		cfg->menu_line = menu_line++;		printf( "\tint $w.config.f %d %d \"%s\" %s\n",		    cfg->menu_number, cfg->menu_line, cfg->label,		    vartable[cfg->nameindex].name );		break;	    case token_string:		cfg->menu_line = menu_line++;		printf( "\tistring $w.config.f %d %d \"%s\" %s\n",		    cfg->menu_number, cfg->menu_line, cfg->label,		    vartable[cfg->nameindex].name );		break;	    case token_tristate:		cfg->menu_line = menu_line++;		printf( "\ttristate $w.config.f %d %d \"%s\" %s\n",		    cfg->menu_number, cfg->menu_line, cfg->label,		    vartable[cfg->nameindex].name );		break;	    }	}	end_proc( scfg, imenu );    }    /*     * The top level menu also needs an update function.  When we update a     * submenu, we may need to disable one or more of the submenus on     * the top level menu, and this procedure will ensure that things are     * correct.     */    clear_globalflags();    printf( "proc update_mainmenu {}  {\n" );    for ( imenu = 1; imenu <= tot_menu_num; imenu++ )    {	if ( menu_first[imenu]->cond != NULL && menu_first[imenu]->menu_number == 0 )	    generate_if( menu_first[imenu], menu_first[imenu]->cond, imenu, -1 );    }    printf( "}\n\n\n" );    clear_globalflags();    /*     * Generate code to load the default settings into the variables.     * The script in tail.tk will attempt to load .config,     * which may override these settings, but that's OK.     */    for ( cfg = scfg; cfg != NULL; cfg = cfg->next )    {	switch ( cfg->token )	{	default:	    break;	case token_bool:	case token_choice_item:	case token_dep_bool:	case token_dep_tristate:	case token_dep_mbool:	case token_tristate:	    if ( ! vartable[cfg->nameindex].global_written )	    {		printf( "set %s 0\n", vartable[cfg->nameindex].name );		vartable[cfg->nameindex].global_written = 1;	    }	    break;	case token_choice_header:	    printf( "set tmpvar_%d \"(not set)\"\n", -(cfg->nameindex) );	    break;	case token_hex:	case token_int:	    if ( ! vartable[cfg->nameindex].global_written )	    {		printf( "set %s %s\n", vartable[cfg->nameindex].name, cfg->value ? cfg->value : "0" );		vartable[cfg->nameindex].global_written = 1;	    }	    break;	case token_string:	    if ( ! vartable[cfg->nameindex].global_written )	    {		printf( "set %s \"%s\"\n", vartable[cfg->nameindex].name, cfg->value );		vartable[cfg->nameindex].global_written = 1;	    }	    break;	}    }    /*     * Define to an empty value all other variables (which are never defined)     */    for ( i = 1; i <= max_varnum; i++ )    {	if ( ! vartable[i].global_written	&&   strncmp( vartable[i].name, "CONSTANT_", 9 ) )	    printf( "set %s 4\n", vartable[i].name );    }    /*     * Generate a function to write all of the variables to a file.     */    printf( "proc writeconfig {file1 file2} {\n" );    printf( "\tset cfg [open $file1 w]\n" );    printf( "\tset autocfg [open $file2 w]\n" );    printf( "\tset notmod 1\n" );    printf( "\tset notset 0\n" );    printf( "\tputs $cfg \"#\"\n");    printf( "\tputs $cfg \"# Automatically generated make config: don't edit\"\n");    printf( "\tputs $cfg \"#\"\n" );    printf( "\tputs $autocfg \"/*\"\n" );    printf( "\tputs $autocfg \" * Automatically generated C config: don't edit\"\n" );    printf( "\tputs $autocfg \" */\"\n" );    printf( "\tputs $autocfg \"#define RTL_AUTOCONF_INCLUDED\"\n" );    clear_globalflags();    for ( cfg = scfg; cfg != NULL; cfg = cfg->next )    {	switch ( cfg->token )	{	default:	    break;	case token_bool:	case token_choice_header:	case token_comment:	case token_define_bool:	case token_define_hex:	case token_define_int:	case token_define_string:	case token_define_tristate:	case token_dep_bool:	case token_dep_tristate:	case token_dep_mbool:	case token_hex:	case token_int:	case token_string:	case token_tristate:	    generate_writeconfig( cfg );	    break;	}    }    printf( "\tclose $cfg\n" );    printf( "\tclose $autocfg\n" );    printf( "}\n\n\n" );    /*     * Generate a simple function that updates the master choice     * variable depending upon what values were loaded from a .config     * file.       */    printf( "proc clear_choices { } {\n" );    for ( cfg = scfg; cfg != NULL; cfg = cfg->next )    {	if ( cfg->token == token_choice_header )	{	    for ( cfg1  = cfg->next; 		  cfg1 != NULL && cfg1->token == token_choice_item;		  cfg1  = cfg1->next )	    {		printf( "\tglobal %s; set %s 0\n",		    vartable[cfg1->nameindex].name,		    vartable[cfg1->nameindex].name );	    }	}    }    printf( "}\n\n\n" );    printf( "proc update_choices { } {\n" );    for ( cfg = scfg; cfg != NULL; cfg = cfg->next )    {	if ( cfg->token == token_choice_header )	{	    printf( "\tglobal tmpvar_%d\n", -(cfg->nameindex) );	    printf("\tset tmpvar_%d \"%s\"\n", -(cfg->nameindex), cfg->value);	    for ( cfg1  = cfg->next; 		  cfg1 != NULL && cfg1->token == token_choice_item;		  cfg1  = cfg1->next )	    {		printf( "\tglobal %s\n", vartable[cfg1->nameindex].name );		printf( "\tif { $%s == 1 } then { set tmpvar_%d \"%s\" }\n",		    vartable[cfg1->nameindex].name,		    -(cfg->nameindex), cfg1->label );	    }	}    }    printf( "}\n\n\n" );    generate_update_var( scfg, 0 );    /*     * That's it.  We are done.  The output of this file will have header.tk     * prepended and tail.tk appended to create an executable wish script.     */}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品小蝌蚪| 国产日产精品1区| 国内精品嫩模私拍在线| 中文字幕巨乱亚洲| 欧美一区二区不卡视频| 成人国产一区二区三区精品| 亚洲成av人片在www色猫咪| 久久精品亚洲一区二区三区浴池| 色婷婷综合激情| 国产成人亚洲综合a∨婷婷| 午夜欧美视频在线观看| 欧美国产激情二区三区 | 五月婷婷色综合| 国产精品欧美久久久久无广告| 在线播放/欧美激情| av不卡在线观看| 国内精品国产三级国产a久久| 亚洲欧美综合在线精品| 久久久久97国产精华液好用吗| 欧美日韩视频在线第一区| 成人免费视频播放| 国产一区二三区好的| 日韩成人一级片| 一区二区三区在线视频播放| 欧美国产成人精品| 国产三级精品视频| 欧美变态tickling挠脚心| 欧美色大人视频| 在线日韩国产精品| 色吧成人激情小说| 本田岬高潮一区二区三区| 国产精品亚洲成人| 麻豆91小视频| 美女视频第一区二区三区免费观看网站| 亚洲欧美区自拍先锋| 国产欧美日韩三级| 日韩欧美亚洲另类制服综合在线| 欧美精品日韩综合在线| 色婷婷综合久久久久中文一区二区 | 白白色亚洲国产精品| 国产一区二区三区在线观看免费| 五月婷婷综合激情| 日韩中文字幕1| 日日夜夜精品免费视频| 亚洲图片欧美综合| 午夜av一区二区三区| 亚洲国产另类av| 香蕉加勒比综合久久| 亚洲成人免费电影| 日韩二区三区四区| 免费视频一区二区| 久久爱www久久做| 99久久婷婷国产综合精品| 懂色av噜噜一区二区三区av| 一区二区三区四区不卡在线 | 中文字幕精品三区| 欧美一区二区三区在线电影| 在线视频一区二区三| 成人av电影在线播放| 成人性生交大片免费看中文| 国产成人在线视频免费播放| 成人永久免费视频| 成人av电影在线网| 在线观看中文字幕不卡| 欧美影院精品一区| 欧美一区二区三级| xf在线a精品一区二区视频网站| 久久免费视频色| 亚洲欧美在线视频| 亚洲第一电影网| 蜜桃久久av一区| 国产91在线观看丝袜| 99久久久精品免费观看国产蜜| 91久久精品午夜一区二区| 欧美群妇大交群的观看方式| 日韩精品中午字幕| 国产精品美女久久久久久| 亚洲精品视频在线| 麻豆91在线观看| 99精品在线观看视频| 欧美男人的天堂一二区| 精品区一区二区| 亚洲天堂免费看| 日韩综合一区二区| 成人黄色在线网站| 风间由美中文字幕在线看视频国产欧美| 男人的天堂久久精品| 国产麻豆精品视频| 成人av电影在线| 欧美久久高跟鞋激| 亚洲国产精品国自产拍av| 一区二区三区.www| 国产美女娇喘av呻吟久久| 91色porny蝌蚪| 日韩欧美国产不卡| 亚洲人一二三区| 激情六月婷婷久久| 欧洲亚洲精品在线| 中文字幕乱码日本亚洲一区二区| 亚洲成人av中文| 成人av资源站| 欧美tickle裸体挠脚心vk| 亚洲精品中文在线观看| 国产精品自拍网站| 欧美一卡二卡在线| 日韩理论片一区二区| 九色综合狠狠综合久久| 在线观看av一区| 中文字幕亚洲精品在线观看| 久久精品国产网站| 夜夜精品浪潮av一区二区三区| 亚洲一级二级在线| 成人性生交大片| 日韩午夜电影在线观看| 亚洲一区二区三区免费视频| 国产一区日韩二区欧美三区| 欧美日韩一区 二区 三区 久久精品| 欧美激情一区在线| 精品在线一区二区| 日韩亚洲欧美综合| 午夜影院在线观看欧美| 91美女蜜桃在线| 国产日韩欧美精品综合| 国产中文字幕一区| 日韩免费在线观看| 日韩精品一卡二卡三卡四卡无卡| 成人理论电影网| 久久色.com| 国产一区二区三区高清播放| 777色狠狠一区二区三区| 亚洲高清视频中文字幕| 色哟哟国产精品| 综合av第一页| 91免费观看国产| 综合欧美亚洲日本| 日本电影亚洲天堂一区| 亚洲女子a中天字幕| 97se亚洲国产综合在线| 国产精品―色哟哟| aa级大片欧美| 国产精品成人午夜| 91老师片黄在线观看| 亚洲欧美视频在线观看| 色先锋资源久久综合| 亚洲欧美日韩小说| 在线免费av一区| 性久久久久久久久| 欧美一级黄色录像| 国内精品视频666| 国产精品沙发午睡系列990531| aaa亚洲精品| 怡红院av一区二区三区| 欧美色中文字幕| 日本视频中文字幕一区二区三区| 欧美一区二区三区四区高清| 美女一区二区视频| 久久九九久精品国产免费直播| 国产剧情一区二区| 日韩一区有码在线| 91高清视频在线| 成人一区二区三区视频| 国产欧美一区二区精品久导航| 国产一区二区福利视频| 国产免费久久精品| 91亚洲精品久久久蜜桃网站 | 亚洲综合精品久久| 欧美电影一区二区| 久久99在线观看| 亚洲国产成人午夜在线一区| 91网站最新地址| 国内一区二区视频| 日韩理论片一区二区| 在线播放中文一区| 国产成人丝袜美腿| 一区二区三区在线免费视频| 7878成人国产在线观看| 成人一道本在线| 午夜亚洲国产au精品一区二区| 日韩视频在线一区二区| 成人手机电影网| 日韩av中文在线观看| 久久久99精品免费观看| 91国产丝袜在线播放| 免费在线观看一区| 亚洲欧美影音先锋| 天天综合天天综合色| 日韩视频在线观看一区二区| 国产91精品入口| 午夜精品一区二区三区电影天堂| 亚洲国产婷婷综合在线精品| 欧美一区二区视频在线观看2020| 国产大陆亚洲精品国产| 亚洲第一久久影院| 国产婷婷色一区二区三区| 欧美亚洲高清一区| 国产麻豆精品theporn| 亚洲高清在线视频| 亚洲同性同志一二三专区| 精品国产乱码久久| 欧美日韩午夜在线|