- Timestamp:
- Oct 26, 2008 9:29:56 PM (16 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/main.c
r1965 r1968 1617 1617 v->export = v_noexport; 1618 1618 #endif 1619 #ifndef CONFIG_WITH_STRCACHE2 1619 1620 shell_var.name = "SHELL"; 1621 #else 1622 shell_var.name = v->name; 1623 #endif 1624 shell_var.length = 5; /* bird - gotta set the length too! */ 1625 #ifndef CONFIG_WITH_VALUE_LENGTH 1620 1626 shell_var.value = xstrdup (ep + 1); 1627 #else 1628 shell_var.value = savestring (v->value, v->value_length); 1629 shell_var.value_length = v->value_length; 1630 #endif 1631 1621 1632 } 1622 1633 -
trunk/src/kmk/variable.c
r1949 r1968 1533 1533 new_slot = (struct variable **) hash_find_slot (&table, v); 1534 1534 #else /* CONFIG_WITH_STRCACHE2 */ 1535 assert (strcache2_is_cached (&variable_strcache, v->name)); 1535 1536 new_slot = (struct variable **) hash_find_slot_strcached (&table, v); 1536 1537 #endif /* CONFIG_WITH_STRCACHE2 */
Note:
See TracChangeset
for help on using the changeset viewer.