Ignore:
Timestamp:
Oct 11, 2008, 9:24:07 PM (17 years ago)
Author:
bird
Message:

kmk: no need for the '\0' hack in expand_argument when using allocated_variable_expand_2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/expand.c

    r1835 r1837  
    761761  if (!end || *end == '\0')
    762762    return allocated_variable_expand (str);
    763 #else
    764   if (!end)
    765       return allocated_variable_expand_2 (str, ~0U, NULL);
    766   if (*end == '\0')
    767     return allocated_variable_expand_2 (str, end - str, NULL);
    768 #endif
    769 
    770763#ifdef CONFIG_WITH_OPTIMIZATION_HACKS
    771764  {
     
    791784# endif
    792785#endif
     786#else  /* CONFIG_WITH_VALUE_LENGTH */
     787  if (!end)
     788      return allocated_variable_expand_2 (str, ~0U, NULL);
     789  return allocated_variable_expand_2 (str, end - str, NULL);
     790#endif /* CONFIG_WITH_VALUE_LENGTH */
    793791}
    794792
Note: See TracChangeset for help on using the changeset viewer.