Changeset 260
- Timestamp:
- Mar 23, 2007, 11:20:47 PM (18 years ago)
- Location:
- trunk/idl-compiler
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/idl-compiler/Makefile
r259 r260 31 31 $(OBJDIR)/interface_parser.o \ 32 32 $(OBJDIR)/classversion_parser.o \ 33 $(OBJDIR)/override_parser.o \ 33 34 $(OBJDIR)/printdata.o 34 35 -
trunk/idl-compiler/c/nom-idl-compiler.c
r259 r260 86 86 87 87 88 89 /*90 Parse the class version. Note that the identifier is the current symbol..91 92 OM:= IDL_SYMBOL_OVERRIDE '(' IDENT ')' ';'93 */94 void parseOverrideMethod(void)95 {96 GTokenValue value;97 POVERMETHOD pOMethod=g_malloc0(sizeof(OVERMETHOD));98 99 if(!matchNext('('))100 {101 getNextToken(); /* Make sure error references the correct token */102 g_scanner_unexp_token(gScanner,103 '(',104 NULL,105 NULL,106 NULL,107 "Error in NOMOVERRIDE()",108 TRUE); /* is_error */109 exit(1);110 }111 112 if(!matchNext(G_TOKEN_IDENTIFIER))113 {114 getNextToken(); /* Make sure error references the correct token */115 g_scanner_unexp_token(gScanner,116 G_TOKEN_IDENTIFIER,117 NULL,118 NULL,119 NULL,120 "Error in NOMOVERRIDE()",121 TRUE); /* is_error */122 exit(1);123 }124 value=gScanner->value;125 pOMethod->chrName=g_strdup(value.v_identifier);126 127 if(!matchNext(')'))128 {129 getNextToken(); /* Make sure error references the correct token */130 g_scanner_unexp_token(gScanner,131 ')',132 NULL,133 NULL,134 NULL,135 "Error in NOMOVERRIDE()",136 TRUE); /* is_error */137 exit(1);138 }139 if(!matchNext(';'))140 {141 getNextToken(); /* Make sure error references the correct token */142 g_scanner_unexp_token(gScanner,143 ';',144 NULL,145 NULL,146 NULL,147 "Error in NOMOVERRIDE()",148 TRUE); /* is_error */149 exit(1);150 }151 g_ptr_array_add(pCurInterface->pOverrideArray, (gpointer) pOMethod);152 }153 154 88 gchar* getTypeSpecStringFromCurToken(void) 155 89 { … … 177 111 } 178 112 179 180 181 113 void parseIt() 114 { 115 116 } 182 117 183 118 -
trunk/idl-compiler/include/parser.h
r259 r260 16 16 * The Initial Developer of the Original Code is 17 17 * netlabs.org: Chris Wohlgemuth <cinc-ml@netlabs.org>. 18 * Portions created by the Initial Developer are Copyright (C) 200 5-200718 * Portions created by the Initial Developer are Copyright (C) 2007 19 19 * the Initial Developer. All Rights Reserved. 20 20 * … … 142 142 void parseInterface(GTokenType token); 143 143 void parseClassVersion(void); 144 145 144 void parseClassVersion(void); 146 145 void parseOverrideMethod(void);
Note:
See TracChangeset
for help on using the changeset viewer.