To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=53950
                  Issue #:|53950
                  Summary:|cppumaker: encode UNOIDL identifiers that are C++
                          |keywords
                Component:|udk
                  Version:|680m124
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|jsc
              Reported by:|sb





------- Additional comments from [EMAIL PROTECTED] Tue Aug 30 01:00:32 -0700 
2005 -------
offapi/com/sun/star/drawing/CaptionEscapeDirection.idl 1.4 contains

  const short auto = 2;

which is translated by cppumaker to the syntax error

  static const ::sal_Int16 auto = (sal_Int16)2;

As discussed in the thread starting at
<http://udk.openoffice.org/servlets/ReadMsg?list=dev&msgNo=2389>, it is a
compatible change to fix the use of any C++ keywords (as of the 1998 C++
Standard) as UNOIDL identifiers by encoding them as <PREFIX>_<ID>.  (In
retrospect, I think mapping an <ID> that names a UNOIDL const to "constant_<ID>"
instead of "const_<ID>" to avoid clashes with the C++ keyword "const_cast" is
not necessary, as "cast" itself is not a C++ keyword.  This rule should thus be
changed.)

(Java has a similar problem; however, only changing Java 1.3 keywords would be a
compatible change---keywords added by later revisions are problematic.)

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to