Lines Matching refs:cond
291 struct condition * cond; in generate_if() local
313 for ( cond = ocond; cond != NULL; cond = cond->next ) in generate_if()
315 switch ( cond->op ) in generate_if()
321 if ( ! vartable[cond->nameindex].global_written ) in generate_if()
323 vartable[cond->nameindex].global_written = 1; in generate_if()
324 global( vartable[cond->nameindex].name ); in generate_if()
343 for ( cond = ocond; cond != NULL; cond = cond->next ) in generate_if()
345 switch ( cond->op ) in generate_if()
360 printf( "$%s", vartable[cond->nameindex].name ); in generate_if()
364 if ( strcmp( cond->str, "y" ) == 0 ) printf( "1" ); in generate_if()
365 else if ( strcmp( cond->str, "n" ) == 0 ) printf( "0" ); in generate_if()
366 else if ( strcmp( cond->str, "m" ) == 0 ) printf( "2" ); in generate_if()
367 else if ( strcmp( cond->str, "" ) == 0 ) printf( "4" ); in generate_if()
369 printf( "\"%s\"", cond->str ); in generate_if()
653 struct condition * cond; in generate_writeconfig() local
684 for ( cond = cfg->cond; cond != NULL; cond = cond->next ) in generate_writeconfig()
686 switch( cond->op ) in generate_writeconfig()
692 if ( ! vartable[cond->nameindex].global_written ) in generate_writeconfig()
694 vartable[cond->nameindex].global_written = 1; in generate_writeconfig()
695 global( vartable[cond->nameindex].name ); in generate_writeconfig()
709 if ( cfg->cond != NULL ) in generate_writeconfig()
712 for ( cond = cfg->cond; cond != NULL; cond = cond->next ) in generate_writeconfig()
714 switch ( cond->op ) in generate_writeconfig()
727 printf( "$%s", vartable[cond->nameindex].name ); in generate_writeconfig()
731 if ( strcmp( cond->str, "n" ) == 0 ) printf( "0" ); in generate_writeconfig()
732 else if ( strcmp( cond->str, "y" ) == 0 ) printf( "1" ); in generate_writeconfig()
733 else if ( strcmp( cond->str, "m" ) == 0 ) printf( "2" ); in generate_writeconfig()
734 else if ( strcmp( cond->str, "" ) == 0 ) printf( "4" ); in generate_writeconfig()
736 printf( "\"%s\"", cond->str ); in generate_writeconfig()
750 if ( cfg->cond != NULL ) in generate_writeconfig()
759 if ( cfg->cond != NULL ) in generate_writeconfig()
782 if ( cfg->cond != NULL ) in generate_writeconfig()
794 if ( cfg->cond != NULL ) in generate_writeconfig()
801 if ( cfg->cond == NULL ) in generate_writeconfig()
822 if ( cfg->cond != NULL ) in generate_writeconfig()
830 if ( cfg->cond != NULL ) in generate_writeconfig()
838 if ( cfg->cond != NULL ) in generate_writeconfig()
846 if ( cfg->cond != NULL ) in generate_writeconfig()
854 if ( cfg->cond != NULL ) in generate_writeconfig()
862 if ( cfg->cond != NULL ) in generate_writeconfig()
870 if ( cfg->cond != NULL ) in generate_writeconfig()
947 if ( cfg->cond != NULL ) in generate_update_var()
948 generate_if( cfg, cfg->cond, menu_num, -2 ); in generate_update_var()
1071 if ( cfg->cond != NULL ) in end_proc()
1080 generate_if( cfg, cfg->cond, cfg->menu_number, cfg->menu_line ); in end_proc()
1105 && cfg->cond != NULL ) in end_proc()
1107 generate_if( cfg, cfg->cond, menu_num, cfg->menu_line ); in end_proc()
1361 if ( menu_first[imenu]->cond != NULL && menu_first[imenu]->menu_number == 0 ) in dump_tk_script()
1362 generate_if( menu_first[imenu], menu_first[imenu]->cond, imenu, -1 ); in dump_tk_script()