Lines Matching refs:name
69 const char *name, size_t nlen) in varcontent() argument
73 if((strlen(list->name) == nlen) && in varcontent()
74 !strncmp(name, list->name, nlen)) { in varcontent()
83 #define FUNCMATCH(ptr,name,len) \ argument
84 (!strncmp(ptr, name, len) && ENDOFFUNC(ptr[len]))
234 char name[MAX_VAR_LEN]; in varexpand() local
256 if(!nlen || (nlen >= sizeof(name))) { in varexpand()
270 memcpy(name, envp, nlen); in varexpand()
271 name[nlen] = 0; in varexpand()
275 (ISALNUM(name[i]) || (name[i] == '_')); i++); in varexpand()
277 warnf(global, "bad variable name: %s", name); in varexpand()
288 const struct tool_var *v = varcontent(global, name, nlen); in varexpand()
348 const char *name, in addvariable() argument
355 const struct tool_var *check = varcontent(global, name, nlen); in addvariable()
358 notef(global, "Overwriting variable '%s'", check->name); in addvariable()
362 memcpy(p->name, name, nlen); in addvariable()
380 const char *name; in setvariable() local
395 name = line; in setvariable()
398 nlen = line - name; in setvariable()
408 memcpy(buf, name, nlen); in setvariable()
410 name = buf; in setvariable()
412 ge = getenv(name); in setvariable()
415 errorf(global, "Variable '%s' import fail, not set", name); in setvariable()
459 err = addvariable(global, name, nlen, content, clen, contalloc); in setvariable()