Ignore:
Timestamp:
05/04/08 07:52:39 (16 years ago)
Author:
Nicholas Riley
Message:

Remove logging prefix, force ICCF_DEBUG for TestParser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/TestParser.m

    r388 r476  
    102102CFBundleRef ICCF_bundle = NULL;
    103103
     104// from http://jens.ayton.se/code/files/JANSLogHack.m
     105extern void _NSSetLogCStringFunction(void (*)(const char *string, unsigned length, BOOL withSyslogBanner));
     106
     107static void PrintNSLogMessage(const char *string, unsigned length, BOOL withSyslogBanner) {
     108    puts(string);
     109}
     110
    104111int main(int argc, char *argv[]) {
    105112    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
     113   
     114    _NSSetLogCStringFunction(PrintNSLogMessage);
    106115   
    107116    NSArray *a = [NSArray arrayWithContentsOfFile: @"urls.plist"];
Note: See TracChangeset for help on using the changeset viewer.