Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-708

C++ Indentifier collision with Python

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • Build
    • None
    • Operating System: All
      Platform: All
    • 14390

    Description

      xercesc/util/regx/RegxParser.hpp defines T_CHAR and T_STRING as enum
      constants (BTW, why do you assign explicit numbers, instead of letting
      the computer do it?).

      Unfortunately, Python #define's the same identifiers, and we all know
      how aware of scopes #define is.

      So, could we rename those symbols (I think they're rather internal
      ones, so no library user should notice that) to be mixed-cased, to
      avoid name clashes with CPP symbols?

      My proposal would be T_CHAR ==> T_Char etc.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhe@webde-ag.de Jürgen Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: