Changeset 350 for trunk/idl-compiler
- Timestamp:
- Jun 7, 2008, 10:19:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/idl-compiler/h-emitter_c/h_file_emitter.c
r326 r350 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) 2007 18 * Portions created by the Initial Developer are Copyright (C) 2007-2008 19 19 * the Initial Developer. All Rights Reserved. 20 20 * … … 205 205 emitMethodParams(pLocalPI, pif, pm->pParamArray); 206 206 fprintf(fh, " CORBA_Environment *ev);\n"); 207 fprintf(fh, "#error The macro is broken. It does not support ËrecursiveË calls (Line: %d)\n", __LINE__); 207 208 /* Macro to be used when several parameters are checked */ 208 209 fprintf(fh, "#define %s_%s(nomSelf,", pif->chrName, pm->chrName); … … 241 242 { 242 243 if(strcmp(pif->chrName , "NOMObject")) 243 fprintf(fh, " ( nomCheckObjectPtr((NOMObject*)nomSelf, %sClassData.classObject,",pif->chrName);244 fprintf(fh, " ({ %s* %s_nomSelf_ = (nomSelf) ;nomCheckObjectPtr((NOMObject*)%s_nomSelf_, %sClassData.classObject,", pif->chrName, pif->chrName, pif->chrName, pif->chrName); 244 245 else 245 fprintf(fh, " (nomCheckNOMObjectPtr( nomSelf, %sClassData.classObject,",pif->chrName);246 fprintf(fh, " (nomCheckNOMObjectPtr(%s_nomSelf_, %sClassData.classObject,",pif->chrName, pif->chrName); 246 247 fprintf(fh, "\"%s_%s\", ev) ? \\\n", pif->chrName, pm->chrName); 247 fprintf(fh, " (NOM_Resolve( nomSelf, %s, %s) \\\n", pif->chrName, pm->chrName);248 fprintf(fh, " ( nomSelf,");248 fprintf(fh, " (NOM_Resolve(%s_nomSelf_, %s, %s) \\\n", pif->chrName, pif->chrName, pm->chrName); 249 fprintf(fh, " (%s_nomSelf_,", pif->chrName); 249 250 /* Do parameters */ 250 251 emitMethodParamsNoTypes(pLocalPI, pif, pm->pParamArray); … … 252 253 for(b=0;b<pm->mpReturn.uiStar;b++) 253 254 fprintf(fh, "*"); 254 fprintf(fh, ") NULL )\n");255 fprintf(fh, ") NULL; })\n"); 255 256 } 256 257 else
Note:
See TracChangeset
for help on using the changeset viewer.