[Expat-bugs] [ expat-Bugs-644343 ] (expat 1.95.5) 'const' keyword
SourceForge.net
noreply at sourceforge.net
Mon Jan 20 20:40:29 EST 2003
Bugs item #644343, was opened at 2002-11-26 16:12
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=644343&group_id=10127
Category: None
Group: Feature Request
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Artyom Bolgar (artyom17)
Assigned to: Nobody/Anonymous (nobody)
Summary: (expat 1.95.5) 'const' keyword
Initial Comment:
Not all C-compilers knows the 'const' keyword
(especially old ones). That is why I propse to add the
following lines into expat.h file:
#ifndef __cplusplus
#define const
#endif
It defines 'const' as empty identifier and everything is
compiled OK. I attached the diff file for 1.95.5.
Thanks.
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2003-01-20 23:40
Message:
Logged In: YES
user_id=3066
Since "const" is ANSI C and additional information has not
been provided, I'm closing this report.
----------------------------------------------------------------------
Comment By: Artyom Bolgar (artyom17)
Date: 2002-11-27 20:12
Message:
Logged In: YES
user_id=657326
Well, I have to check it out to be sure. I'll post an additional
info later.
----------------------------------------------------------------------
Comment By: Karl Waclawek (kwaclaw)
Date: 2002-11-27 15:34
Message:
Logged In: YES
user_id=290026
But is xlc the only C compiler for AIX?
A quick google search turned up:
- IBM C for AIX
- VisualAge C++ for AIX
- gcc (version 2.9.aix51.020209 )
- XL C for AIX (seems to have a C89 compliance option)
----------------------------------------------------------------------
Comment By: Artyom Bolgar (artyom17)
Date: 2002-11-27 15:14
Message:
Logged In: YES
user_id=657326
I seem to recall the xlc compiler on the IBM AIX box.
----------------------------------------------------------------------
Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-11-26 22:38
Message:
Logged In: YES
user_id=3066
What C compilers don't support "const"? That's not exactly a
recent addition. Unless you can make the case that there
are important platforms which can't be supported at all (with
any compiler) without this, I'll reject it. It just doesn't make a
lot of sense to support C implementations that don't comply
with at least C89.
----------------------------------------------------------------------
Comment By: Artyom Bolgar (artyom17)
Date: 2002-11-26 16:54
Message:
Logged In: YES
user_id=657326
More exactly, will be better to change it to:
#ifdef XML_NOCONST
#define const
#endif
I guess.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=644343&group_id=10127
More information about the Expat-bugs
mailing list