Changeset 383 for trunk/nomc/c/util.c


Ignore:
Timestamp:
Jul 2, 2008, 11:39:12 PM (17 years ago)
Author:
cinc
Message:

New typespec parser. Started to rewrite method parsers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nomc/c/util.c

    r380 r383  
    246246  if(!matchNext(token))
    247247  {
    248     getNextToken(); /* Make sure error references the correct token */ \    
     248    getNextToken(); /* Make sure error references the correct token */    
    249249    g_scanner_unexp_token(gScanner,
    250250                          token,
     
    256256}
    257257
     258void exitIfNotMatchNextKind(guint uiKind, gchar* msg)
     259{
     260  if(!matchNextKind(uiKind))
     261  {
     262    getNextToken(); /* Make sure error references the correct token */
     263    g_scanner_unexp_token(gScanner,
     264                          G_TOKEN_IDENTIFIER,
     265                          NULL, NULL, NULL,
     266                          msg,
     267                          TRUE); /* is_error */
     268    cleanupAndExit(1);
     269  }
     270}
Note: See TracChangeset for help on using the changeset viewer.