Lines Matching defs:variable

138 //config:	bool "$LINENO variable (bashism)"
207 //config: bool "Pseudorandom generator and $RANDOM variable"
211 //config: Enable pseudorandom generator and dynamic variable "$RANDOM".
504 /* The "variable" with name "\1" emits string "\3". Testcase: "echo ^C" */
507 struct variable;
516 struct variable *old_vars;
705 /* argv vector may contain variable references (^Cvar^C, ^C0^C etc)
804 struct variable {
805 struct variable *next;
1021 struct variable *top_var;
1023 struct variable **shadowed_vars_pp;
1101 * (too many defines). Also, I actually prefer to see when a variable
1264 BLTIN("read" , builtin_read , "Input into variable"),
2205 struct variable *cur_var;
2210 struct variable *tmp = cur_var;
2352 * Shell and environment variable support
2354 static struct variable **get_ptr_to_local_var(const char *name)
2356 struct variable **pp;
2357 struct variable *cur;
2370 struct variable **vpp;
2451 struct variable **cur_pp;
2452 struct variable *cur;
2476 bb_error_msg("%s: readonly variable", str);
2499 /* New variable is local ("local VAR=VAL" or
2503 * Remove it from global variable list:
2535 /* Replace the value in the found "struct variable" */
2557 /* Not found or shadowed - create new variable struct */
2626 struct variable *cur;
2627 struct variable **cur_pp;
2633 bb_error_msg("%s: readonly variable", name);
2649 /* Handle "unset LINENO" et al even if did not find the variable to unset */
2661 static void add_vars(struct variable *var)
2663 struct variable *next;
2673 debug_printf_env("%s: restoring variable '%s'/%u\n", __func__, var->varstr, var->var_nest_level);
2679 /* We put strings[i] into variable table and possibly putenv them.
2680 * If variable is read only, we can free the strings[i]
2693 struct variable *var_p;
2694 struct variable **var_pp;
2705 bb_error_msg("%s: readonly variable", *s);
2719 * "shadow" (remove) this variable from
3359 * HUSH_BRACE_EXPANSION code needs corresponding quoting on variable expansion side.
4242 * cases where variable or value happens to match a keyword):
4628 syntax_error("bad for loop variable");
4631 /* Force FOR to have just one word (variable name) */
5349 /* Convert raw ^C to corresponding special variable reference */
5440 /* End of variable name reached */
5476 * or even ${?+subst} - operator acting on a special variable,
5477 * or the beginning of variable name.
5536 * In several places in U-Boot, we use variable like
5539 * variable name and then expand this variable.
5540 * NOTE Having # in variable name is not permitted in
5793 /* Convert "^C" to corresponding special variable reference */
5912 /* Convert \^C to corresponding special variable reference */
5950 /* Convert raw ^C to corresponding special variable reference */
6276 /* Convert raw ^C to corresponding special variable reference */
6495 * all variable references within and returns a pointer to
6535 * we encounter IFS char(s). This is used for expanding variable values.
7067 && strchr(NUMERIC_SPECVARS_STR, arg[0]) /* 1st char is special variable */
7095 /* Look up the variable in question */
7150 * Environment variable set with setenv* have to be
7152 * So, we first search if the variable exists in
7265 /* Unset variable always gives nothing */
7453 /* Expand all variable references in given string, adding words to list[]
7492 /* Is this variable quoted and thus expansion can't be null?
7553 /* "Empty variable", used to make "" etc to not disappear */
7561 /* "^C variable", represents literal ^C char (possible in scripts) */
7691 * $((...)), heredocs, variable expansion parts.
7871 struct variable *cur;
8776 struct variable *cur;
8777 struct variable **cur_pp;
8807 * struct variable::var_nest_level is uint16_t,
9180 struct variable **sv_shadowed;
9939 struct variable **sv_shadowed;
9941 struct variable *old_vars;
10522 /* if no variable values after "in" we skip "for" */
10529 /* create list of variable values */
10991 struct variable *cur_var;
10992 struct variable *shell_ver;
11806 //TODO: print "read: need variable name"
11909 struct variable *var, **vpp;
11949 /* Exporting non-existing variable.
11965 bb_error_msg("'%s': bad variable name", name);
12011 if (!p) /* wtf? take next variable */
12039 /* Since all builtins run in a nested variable level,
12040 * need to use level - 1 here. Or else the variable will be removed at once
12055 struct variable *e;
12061 if (!p) /* wtf? take next variable */
12143 struct variable *e;
12148 if (!p) /* wtf? take next variable */
12246 Test that VAR is a valid variable name?
12401 args_need_save = argv[1]; /* used as a boolean variable */