Ignore:
Timestamp:
Feb 1, 2015, 9:48:36 PM (10 years ago)
Author:
bird
Message:

Optimizations, tuning and bug fixes for the 'compiled' string expansion code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/append.c

    r2757 r2771  
    218218            if (!pVar)
    219219                continue;
    220             if (    pVar->recursive
    221                 &&  memchr(pVar->value, '$', pVar->value_length))
     220            if (   !pVar->recursive
     221                || IS_VARIABLE_RECURSIVE_WITHOUT_DOLLAR(pVar))
     222                fwrite(pVar->value, 1, pVar->value_length, pFile);
     223            else
    222224            {
    223225                char *pszExpanded = allocated_variable_expand(pVar->value);
     
    225227                free(pszExpanded);
    226228            }
    227             else
    228                 fwrite(pVar->value, 1, pVar->value_length, pFile);
    229229        }
    230230        else
Note: See TracChangeset for help on using the changeset viewer.