Searched refs:argp (Results 1 - 13 of 13) sorted by relevance

/ast/src/cmd/ksh93/sh/
H A Dargs.c701 register struct argnod *argp; local
725 argp = ac->comarg;
726 while(argp)
728 n = arg_expand(shp,argp,&arghead,flag);
736 argp = argp->argnxt.ap;
738 argp = arghead;
752 if(!argp)
758 while(argp)
760 struct argnod *nextarg = argp
781 sh_argprocsub(Shell_t *shp,struct argnod *argp) argument
833 arg_expand(Shell_t *shp,register struct argnod *argp, struct argnod **argchain,int flag) argument
[all...]
H A Dparse.c102 register struct argnod *argp = arglist; local
115 switch(*argp->argval)
130 while(argp = argp->argnxt.ap)
132 if((n= *(cp=argp->argval))!='-' && n!='+')
150 while(argp)
152 if((cp=strchr(argp->argval,'='))||(cp=strchr(argp->argval,'?')))
153 n = cp-argp->argval;
155 n = strlen(argp
668 register struct argnod *argp; local
1287 register struct argnod *argp = label_list; local
1378 struct argnod *argp; local
1396 register struct argnod *argp; local
[all...]
H A Dmacro.c200 * Perform all the expansions on the argument <argp>
202 int sh_macexpand(Shell_t* shp, register struct argnod *argp, struct argnod **arghead,int flag) argument
204 register int flags = argp->argflag;
205 register char *str = argp->argval;
217 shp->argaddr = (char**)&argp->argchn.ap;
228 str = argp->argval;
249 argp->argchn.cp = stkfreeze(stkp,1);
251 argp->argflag |= ARG_MAKE;
258 argp->argchn.ap = *arghead;
1089 register char *v,*argp local
2453 register struct argnod *argp; local
[all...]
H A Dxec.c1020 register struct argnod *argp; local
1033 argp = t->com.comarg;
1034 if(argp && *com && !(argp->argflag&ARG_RAW))
1136 if(shp->envlist = argp = t->com.comset)
1210 nv_setlist(argp,flgs,tp);
1213 shp->envlist = argp;
1214 argp = NULL;
1258 argp = 0;
1361 if(argp)
[all...]
/ast/src/lib/libast/sfio/
H A Dsftable.c61 int argp, argn, maxp, need[FP_INDEX]; local
92 argp = -1;
96 sp = sffmtint(form,&argp);
101 else argp = -1;
311 if((argp = FP_SET(argp,argn)) > maxp)
312 maxp = argp;
317 if(fp && fp[argp].ft.fmt == 0)
318 { fp[argp].ft.form = (char*)form;
319 fp[argp]
[all...]
H A Dsfvscanf.c322 int argp, argn; local
436 argp = -1;
546 argp = v-1;
670 argp = FP_SET(argp,argn);
672 { if(!(fp[argp].ft.flags&SFFMT_SKIP) )
674 value = fp[argp].argv.vp;
675 size = fp[argp].ft.size;
676 if(ft && ft->extf && fp[argp].ft.fmt != fp[argp]
[all...]
H A Dsfvprintf.c125 int argp, argn; /* arg position and number */ local
228 size = width = precis = base = n_s = argp = -1;
407 argp = v-1;
536 argp = FP_SET(argp,argn);
538 { if(ft && ft->extf && fp[argp].ft.fmt != fp[argp].fmt)
539 fmt = fp[argp].ft.fmt;
540 argv = fp[argp].argv;
541 size = fp[argp]
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dprint.c691 register char* argp = *pp->nextarg; local
694 if(fe->n_str>0 && (format=='T'||format=='Q') && varname(fe->t_str,fe->n_str) && (!argp || varname(argp,-1)))
696 if(argp)
697 pp->lastarg = argp;
699 argp = pp->lastarg;
700 if(argp)
702 sfprintf(pp->sh->strbuf,"%s.%.*s%c",argp,fe->n_str,fe->t_str,0);
703 argp = sfstruse(pp->sh->strbuf);
709 if(!argp || forma
[all...]
/ast/src/cmd/tw/
H A Dfind.c512 register Args_t* argp; local
520 for (argp = (Args_t*)commands; argp->name; argp++)
521 if (second == argp->name[1] && streq(word, argp->name))
522 return argp;
840 register const Args_t* argp; local
890 argp = commands - (i + 10);
891 state->primary |= argp
[all...]
/ast/src/cmd/nmake/
H A Dmisc.c451 * printf from args in argp into sp
452 * all!=0 if %s gets all of argp
457 strprintf(Sfio_t* sp, const char* format, char* argp, int all, int term) argument
470 fmt.arg = argp;
476 if (fmt.arg <= argp || !*(argp = fmt.arg))
/ast/src/cmd/mailx/
H A Dmailx.h142 #define initargs(ap) ((ap)->argp=(ap)->argv)
143 #define endargs(ap) (*(ap)->argp=0,(ap)->argp-(ap)->argv)
394 char** argp; member in struct:argvec
H A Dlist.c655 if (vp->argp >= &vp->argv[elementsof(vp->argv) - 1]) {
659 *vp->argp++ = (char*)s;
H A Dsend.c498 p = args.argp;
501 if (args.argp != p) {

Completed in 279 milliseconds