Lines Matching refs:var
42 static struct var {
96 initialize_var(struct var *var, const char *envname)
98 PRE(var->value == NULL);
102 if (strlen(val) > 0 || var->can_be_empty)
103 var->value = val;
105 var->value = var->default_value;
107 var->value = var->default_value;
109 POST(var->value != NULL);
116 struct var *var;
120 for (var = vars; var->name != NULL; var++) {
123 envname = string_to_upper(var->name);
124 initialize_var(var, envname);
138 const struct var *var;
147 for (var = vars; value == NULL && var->name != NULL; var++)
148 if (strcmp(var->name, name) == 0)
149 value = var->value;
158 struct var *var;
162 for (var = vars; var->name != NULL; var++)
163 var->value = NULL;