Changeset 376 for trunk/idl-compiler


Ignore:
Timestamp:
Jun 29, 2008, 6:33:14 PM (17 years ago)
Author:
cinc
Message:

Disable macros in header files when using the NOM compiler.

Location:
trunk/idl-compiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/idl-compiler/h-emitter_c/h_file_emitter.c

    r375 r376  
    6464  fprintf(fh, "#endif /* __cplusplus */\n\n");
    6565
     66  fprintf(fh, "#ifndef NOMCOMPILER\n");
     67 
    6668  /* Define the name as an object */
    6769  fprintf(fh, "#if !defined(_%s_defined)\n", pif->chrName);
     
    7274  fprintf(fh, "#endif\n");
    7375  fprintf(fh, "#endif\n\n");
    74 
    7576}
    7677
     
    356357  pArray=pif->pMethodArray;
    357358 
    358   fprintf(fh, "#ifdef NOMCOMPILER\n");
     359  fprintf(fh, "#else /* NOMCOMPILER */\n");
     360
     361  emitInterfaceIncludes(pLocalPI, pif);
    359362
    360363  fprintf(fh, "interface %s", pif->chrName);
  • trunk/idl-compiler/ih-emitter_c/ih_file_emitter.c

    r326 r376  
    6161  fprintf(fh, "#include \"%s.h\"\n\n", pif->chrFileStem);
    6262
     63  fprintf(fh, "#ifndef NOMCOMPILER\n");
     64
    6365}
    6466
     
    574576
    575577  fprintf(fh, "\n#endif /* NOM_%s_IMPLEMENTATION_FILE */\n", pif->chrName);
     578 
     579  fprintf(fh, "#endif /* NOMCOMPILER */\n");
     580
    576581  fprintf(fh, "#endif/* %s_IH */\n", pif->chrName);
    577582}
Note: See TracChangeset for help on using the changeset viewer.