Lines Matching refs:name

18  * 3. Neither the name of the University nor the names of its contributors
195 setvarsafe(const char *name, const char *val, int flags)
208 setvar(name, val, flags);
220 setvar(const char *name, const char *val, int flags)
231 p = name;
243 namelen = p - name;
245 error("%.*s: bad variable name", namelen, name);
253 q = name;
267 * the first argument as name=value. Since the first argument will
346 lookupvar(const char *name)
350 v = find_var(name, NULL, NULL);
365 bltinlookup(const char *name, int doall)
371 if (strequal(sp->text, name))
375 v = find_var(name, NULL, NULL);
494 /* XXX Will anyone notice we include the '=' of the shorter name? */
507 showvars(const char *name, int flag, int show_value)
541 if (name)
542 out1fmt("%s ", name);
564 char *name;
575 while ((name = *argptr++) != NULL) {
576 if ((p = strchr(name, '=')) != NULL) {
579 vp = find_var(name, NULL, NULL);
585 setvar(name, p, flag);
598 char *name;
602 while ((name = *argptr++) != NULL) {
603 mklocal(name, 0);
612 * will be restored when the shell function returns. We handle the name
617 mklocal(const char *name, int flags)
625 if (name[0] == '-' && name[1] == '\0') {
631 vp = find_var(name, &vpp, NULL);
633 if (strchr(name, '='))
634 setvareq(savestr(name), VSTRFIXED|flags);
636 setvar(name, NULL, VSTRFIXED|flags);
644 if (name[vp->name_len] == '=')
645 setvareq(savestr(name), flags);
703 * with the same name.
773 * variable name is terminated by '='; the second may be terminated by
791 * 'name' may be terminated by '=' or a NUL.
793 * lenp is set to the number of charactets in 'name'
797 find_var(const char *name, struct var ***vppp, int *lenp)
802 const char *p = name;
807 len = p - name;
818 if (memcmp(vp->text, name, len) != 0)