Ignore:
Timestamp:
Mar 24, 2007, 7:17:11 PM (18 years ago)
Author:
cinc
Message:

More code...

Location:
trunk/idl-compiler/parser_c
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/idl-compiler/parser_c/interface_parser.c

    r261 r264  
    3737
    3838#include <glib.h>
     39#include <glib/gprintf.h>
    3940#include "parser.h"
    4041
     
    7172
    7273  do{
    73     //g_printf("%d: ", __LINE__);
    74     //printToken(curToken);
     74    g_printf("%d: ", __LINE__);
     75    printToken(curToken);
    7576    if(matchNext(IDL_SYMBOL_CLSVERSION))
    7677      parseClassVersion();
     
    8586    else
    8687      {
    87         //g_message("Line %d Error in'interface' deklaration %d", g_scanner_cur_line(gScanner),
    88         //        g_scanner_peek_next_token(gScanner));
    89         //g_printf("%d: ", __LINE__);
    90         //printToken(curToken);
    91         /* Unknown token, skip it. */
    9288        getNextToken();
    93         //exit(1);
     89        g_scanner_unexp_token(gScanner,
     90                              G_TOKEN_IDENTIFIER,
     91                              NULL,
     92                              NULL,
     93                              NULL,
     94                              "Trying to parse interface body.",
     95                              TRUE); /* is_error */
     96        exit(1);
    9497      }
    9598    }while(g_scanner_peek_next_token(gScanner)!='}');
  • trunk/idl-compiler/parser_c/method_parser.c

    r263 r264  
    3636
    3737#include <glib.h>
     38#include <glib/gprintf.h>
    3839#include "parser.h"
    3940
     
    150151  PMETHOD pMethod=createMethodStruct();
    151152  PINTERFACE pif;
    152   //g_printf("%d: ", __LINE__);
    153   //printToken(curToken);
     153  g_printf("%s %d: ", __FUNCTION__, __LINE__);
     154  printToken(curToken);
    154155
    155156  /* Do type spec */
  • trunk/idl-compiler/parser_c/override_parser.c

    r262 r264  
    7373  GTokenValue value;
    7474  POVERMETHOD pOMethod=g_malloc0(sizeof(OVERMETHOD));
     75  PINTERFACE pif;
    7576
    7677  if(!matchNext('('))
     
    103104
    104105  /* Now check if the method was introduced by some parent */
    105   if(!findInterfaceForMethod(pCurInterface, pOMethod->chrName))
     106  if((pif=findInterfaceForMethod(pCurInterface, pOMethod->chrName))==NULL)
    106107    {
     108
    107109      g_message("%s:%d: Method '%s' was not introduced by some parent interface.", gScanner->input_name,
    108110                g_scanner_cur_line(gScanner), pOMethod->chrName);
    109111      exit(1);
    110112    }
     113  pOMethod->chrIntroducingIFace=pif->chrName; /* No copy of string here. Nobody should free the
     114                                               interface info under our feet. */
    111115
    112116  if(!matchNext(')'))
Note: See TracChangeset for help on using the changeset viewer.