[Expat-bugs] [ expat-Bugs-644343 ] (expat 1.95.5) 'const' keyword

noreply@sourceforge.net noreply@sourceforge.net
Wed Nov 27 03:38:10 2002


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: Open
Resolution: None
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: 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