Lines Matching defs:argn
988 int argn;
1029 com = sh_argbuild(shp,&argn,&(t->com),OPTIMIZE);
1070 argn -= command;
1072 if(argn && shp->inpool)
1133 comn = com[argn-1];
1138 if(argn==0 || (np && nv_isattr(np,(BLT_DCL|BLT_SPC))))
1141 if(argn)
1179 else if(argn>=3 && checkopt(com,'T'))
1219 if((io||argn))
1226 if(argn==0)
1254 argn = 1;
1369 if(argn)
1390 if(argn)
1391 shp->exitval = (*shp->bltinfun)(argn,com,(void*)bp);
1557 sh_funct(shp,np,argn,com,t->com.comset,(flags&~OPTIMIZE_FLAG));
2266 args=sh_argbuild(shp,&argn,tp,0);
2267 nargs = argn;
2957 int sh_run(int argn, char *argv[])
2969 dp = (struct dolnod*)stakalloc((unsigned)sizeof(struct dolnod) + ARG_SPARE*sizeof(char*) + argn*sizeof(char*));
2970 dp->dolnum = argn;
2972 memcpy(dp->dolval+ARG_SPARE, argv, (argn+1)*sizeof(char*));
2976 argn=sh_exec((Shnode_t*)t,sh_isstate(SH_ERREXIT));
2983 return(argn);
3319 int sh_funscope(int argn, char *argv[],int(*fun)(void*),void *arg,int execflg)
3471 static void sh_funct(Shell_t *shp,Namval_t *np,int argn, char *argv[],struct argnod *envlist,int execflg)
3501 b_dot_cmd(argn+1,argv-1,&shp->bltindata);
3510 sh_funscope(argn,argv,0,&fun,execflg);