Ignore:
Timestamp:
Oct 24, 2008, 6:50:10 AM (17 years ago)
Author:
bird
Message:

kmk: Inlined much of handle_function/lookup_function so variable_expand_string_2 can avoid having to make the call for every variable it encounters. Also fixed the func_char_map generation.

File:
1 edited

Legend:

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

    r1880 r1927  
    549549            op = o;
    550550            begp = p;
    551             if (handle_function (&op, &begp, eos))
     551            end = may_be_function_name (p + 1, eos);
     552            if (    end
     553                &&  handle_function (&op, &begp, end, eos))
    552554              {
    553555                o = op;
     
    766768  memcpy (tmp, str, end - str);
    767769  tmp[end - str] = '\0';
     770  return allocated_variable_expand (tmp);
    768771#else  /* CONFIG_WITH_VALUE_LENGTH */
    769772  if (!end)
Note: See TracChangeset for help on using the changeset viewer.