Lines Matching refs:value

165  * Copy a variable value into permanent (ie, not collected after each
216 * Set a variable value.
220 varset(register const char* name, register const char* value)
227 note(DEBUG, "set name=%s value=%s", name, value);
230 value = 0;
234 value = 0;
260 if (!value)
262 else if (isdigit(*value) || *value == '-' || *value == '+')
263 *((long*)vp->variable) = strtol(value, NiL, 0);
266 if (value && (*value || !(vp->flags & N))) {
267 if ((vp->flags & L) && *value && *vp->variable && **vp->variable) {
271 n = m + strlen(value) + 2;
276 strcpy(s + m + 1, value);
277 value = (const char*)s;
279 else if (value != (char*)vp->initialize)
280 value = varkeep(value);
283 value = vp->initialize;
285 value = 0;
288 *vp->variable = (char*)value;
291 (*vp->set)(vp, value);
296 * Get a variable value.
329 set_notyet(struct var* vp, const char* value)
331 if (value) {
342 set_askbcc(struct var* vp, const char* value)
344 if (value)
355 set_askcc(struct var* vp, const char* value)
357 if (value)
368 setheaders(struct var* vp, const char* value)
378 p = (char*)value;
402 set_askheaders(struct var* vp, const char* value)
404 state.askheaders = setheaders(vp, value);
412 set_asksub(struct var* vp, const char* value)
414 if (value)
425 set_coprocess(struct var* vp, const char* value)
427 if (value) {
428 if (!*value)
442 set_crt(struct var* vp, const char* value)
444 if (value && !*value)
453 set_editheaders(struct var* vp, const char* value)
455 state.editheaders = setheaders(vp, value);
463 set_justfrom(struct var* vp, const char* value)
465 if (value) {
477 set_list(struct var* vp, const char* value)
481 *vp->variable = s = varkeep(value);
491 set_mail(struct var* vp, const char* value)
493 state.var.mail = varkeep(mailbox(state.var.user, value));
501 set_mailcap(struct var* vp, const char* value)
503 state.part.init = (value && *value) ? 0 : -1;
511 set_news(struct var* vp, const char* value)
513 if (value && *value && close(open(state.var.news, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY|O_cloexec, MAILMODE)))
522 set_pwd(struct var* vp, const char* value)
524 if (value && !*value) {
537 set_sender(struct var* vp, const char* value)
547 if (value && *value) {
548 if (!(sp = newof(0, struct sender, 1, strlen(value))))
551 d = *value++;
552 while ((c = *value++) && c != d)
558 value--;
559 while (c = *value++) {
572 else if (!(c = *value++) || *value != d)
594 note(ERROR, "sender match operand syntax error: '%s' not expected", value - 1);
609 set_screen(struct var* vp, const char* value)
611 if (value && !*value)
620 set_sendmail(struct var* vp, const char* value)
622 if (value && !*value) {
633 set_shell(struct var* vp, const char* value)
635 if (!value || !*value)
644 set_spambody(struct var* vp, const char* value)
657 s = (char*)value;
689 set_toplines(struct var* vp, const char* value)
700 set_trace(struct var* vp, const char* value)
706 if (s = value)
716 set_user(struct var* vp, const char* value)
718 if (!value || !*value)
745 if (np->value) {
747 free(np->value);
749 ap = (struct list*)np->value;
812 xp->value = np ? np->value : 0;
829 * Non-zero return from walkf terminates walk with that value.