Lines Matching refs:name
29 * add symbol name=value to the current step
30 * value==0 => name==name=value, got it?
31 * no diagnostic if value==0 and name!=name=value
35 jclsym(Jcl_t* jcl, const char* name, const char* value, int flags)
44 if (!(set = name))
47 n = strlen(name);
48 else if (value = (const char*)strchr(name, '='))
49 n = value++ - name;
52 if (name[0] == '%' && name[1] == '%')
54 name = (const char*)sfprints("%s%-.*s", JCL_AUTO, n - 2, name + 2);
55 n = strlen(name);
65 memcpy(v->name, name, n);
79 else if (imported && (e = getenv(name)))
87 strcpy(v->name, e);
88 if (v->value = strchr(v->name, '='))
105 sfprintf(sfstdout, "export %s=%s\n", v->name, fmtquote(v->value, "\"", "\"", strlen(v->value), FMT_SHELL));
107 message((-2, "set %s=%s", v->name, v->value));