Changeset 289 for trunk/idl-compiler/h-emitter_c
- Timestamp:
- Apr 1, 2007, 2:03:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/idl-compiler/h-emitter_c/h_file_emitter.c
r287 r289 328 328 { 329 329 PINTERFACE pif=g_ptr_array_index(pLocalPI->pInterfaceArray, a); 330 330 331 /* Only interfaces from the file given on the command line */ 331 332 if(!strcmp(pif->chrSourceFileName, pLocalPI->chrRootSourceFile)) 332 333 { 333 gchar* chrTemp; 334 335 chrTemp=g_strconcat(pif->chrFileStem, ".h", NULL); 336 337 //printInterface(pif); 338 if((pLocalPI->outFile=openOutfile(gScanner, chrTemp))!=NULLHANDLE) 334 /* Only interfaces which are fully defined. No forwarder */ 335 if(!pif->fIsForwardDeclaration) 339 336 { 340 emitHFileHeader(pLocalPI, pif); 341 emitInterfaceIncludes(pLocalPI, pif); 342 emitClassVersion(pLocalPI, pif); 343 emitClassDataStructs(pLocalPI, pif); 344 emitNewMacro(pLocalPI, pif); 345 emitObjectCheckFunction(pLocalPI, pif); 346 emitNewMethods(pLocalPI, pif); 347 emitParentClassMethods(pLocalPI, pif); 348 emitHFileFooter(pLocalPI, pif); 349 closeOutfile(pLocalPI->outFile); 350 } 351 g_free(chrTemp); 352 } 353 } 354 } 355 356 337 gchar* chrTemp; 338 339 chrTemp=g_strconcat(pif->chrFileStem, ".h", NULL); 340 341 //printInterface(pif); 342 if((pLocalPI->outFile=openOutfile(gScanner, chrTemp))!=NULLHANDLE) 343 { 344 emitHFileHeader(pLocalPI, pif); 345 emitInterfaceIncludes(pLocalPI, pif); 346 emitClassVersion(pLocalPI, pif); 347 emitClassDataStructs(pLocalPI, pif); 348 emitNewMacro(pLocalPI, pif); 349 emitObjectCheckFunction(pLocalPI, pif); 350 emitNewMethods(pLocalPI, pif); 351 emitParentClassMethods(pLocalPI, pif); 352 emitHFileFooter(pLocalPI, pif); 353 closeOutfile(pLocalPI->outFile); 354 } 355 g_free(chrTemp); 356 }/* fIsForwardDeclaration */ 357 } 358 } 359 } 360 361
Note:
See TracChangeset
for help on using the changeset viewer.