Changeset 3463

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

even cooler output, and I bet nobody will understand the output,
the utf-8, nor the code ☺

Files:

Legend:

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

    r3462 r3463  
    318318                } 
    319319        } 
    320         if (entry->value) 
    321                 printf(", value 『%s』\n", entry->value); 
    322         else 
     320        if (entry->value) { 
     321                const uint8_t *cp = entry->value; 
     322 
     323                fputs(", value\n\t『", stdout); 
     324                while (*cp) { 
     325                        while (*cp && *cp != '\n') 
     326                                fputc(*cp++, stdout); 
     327                        fputs(*cp ? (cp++, "\n\t  ") : "』\n", stdout); 
     328                } 
     329        } else 
    323330                fputs(", no value\n", stdout); 
    324331} 
  • branches/common-nfo/tools/nfotiser/pfile.c

    r3461 r3463  
    141141        nument = 0; 
    142142        CIRCLEQ_FOREACH(entry, parsed, e) { 
    143                 printf("entry #%03zu: ", nument++); 
     143                printf("ent #%03zu: ", nument++); 
    144144                parser_dump(entry, kwords); 
    145145        }