Lines Matching refs:op
1922 static struct s_options *op; variable
1983 for(j=0; op[j].label; j++){ in handleflags()
1984 if( strncmp(&g_argv[i][1],op[j].label,lemonStrlen(op[j].label))==0 ) break; in handleflags()
1987 if( op[j].label==0 ){ in handleflags()
1993 }else if( op[j].arg==0 && op[j].fn==0 ){ in handleflags()
1995 }else if( op[j].type==OPT_FLAG ){ in handleflags()
1996 *((int*)op[j].arg) = v; in handleflags()
1997 }else if( op[j].type==OPT_FFLAG ){ in handleflags()
1998 op[j].fn(v); in handleflags()
1999 }else if( op[j].type==OPT_FSTR ){ in handleflags()
2000 op[j].fn(&g_argv[i][2]); in handleflags()
2025 for(j=0; op[j].label; j++){ in handleswitch()
2026 if( strcmp(g_argv[i],op[j].label)==0 ) break; in handleswitch()
2029 if( op[j].label==0 ){ in handleswitch()
2037 switch( op[j].type ){ in handleswitch()
2074 switch( op[j].type ){ in handleswitch()
2079 *(double*)(op[j].arg) = dv; in handleswitch()
2082 op[j].fn(dv); in handleswitch()
2085 *(int*)(op[j].arg) = lv; in handleswitch()
2088 op[j].fn((int)lv); in handleswitch()
2091 *(char**)(op[j].arg) = sv; in handleswitch()
2094 op[j].fn(sv); in handleswitch()
2105 op = o; in OptInit()
2107 if( g_argv && *g_argv && op ){ in OptInit()
2156 for(i=0; op[i].label; i++){ in OptPrint()
2157 len = lemonStrlen(op[i].label) + 1; in OptPrint()
2158 switch( op[i].type ){ in OptPrint()
2177 for(i=0; op[i].label; i++){ in OptPrint()
2178 switch( op[i].type ){ in OptPrint()
2181 fprintf(errstream," -%-*s %s\n",max,op[i].label,op[i].message); in OptPrint()
2185 fprintf(errstream," -%s<integer>%*s %s\n",op[i].label, in OptPrint()
2186 (int)(max-lemonStrlen(op[i].label)-9),"",op[i].message); in OptPrint()
2190 fprintf(errstream," -%s<real>%*s %s\n",op[i].label, in OptPrint()
2191 (int)(max-lemonStrlen(op[i].label)-6),"",op[i].message); in OptPrint()
2195 fprintf(errstream," -%s<string>%*s %s\n",op[i].label, in OptPrint()
2196 (int)(max-lemonStrlen(op[i].label)-8),"",op[i].message); in OptPrint()