Changeset 205 for trunk/ORBit2-2.14.0/src
- Timestamp:
- Jan 20, 2007, 3:26:14 PM (19 years ago)
- Location:
- trunk/ORBit2-2.14.0/src/idl-compiler
- Files:
-
- 2 edited
-
orbit-idl-c-headers.c (modified) (2 diffs)
-
orbit-idl-c-skelimpl.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ORBit2-2.14.0/src/idl-compiler/orbit-idl-c-headers.c
r202 r205 379 379 #ifdef USE_LIBIDL_CODE 380 380 if ( tree->declspec & IDLF_DECLSPEC_PIDL ) { 381 /* PIDL interfaces are not normal CORBA Objects */382 fprintf(ci->fh, "typedef struct %s_type *%s;\n", fullname, fullname);383 fprintf(ci->fh, "#ifndef TC_%s\n", fullname);384 fprintf(ci->fh, "# define TC_%s TC_CORBA_Object\n", fullname);385 fprintf(ci->fh, "#endif\n");381 /* PIDL interfaces are not normal CORBA Objects */ 382 fprintf(ci->fh, "typedef struct %s_type *%s;\n", fullname, fullname); 383 fprintf(ci->fh, "#ifndef TC_%s\n", fullname); 384 fprintf(ci->fh, "# define TC_%s TC_CORBA_Object\n", fullname); 385 fprintf(ci->fh, "#endif\n"); 386 386 } else { 387 fprintf(ci->fh, "#define %s__freekids CORBA_Object__freekids\n", fullname);388 389 fprintf(ci->fh, "typedef CORBA_Object %s;\n\n", fullname);390 fprintf(ci->fh, "extern CORBA_unsigned_long %s__classid;\n", fullname);391 ch_type_alloc_and_tc(tree, rinfo, ci, FALSE);387 fprintf(ci->fh, "#define %s__freekids CORBA_Object__freekids\n", fullname); 388 389 fprintf(ci->fh, "typedef CORBA_Object %s;\n\n", fullname); 390 fprintf(ci->fh, "extern CORBA_unsigned_long %s__classid;\n", fullname); 391 ch_type_alloc_and_tc(tree, rinfo, ci, FALSE); 392 392 } 393 393 #else 394 394 fprintf(ci->fh, "#ifndef %s\n", fullname); 395 #if 0 395 396 /* For being more typesave when calling methods */ 396 397 fprintf(ci->fh, "typedef struct %s_struct {\n", fullname); … … 400 401 401 402 fprintf(ci->fh, "#define %s %sObj\n", fullname, fullname); 403 fprintf(ci->fh, "typedef %s *P%s;\n", fullname, fullname); 404 #endif 405 fprintf(ci->fh, "#define %s NOMObject\n", fullname); 402 406 fprintf(ci->fh, "typedef %s *P%s;\n", fullname, fullname); 403 407 fprintf(ci->fh, "#endif\n"); -
trunk/ORBit2-2.14.0/src/idl-compiler/orbit-idl-c-skelimpl.c
r204 r205 921 921 /* output params for macro */ 922 922 // VoyagerWriteParamsForParentCall (ski->of, ski->tree ); 923 fprintf(ski->of, "(nomSelf, "); 923 fprintf(ski->of, "(("); 924 /* Output name of introducing class */ 925 if(IDL_INTERFACE(tmptree).inheritance_spec) { 926 InheritedOutputInfo ioi; 927 928 ioi.of = ski->of; 929 ioi.realif = tmptree; 930 ioi.chrOverridenMethodName=gstr->str; 931 IDL_tree_traverse_parents(IDL_INTERFACE(tmptree).inheritance_spec, (GFunc)VoyagerOutputIntroducingClass, &ioi); 932 } 933 fprintf(ski->of, "*)nomSelf, "); 934 //fprintf(ski->of, "(nomSelf, "); 924 935 if(IDL_INTERFACE(tmptree).inheritance_spec) { 925 936 InheritedOutputInfo ioi;
Note:
See TracChangeset
for help on using the changeset viewer.
