Changeset 292 for trunk/idl-compiler
- Timestamp:
- Apr 1, 2007, 5:17:12 PM (18 years ago)
- Location:
- trunk/idl-compiler
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/idl-compiler/Makefile
r278 r292 14 14 HEMITTERDIR = ./h-emitter_c 15 15 IHEMITTERDIR = ./ih-emitter_c 16 CEMITTERDIR = ./c-emitter_c 16 17 17 18 CFLAGS = -Zmt -Zcrtdll -D__OS2__ -D__ST_MT_ERRNO__ -c -Wall … … 31 32 $(OBJDIR)/emitter.o \ 32 33 $(OBJDIR)/open_outfile.o \ 34 $(OBJDIR)/printdata.o \ 33 35 $(OBJDIR)/typespec_parser.o \ 34 36 $(OBJDIR)/method_parser.o \ … … 43 45 $(OBJDIR)/h_file_emitter.o \ 44 46 $(OBJDIR)/ih_file_emitter.o \ 45 $(OBJDIR)/ printdata.o47 $(OBJDIR)/c_file_emitter.o 46 48 47 49 … … 80 82 $(CC) -I $(INC) $(CFLAGS) -o$@ $< 81 83 84 $(OBJDIR)/%.o: $(CEMITTERDIR)/%.c $(INCDIR)/parser.h 85 $(CC) -I $(INC) $(CFLAGS) -o$@ $< 86 82 87 # Create the directories for temp files 83 88 $(OBJDIR)/o.dep: -
trunk/idl-compiler/c/nom-idl-compiler.c
r289 r292 612 612 if(fOptionEmitH) 613 613 emitHFile(parseInfo.pInterfaceArray); 614 if(fOptionEmitIH)614 else if(fOptionEmitIH) 615 615 emitIHFile(parseInfo.pInterfaceArray); 616 617 #if 0618 616 else if(fOptionEmitC) 619 a++; 620 621 if(pInterfaceArray->len) 622 printInterface(); 623 #endif 617 emitCFile(parseInfo.pInterfaceArray); 624 618 625 619 g_scanner_destroy(gScanner); -
trunk/idl-compiler/c/util.c
r278 r292 162 162 return findInterfaceFromName(pif->chrParent); 163 163 } 164 165 gboolean queryMessageReturnsAValue(PMETHOD pm) 166 { 167 if(pm->mpReturn.uiStar) 168 return TRUE; 169 170 if(!strcmp(pm->mpReturn.chrType, "void")) 171 return FALSE; 172 173 return TRUE; 174 } 175 -
trunk/idl-compiler/h-emitter_c/h_file_emitter.c
r290 r292 162 162 163 163 /* Do return type */ 164 fprintf(fh, "typedef %s", pm->mpReturn.chrType); 165 for(b=0;b<pm->mpReturn.uiStar;b++) 166 fprintf(fh, "*"); 164 fprintf(fh, "typedef "); 165 emitReturnType(pLocalPI, pif, pm); 167 166 168 167 fprintf(fh, " NOMLINK nomTP_%s_%s(%s* nomSelf,\n", pif->chrName, pm->chrName, pif->chrName); -
trunk/idl-compiler/include/parser.h
r287 r292 185 185 void emitHFile(GPtrArray* pInterfaceArray); 186 186 void emitIHFile(GPtrArray* pInterfaceArray); 187 void emitCFile(GPtrArray* pInterfaceArray); 187 188 188 189 /* Emitter support function */ … … 199 200 PINTERFACE findInterfaceFromName(gchar* chrName); 200 201 PMETHOD findMethodInfoFromMethodName(PINTERFACE pif, gchar* chrName); 202 gboolean queryMessageReturnsAValue(PMETHOD pm); 201 203 202 204 #ifdef INCL_FILE
Note:
See TracChangeset
for help on using the changeset viewer.