Changeset 119 for trunk/ORBit2-2.14.0


Ignore:
Timestamp:
Nov 26, 2006, 7:19:48 PM (19 years ago)
Author:
cinc
Message:

Eliminated redefinition warning for inherited methods.

File:
1 edited

Legend:

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

    r114 r119  
    13391339      if(!strstr(IDL_IDENT (IDL_OP_DCL (curop).ident).str, "__OVERRIDE__"))
    13401340        {
     1341          fprintf(ioi->of, "#if 0 /* %s, %s line %d */\n", __FILE__, __FUNCTION__, __LINE__);
    13411342          fprintf(ioi->of, "#define %s_%s %s_%s\n",
    13421343                  realid, IDL_IDENT(IDL_OP_DCL(curop).ident).str,
    13431344                  id, IDL_IDENT(IDL_OP_DCL(curop).ident).str);
     1345          fprintf(ioi->of, "#endif\n");
    13441346        }
    13451347      break;
     
    13481350    case IDLN_ATTR_DCL:
    13491351      {
    1350         IDL_tree curitem;
    1351 
    1352         /* We don't use OIDL_Attr_Info here because inherited ops may go back into trees that are output-inhibited
    1353            and therefore don't have the OIDL_Attr_Info generated on them */
    1354 
    1355         for(curitem = IDL_ATTR_DCL(curop).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) {
    1356           IDL_tree ident;
    1357 
    1358           ident = IDL_LIST(curitem).data;
    1359          
    1360           fprintf(ioi->of, "#define %s__get_%s %s__get_%s\n",
    1361                   realid, IDL_IDENT(ident).str,
    1362                   id, IDL_IDENT(ident).str);
    1363 
    1364           if(!IDL_ATTR_DCL(curop).f_readonly)
    1365             fprintf(ioi->of, "#define %s__set_%s %s__set_%s\n",
    1366                     realid, IDL_IDENT(ident).str,
    1367                     id, IDL_IDENT(ident).str);
    1368         }
     1352        IDL_tree curitem;
     1353       
     1354        /* We don't use OIDL_Attr_Info here because inherited ops may go back into trees that are output-inhibited
     1355           and therefore don't have the OIDL_Attr_Info generated on them */
     1356       
     1357        for(curitem = IDL_ATTR_DCL(curop).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) {
     1358          IDL_tree ident;
     1359         
     1360          ident = IDL_LIST(curitem).data;
     1361         
     1362          fprintf(ioi->of, "#define %s__get_%s %s__get_%s\n",
     1363                  realid, IDL_IDENT(ident).str,
     1364                  id, IDL_IDENT(ident).str);
     1365         
     1366          if(!IDL_ATTR_DCL(curop).f_readonly)
     1367            fprintf(ioi->of, "#define %s__set_%s %s__set_%s\n",
     1368                    realid, IDL_IDENT(ident).str,
     1369                    id, IDL_IDENT(ident).str);
     1370        }/* for() */
    13691371      }
    13701372      break;
Note: See TracChangeset for help on using the changeset viewer.