Changeset 264 for trunk/idl-compiler/parser_c
- Timestamp:
- Mar 24, 2007, 7:17:11 PM (18 years ago)
- 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 37 37 38 38 #include <glib.h> 39 #include <glib/gprintf.h> 39 40 #include "parser.h" 40 41 … … 71 72 72 73 do{ 73 //g_printf("%d: ", __LINE__);74 //printToken(curToken);74 g_printf("%d: ", __LINE__); 75 printToken(curToken); 75 76 if(matchNext(IDL_SYMBOL_CLSVERSION)) 76 77 parseClassVersion(); … … 85 86 else 86 87 { 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. */92 88 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); 94 97 } 95 98 }while(g_scanner_peek_next_token(gScanner)!='}'); -
trunk/idl-compiler/parser_c/method_parser.c
r263 r264 36 36 37 37 #include <glib.h> 38 #include <glib/gprintf.h> 38 39 #include "parser.h" 39 40 … … 150 151 PMETHOD pMethod=createMethodStruct(); 151 152 PINTERFACE pif; 152 //g_printf("%d: ", __LINE__);153 //printToken(curToken);153 g_printf("%s %d: ", __FUNCTION__, __LINE__); 154 printToken(curToken); 154 155 155 156 /* Do type spec */ -
trunk/idl-compiler/parser_c/override_parser.c
r262 r264 73 73 GTokenValue value; 74 74 POVERMETHOD pOMethod=g_malloc0(sizeof(OVERMETHOD)); 75 PINTERFACE pif; 75 76 76 77 if(!matchNext('(')) … … 103 104 104 105 /* Now check if the method was introduced by some parent */ 105 if( !findInterfaceForMethod(pCurInterface, pOMethod->chrName))106 if((pif=findInterfaceForMethod(pCurInterface, pOMethod->chrName))==NULL) 106 107 { 108 107 109 g_message("%s:%d: Method '%s' was not introduced by some parent interface.", gScanner->input_name, 108 110 g_scanner_cur_line(gScanner), pOMethod->chrName); 109 111 exit(1); 110 112 } 113 pOMethod->chrIntroducingIFace=pif->chrName; /* No copy of string here. Nobody should free the 114 interface info under our feet. */ 111 115 112 116 if(!matchNext(')'))
Note:
See TracChangeset
for help on using the changeset viewer.