/ast/src/lib/libcs/ |
H A D | csvar.c | 25 * run time cs var support 41 static Var_t var[] = variable 57 if (index < 0 || index >= elementsof(var)) 59 p = &var[index];
|
/ast/src/cmd/dsslib/html/ |
H A D | html.c | 31 html_ref_F(Cx_t* cx, Cxvariable_t* var, Cxoperand_t* ret, Cxoperand_t* arg, int n, void* data, Cxdisc_t* disc) argument
|
/ast/src/lib/libmam/ |
H A D | mam.h | 36 #define getvar(p,n) (struct var*)hashget((p)->vars,(n)) 71 struct var /* variable info */ struct 73 char* name; /* var name */ 74 char* value; /* var value */ 142 extern struct var* mamvar(struct proc*, const char*, const char*);
|
/ast/src/cmd/dsslib/text/ |
H A D | text.c | 452 register Cxvariable_t* var; local 505 var = 0; 559 if (!(var = newof(0, Cxvariable_t, 1, t - f + 1))) 565 var->index = index; 566 t = strcopy((char*)(var->name = (char*)(var + 1)), f); 568 var->description = strcpy(t + 1, d); 585 if (var) 596 var->type = (Cxtype_t*)"number"; 599 var [all...] |
/ast/src/cmd/ksh93/edit/ |
H A D | completion.c | 213 int addstar=0, rval=0, var=0, strip=1; local 262 var = mode; 263 begin = out = find_begin(outbuff,last,0,&var); 265 if(var=='$') 292 if(var!='$' && mode=='\\' && out[-1]!='*') 308 if(!var && !strchr(ap->argval,'/') && (((cp==outbuff&&ep->sh->nextprompt==1) || (strchr(";&|(",size)) && (cp==outbuff+1||size=='('||cp[-2]!='>') && *begin!='~' ))) 399 if(ep->e_nlist && dir && var) 401 if(*cp==var) 404 *begin++ = var; 406 var [all...] |
/ast/src/cmd/nmake/ |
H A D | variable.c | 144 int var; local 170 switch (var = *s) 176 error(1, "$(%s): obsolete -- use $(-...)", var); 244 for (pop = -1; *s == var; s++, pop++); 281 switch (var) 304 switch (c = var) 467 * functional var with args
|
H A D | convert.c | 690 * expand var name into xp 811 char* var; local 833 var = a; 855 vp = expandvar(vp, var); 856 var = a; 885 if (*var == '"') 889 xp += sfsprintf(xp, EXBUF, "%sdefault=%s ", state.longflag, var); 891 var = 0; 919 if (var && strneq(var, "\"\" [all...] |
H A D | state.c | 28 * (<var>) the state of <var> 29 * (<var>)<rule> the state of <var> qualified by <rule> 243 * return a pointer to the state rule of var qualified by r 249 staterule(int op, register Rule_t* r, char* var, int force) argument 265 rul = var; 266 var = "+"; 271 sfprintf(internal.nam, "(%s)%s", var, rul); 278 rul = var; [all...] |
H A D | expand.c | 173 * each <var> is expanded before the value is determined 179 * $(<var>[|<var>][:[<pfx>]<op>[<sep><val>]]) 183 * $(<var>[|<var>]`[<del>[<pfx>]<op>[<sep><val>]]<del>) 187 * $(<var>) value of <var> 1411 int var; local 1437 var = 0; 1447 var 4710 long var; local [all...] |
H A D | parse.c | 71 #define CON_local (6<<10) /* local var declaration */ 88 Hash_bucket_t* bucket; /* table.var hash bucket */ 113 Var_t* var; /* for loop variable */ member in struct:Control_s::__anon169::__anon171 297 p->bucket = hashlast(table.var); 441 register Var_t* v = pp->cp->loop.f.var; 1099 pp->cp->loop.f.var = setvar(s, null, 0); 2893 * <var> 2894 * <var> = <expression> 2895 * [ <var> = ] <quote> ... <quote> 2903 char* var; local [all...] |
H A D | make.h | 91 #define getvar(name) ((Var_t*)hashget(table.var,(name))) 103 #define putvar(name,v) hashput(table.var,(char*)(name),(char*)(v)) 170 #define VAR 0 /* state var from var in staterule() */ 211 #define C_VARPOS1 (1<<8) /* istype() var superimposed code 1 */ 212 #define C_VARPOS2 (1<<9) /* istype() var superimposed code 2 */ 213 #define C_VARPOS3 (1<<10) /* istype() var superimposed code 3 */ 214 #define C_VARPOS4 (1<<11) /* istype() var superimposed code 4 */ 215 #define C_VARPOS5 (1<<12) /* istype() var superimposed code 5 */ 216 #define C_VARPOS6 (1<<13) /* istype() var superimpose 718 Hash_table_t* var; /* variable names */ member in struct:Tables_s [all...] |
/ast/src/lib/libpp/ |
H A D | ppcontrol.c | 282 } var; local 524 var.best = 0; 532 var.best = map; 538 if (map = var.best) 871 var.type = 0; 903 if (var.type != TOK_TOKCAT && p > mac->value && *(p - 1) != ' ' && !(pp.option & PRESERVE)) *p++ = ' '; 909 *p++ = (n1 || var.type == TOK_TOKCAT) ? 'C' : 'A'; 911 if ((pp.state & WARN) && !(pp.mode & (HOSTED|RELAX)) && var.type != TOK_TOKCAT && !(var.type & TOK_ID)) 923 if ((var [all...] |
/ast/src/cmd/ksh93/bltins/ |
H A D | mkservice.c | 409 register char* var; local 433 if (error_info.errors || !(var = *argv++) || !(path = *argv++) || *argv) 453 np = nv_open(var,sh.var_tree,NV_ARRAY|NV_VARNAME|NV_NOASSIGN);
|
H A D | read.c | 345 char buf[256],*var=buf,*cur,*end,*up,*v; local 349 if(!(var = (char*)malloc(c+1))) 351 end = var + c; 354 end = var + sizeof(buf) - 1; 355 up = cur = var; 408 ssize_t cx = cur - var, ux = up - var; 409 m = (end - var) + (c - (end - cur)); 410 if (var == buf) 413 var [all...] |
/ast/src/lib/libdss/ |
H A D | dssopen.c | 557 Cxvariable_t* var; local 612 for (var = (Cxvariable_t*)dtfirst(dss->cx->variables); var; var = (Cxvariable_t*)dtnext(dss->cx->variables, var)) 613 if (var->format.map) 614 var->format.map->header.flags |= CX_REFERENCED; 620 if (!(var = vmnewof(vm, 0, Cxvariable_t, 1, 0))) 622 *var = dss_var[i]; 623 var [all...] |
H A D | cxopen.c | 881 cxsizeof(Cx_t* cx, Cxvariable_t* var, Cxtype_t* type, Cxvalue_t* value) argument 885 if (var->array) 886 size = var->array->size; 919 cx_edit_B(Cx_t* cx, Cxvariable_t* var, Cxoperand_t* ret, Cxoperand_t* arg, int n, void* data, Cxdisc_t* disc) argument 930 cx_sizeof_B(Cx_t* cx, Cxvariable_t* var, Cxoperand_t* ret, Cxoperand_t* arg, int n, void* data, Cxdisc_t* disc) argument 932 ret->value.number = cxsizeof(cx, var, arg->type, &arg->value); 937 cx_typeof_B(Cx_t* cx, Cxvariable_t* var, Cxoperand_t* ret, Cxoperand_t* arg, int n, void* data, Cxdisc_t* disc) argument 2135 * cast var value to type 2136 * if var==0 or data==0 then the value is already in ret 2140 cxcast(Cx_t* cx, Cxoperand_t* ret, Cxvariable_t* var, Cxtype_ argument [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | subshell.c | 71 Dt_t *var; /* variable table at time of subshell */ member in struct:subshell 255 if(sp->var!=shp->var_tree && sp->var!=shp->var_base && shp->last_root==shp->var_tree) 505 sp->var = shp->var_tree;
|
H A D | nvdisc.c | 1086 * if var!=0 the variable pointer is returned and the built-in name 1089 * and var contains the poiner to the variable 1093 Namval_t *nv_bfsearch(const char *name, Dt_t *root, Namval_t **var, char **last) argument 1100 if(var) 1101 *var = 0; 1125 return(var?nv_search(name,root,0):0); 1141 if(!var) 1146 *var = nq;
|
H A D | macro.c | 99 #define M_BRACE 1 /* ${var} */ 100 #define M_TREE 2 /* ${var.} */ 101 #define M_SIZE 3 /* ${#var} */ 102 #define M_VNAME 4 /* ${!var} */ 103 #define M_SUBNAME 5 /* ${!var[sub]} */ 104 #define M_NAMESCAN 6 /* ${!var*} */ 105 #define M_NAMECOUNT 7 /* ${#var*} */ 106 #define M_TYPE 8 /* ${@var} */ 1097 int var=1,addsub=0,oldpat=mp->pattern,idnum=0,flag=0,d; local 1141 var [all...] |
/ast/src/lib/libtksh/tcl/ |
H A D | tclExpr.c | 452 char *var, *term; 512 var = Tcl_ParseVar(interp, p, &infoPtr->expr); 513 if (var == NULL) { 522 return ExprParseString(interp, var, valuePtr); 450 char *var, *term; local
|
/ast/src/cmd/dsslib/xml/ |
H A D | xml.c | 129 * xml var create/lookup 137 Cxvariable_t* var; local 144 var = cxvariable(cx, name, NiL, disc); 145 else if (!(var = dtmatch(cx->variables, name))) 148 if (!(var = vmnewof(cx->vm, 0, Cxvariable_t, 1, sizeof(Value_t) + n))) 154 var->data = val = (Value_t*)(var + 1); 155 strcpy((char*)(var->name = (const char*)(var + 1) + sizeof(Value_t)), name); 156 var [all...] |
/ast/src/cmd/jcl/ |
H A D | jcm.c | 91 Jcmvar_t* var; member in struct:Jcmlib_s 283 Jcmvar_t var; local 286 if (n >= sizeof(var.name)) 287 n = sizeof(var.name); 288 strlcpy(var.name, s, n); 289 if (!(v = (Jcmvar_t*)dtprev(state.vars, &var))) 290 v = (Jcmvar_t*)dtsearch(state.vars, &var); 423 register Jcmvar_t* var; local 425 if (var = (Jcmvar_t*)dtmatch(state.vars, s)) 427 if (!v || !init && var 448 register Jcmvar_t* var; local 651 Jcmvar_t* var; local [all...] |
/ast/src/cmd/dsslib/flat/ |
H A D | flat.c | 3804 flattenget(register Flatten_t* flatten, Cxvariable_t* var, void* data) argument 3809 if (ref = var->reference) 3823 x.data.variable = var; 3835 flattennum2str(register Flatten_t* flatten, Cxvariable_t* var, void* data) argument 3839 if ((val = flattenget(flatten, var, data)) != &nullval) 3841 if (cxnum2str(flatten->cx, &var->format, (Cxinteger_t)val->number, &val->string.data)) 3853 flattenstr2num(register Flatten_t* flatten, Cxvariable_t* var, void* data) argument 3858 if ((val = flattenget(flatten, var, data)) != &nullval) 3860 if (cxstr2num(flatten->cx, &var->format, val->string.data, val->string.size, &u)) 3872 flattennull(Flatten_t* flatten, Cxvariable_t* var, voi argument [all...] |
/ast/src/cmd/mailx/ |
H A D | mailx.h | 282 #define C (1<<5) /* Is a conditional command, Cmd line var set */ 290 #define R (1<<13) /* Cannot call from collect, Readonly var */ 344 #define GMETOO (1<<14) /* Send to state.var.user too */ 353 #define GSENDER (1L<<23) /* Get state.var.sender address only */ 371 struct var { struct 376 void (*set)(struct var*, const char*); 614 const struct var* vartab; /* Variable table */ 661 struct linematch* bodymatch; /* compiled state.var.spambody */ 662 struct sender* sender; /* compiled state.var.sender */ 699 int inbox; /* Current folder mh state.var 877 } var; member in struct:__anon136 [all...] |