Changeset 3472

Show
Ignore:
Timestamp:
08/09/07 18:38:17 (1 year ago)
Author:
tg
Message:

more debugging, and fix varexpand to be actually working

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/common-nfo/tools/nfotiser/pfile.c

    r3471 r3472  
    189189                dp = str_nsave(entry->value, cp - entry->value - 1); 
    190190                /* read variable name */ 
    191                 if (*++cp != '{' /*}*/) 
     191                if (*cp != '{' /*}*/) 
    192192                        goto copy_rest; 
    193193                tp = ++cp; 
     
    199199                /* variable name in cp, rest of string in tp */ 
    200200                evar = parse_lookupbyname(head, cp); 
     201                tp[-1] = /*{*/ '}'; 
    201202                cp = tp; 
    202203                /* variable content in evar, rest of string in cp */ 
     
    308309 
    309310        iname = varnameck(__func__, name); 
     311 
     312        D(2, "parse_lookupbyname: try '%s' (orig '%s')\n", iname, name); 
    310313 
    311314        CIRCLEQ_FOREACH(entry, head, e) { 
     
    331334                if (!strcmp(iname, ename)) 
    332335                        found = true; 
     336                D(2, "parse_lookupbyname: cmp '%s', %smatch\n", ename, 
     337                    found ? "" : "no "); 
    333338                free(ename); 
    334339                if (found)