Changeset 5207

Show
Ignore:
Timestamp:
01/30/08 15:46:14 (8 months ago)
Author:
morris
Message:

Fix parser bugs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Tuna/trunk/TNParser.m

    r5206 r5207  
    449449                } 
    450450                else if(state == TNObjCParserStateBacktrace) { 
    451                         unichar         ch; 
    452  
    453                         ch = [_string characterAtIndex:lineRange.location + 1]; 
     451                        unichar         firstChar, secondChar; 
     452 
     453                        firstChar = [_string characterAtIndex:lineRange.location]; 
     454                        secondChar = [_string characterAtIndex:lineRange.location + 1]; 
    454455                         
    455                         if(ch == ':' || ch == '\\') { 
     456                        if(firstChar == '/' || secondChar == ':' || secondChar == '\\') { 
    456457                                CFRange         searchRange; 
    457458                                NSUInteger      searchLength; 
    458                                  
     459 
    459460                                library = symbol = NULL; 
    460461                                searchRange = CFRangeMake(lineRange.location + 2, lineRange.length); 
     
    508509                                } 
    509510                        } 
    510                         else if(ch == '*' || ch == 'h') { 
     511                        else if(secondChar == '*' || (firstChar == 'T' && secondChar == 'h')) { 
    511512                                count = [backtrace count]; 
    512513                                 
     
    533534                                backtraces++; 
    534535                                 
    535                                 if(ch == '*') 
     536                                if(secondChar == '*') 
    536537                                        state = TNObjCParserStateSnapshot; 
    537538                                else 
    538539                                        state = TNObjCParserStateBacktrace; 
    539                         } 
    540                         else if(ch == 'i') { 
    541540                        } 
    542541                } 
  • Tuna/trunk/Tuna.xcodeproj/project.pbxproj

    r5206 r5207  
    282282                        isa = PBXGroup; 
    283283                        children = ( 
     284                                A57F86300833EA9700DEFE69 /* TNDocument.m */, 
     285                                A57F862F0833EA9700DEFE69 /* TNDocument.h */, 
    284286                                A5941E0D0832B4E30006A7D7 /* TNNode.m */, 
    285287                                A5941E0C0832B4E30006A7D7 /* TNNode.h */, 
    286                                 A57F86300833EA9700DEFE69 /* TNDocument.m */, 
    287                                 A57F862F0833EA9700DEFE69 /* TNDocument.h */, 
    288288                                A57F87DE0833FE4C00DEFE69 /* TNParser.m */, 
    289289                                A57F87DD0833FE4C00DEFE69 /* TNParser.h */,