Lines Matching +defs:val +defs:values
28 "type \atypename\a that can only store any one of the values in the indexed "
32 "[i:ignorecase?The values are case insensitive.]"
51 "[+?The variable can have one of the following values\fvalues\f. "
52 "The the values are \fcase\fcase sensitive.]"
54 "[+?If no \aname\as are specified then the names and values of all "
94 const char *values[1];
107 sfprintf(out,"\b%s\b%c",ep->values[0],0);
109 sfprintf(out,"\b%s\b",ep->values[0]);
116 else while(v=ep->values[n++])
131 static void put_enum(Namval_t* np,const char *val,int flags,Namfun_t *fp)
136 if(!val)
141 nv_putv(np, val, flags,fp);
146 nv_putv(np,val,flags,fp);
149 while(v=ep->values[i])
152 n = strcasecmp(v,val);
154 n = strcmp(v,val);
163 error(ERROR_exit(1), "%s: invalid value %s",nv_name(np),val);
172 return((char*)ep->values[n]);
247 cp = (char*)&ep->values[n+1];
249 ep->values[n] = 0;
253 ep->values[i++] = cp;