Lines Matching defs:type

190 #define isblocked(bp,type)	((bp)->flags & (1<<(type)))
191 #define block(bp,type) ((bp)->flags |= (1<<(type)))
192 #define unblock(bp,type) ((bp)->flags &= ~(1<<(type)))
253 int type = (flags&NV_APPEND)?APPEND:ASSIGN;
255 register Namval_t *nq = vp->disc[type];
275 if(val || isblocked(bp,type))
277 if(!nq || isblocked(bp,type))
293 nq = vp->disc[type=UNASSIGN];
294 if(nq && !isblocked(bp,type))
297 block(bp,type);
298 if (type==APPEND && (bflag= !isblocked(bp,LOOKUPS)))
301 unblock(bp,type);
304 if(!vp->disc[type])
335 else if(!nq || !isblocked(bp,type))
340 block(bp,type);
355 unblock(bp,type);
368 static char* lookup(Namval_t *np, int type, Sfdouble_t *dp,Namfun_t *handle)
372 register Namval_t *nq = vp->disc[type];
376 if(nq && !isblocked(bp,type))
384 if(type==LOOKUPN)
389 block(bp,type);
391 unblock(bp,type);
392 if(!vp->disc[type])
394 if(type==LOOKUPN)
416 if(type==LOOKUPS)
449 register int type;
471 for(type=0; name=nv_discnames[type]; type++)
479 if(name && !(name = nv_discnames[++type]))
526 action = vp->disc[type];
532 if(type==LOOKUPS)
534 else if(type==LOOKUPN)
536 vp->disc[type] = action;
541 action = vp->disc[type];
542 vp->disc[type] = 0;
559 register int type,getname=0;
570 for(type=0; name=discnames[type]; type++)
578 if(name && !(name = discnames[++type]))
587 action = vp->bltins[type];
591 if(tp && (np = (Namval_t*)vp->bltins[type]) && nv_isattr(np,NV_STATICF))
593 vp->bltins[type] = action;
597 action = vp->bltins[type];
598 vp->bltins[type] = 0;
1076 * otherwise, a pointer to the builtin (variable or type) is returned