Ignore:
Timestamp:
Jan 20, 2007, 3:26:14 PM (19 years ago)
Author:
cinc
Message:

No more warnings for wrong nomSelf parameter type

Location:
trunk/ORBit2-2.14.0/src/idl-compiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ORBit2-2.14.0/src/idl-compiler/orbit-idl-c-headers.c

    r202 r205  
    379379#ifdef USE_LIBIDL_CODE
    380380    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");
    386386    } 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);
    392392    }
    393393#else
    394394    fprintf(ci->fh, "#ifndef %s\n", fullname);
     395#if 0
    395396    /* For being more typesave when calling methods */
    396397    fprintf(ci->fh, "typedef struct %s_struct {\n", fullname);
     
    400401
    401402    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);
    402406    fprintf(ci->fh, "typedef %s *P%s;\n", fullname, fullname);
    403407    fprintf(ci->fh, "#endif\n");
  • trunk/ORBit2-2.14.0/src/idl-compiler/orbit-idl-c-skelimpl.c

    r204 r205  
    921921                /* output params for macro */
    922922                // 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, ");
    924935                if(IDL_INTERFACE(tmptree).inheritance_spec) {
    925936                  InheritedOutputInfo ioi;
Note: See TracChangeset for help on using the changeset viewer.