Changeset 1946 in kBuild
- Timestamp:
- Oct 26, 2008 3:09:15 AM (16 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/read.c
r1931 r1946 2445 2445 { 2446 2446 struct variable *gv; 2447 #ifndef CONFIG_WITH_STRCACHE2 2447 2448 int len = strlen(v->name); 2449 #else 2450 int len = strcache2_get_len (&variable_strcache, v->name); 2451 #endif 2448 2452 2449 2453 gv = lookup_variable (v->name, len); 2450 2454 if (gv && (gv->origin == o_env_override || gv->origin == o_command)) 2451 2455 { 2456 #ifdef CONFIG_WITH_RDONLY_VARIABLE_VALUE 2457 assert (!v->rdonly_val); /* paranoia */ 2458 #endif 2452 2459 if (v->value != 0) 2453 2460 free (v->value); 2461 #ifndef CONFIG_WITH_VALUE_LENGTH 2454 2462 v->value = xstrdup (gv->value); 2463 #else 2464 v->value = savestring (gv->value, gv->value_length); 2465 v->value_length = gv->value_length; 2466 #endif 2455 2467 v->origin = gv->origin; 2456 2468 v->recursive = gv->recursive; -
trunk/src/kmk/variable.c
r1935 r1946 108 108 109 109 #ifdef CONFIG_WITH_STRCACHE2 110 st atic struct strcache2 variable_strcache;110 struct strcache2 variable_strcache; 111 111 #endif 112 112 … … 609 609 /* lookup the name in the string case, if it's not there it won't 610 610 be in any of the sets either. */ 611 cached_name = strcache2_lookup (&variable_strcache, name, length);611 cached_name = strcache2_lookup (&variable_strcache, name, length); 612 612 if (!cached_name) 613 613 return NULL; -
trunk/src/kmk/variable.h
r1932 r1946 427 427 428 428 extern int export_all_variables; 429 #ifdef CONFIG_WITH_STRCACHE2 430 extern struct strcache2 variable_strcache; 431 #endif 429 432 430 433 #ifdef KMK
Note:
See TracChangeset
for help on using the changeset viewer.