Ignore:
Timestamp:
Nov 28, 2006, 10:10:40 PM (19 years ago)
Author:
cinc
Message:

Back out patch for method redifinition warning and apply a (hopefully) better one.

File:
1 edited

Legend:

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

    r121 r124  
    12921292                fprintf(ci->fh, "/* OVERRIDE_METHOD: ");
    12931293                fprintf(ci->fh, "%s %s */\n", IDL_IDENT (IDL_OP_DCL (cur).ident).str, id );
     1294                fprintf(ci->fh, "#ifdef %s_%s\n", id, IDL_IDENT (IDL_OP_DCL (cur).ident).str);
     1295                fprintf(ci->fh, "#undef %s_%s\n", id, IDL_IDENT (IDL_OP_DCL (cur).ident).str);
     1296                fprintf(ci->fh, "#endif\n");
    12941297                /* Try to find the interface introducing this method */
    12951298
     
    13421345      if(!strstr(IDL_IDENT (IDL_OP_DCL (curop).ident).str, "__OVERRIDE__"))
    13431346        {
    1344           fprintf(ioi->of, "#if 0 /* %s, %s line %d */\n", __FILE__, __FUNCTION__, __LINE__);
     1347          fprintf(ioi->of, "/* %s, %s line %d */\n", __FILE__, __FUNCTION__, __LINE__);
    13451348          fprintf(ioi->of, "#define %s_%s %s_%s\n",
    13461349                  realid, IDL_IDENT(IDL_OP_DCL(curop).ident).str,
    13471350                  id, IDL_IDENT(IDL_OP_DCL(curop).ident).str);
    1348           fprintf(ioi->of, "#endif\n");
    13491351        }
    13501352      break;
Note: See TracChangeset for help on using the changeset viewer.