Lines Matching refs:name
109 return_STRING_N_HASH_1 (key->name, key->length); in variable_hash_1()
116 return_STRING_N_HASH_2 (key->name, key->length); in variable_hash_2()
127 return_STRING_N_COMPARE (x->name, y->name, x->length); in variable_hash_cmp()
162 define_variable_in_set (const char *name, unsigned int length, in define_variable_in_set() argument
174 var_key.name = (char *) name; in define_variable_in_set()
210 v->name = savestring (name, length); in define_variable_in_set()
228 if (*name != '_' && (*name < 'A' || *name > 'Z') in define_variable_in_set()
229 && (*name < 'a' || *name > 'z')) in define_variable_in_set()
233 for (++name; *name != '\0'; ++name) in define_variable_in_set()
234 if (*name != '_' && (*name < 'a' || *name > 'z') in define_variable_in_set()
235 && (*name < 'A' || *name > 'Z') && !ISDIGIT(*name)) in define_variable_in_set()
238 if (*name != '\0') in define_variable_in_set()
286 if (streq (var->name, ".VARIABLES") in handle_special_var()
317 bcopy (v->name, p, l); in handle_special_var()
340 lookup_variable (const char *name, unsigned int length) in lookup_variable() argument
345 var_key.name = (char *) name; in lookup_variable()
365 strncpy (vname, name, length); in lookup_variable()
424 lookup_variable_in_set (const char *name, unsigned int length, in lookup_variable_in_set() argument
429 var_key.name = (char *) name; in lookup_variable_in_set()
485 p = lookup_pattern_var (0, file->name); in initialize_file_variables()
505 p->variable.name, strlen (p->variable.name), in initialize_file_variables()
514 &p->variable.fileinfo, p->variable.name, in initialize_file_variables()
523 while ((p = lookup_pattern_var (p, file->name)) != 0); in initialize_file_variables()
564 free (v->name); in free_variable_name_and_value()
892 gv = lookup_variable_in_set (v->name, strlen(v->name), in target_environment()
921 if (streq (v->name, "SHELL")) in target_environment()
941 makelevel_key.name = MAKELEVEL_NAME; in target_environment()
962 if (strcmp(v->name, "Path") == 0 || in target_environment()
963 strcmp(v->name, "PATH") == 0) in target_environment()
966 *result++ = concat (v->name, "=", value); in target_environment()
972 if (strcmp(v->name, "Path") == 0 || in target_environment()
973 strcmp(v->name, "PATH") == 0) in target_environment()
976 *result++ = concat (v->name, "=", v->value); in target_environment()
1237 char *name; in parse_variable_definition() local
1310 name = (char *) alloca (end - beg + 1); in parse_variable_definition()
1311 bcopy (beg, name, end - beg); in parse_variable_definition()
1312 name[end - beg] = '\0'; in parse_variable_definition()
1313 v->name = allocated_variable_expand (name); in parse_variable_definition()
1315 if (v->name[0] == '\0') in parse_variable_definition()
1349 vp = do_variable_definition (flocp, v.name, v.value, in try_variable_definition()
1352 free (v.name); in try_variable_definition()
1403 printf ("define %s\n%s\nendef\n", v->name, v->value); in print_variable()
1408 printf ("%s %s= ", v->name, v->recursive ? v->append ? "+" : "" : ":"); in print_variable()