Would you like to apply the advices from the article
"http://en.wikipedia.org/wiki/Const_correctness" to
your sources?
I suggest to add the key word "const" to the type
specifiers for parameters like the following.
- input (function "store")
- vn (functions "getAttr.+", "match.+")
vn, attrName (function "hasAttr")
vn, URL, localName (function "hasAttrNS")
http://cvs.sourceforge.net/viewcvs.py/vtd-xml/ximple-dev_c/vtd-xml/vtdNav.h?rev=1.9&view=markup
Logged In: YES
user_id=1051699
Interesting suugestion, will think about that. Sorry for the
late reply
Logged In: YES
user_id=572001
Originator: YES
Would you like to clarify any APIs as a documentation aid?
http://vtd-xml.cvs.sourceforge.net/vtd-xml/ximple-dev_c/vtd-xml/contextBuffer.h?revision=1.7&view=markup
http://vtd-xml.cvs.sourceforge.net/vtd-xml/ximple-dev_c/vtd-xml/vtdNav.h?revision=1.24&view=markup
Logged In: YES
user_id=1051699
Originator: NO
as far as I understand it, C doesn't support "const."
Logged In: YES
user_id=572001
Originator: YES
Where did you get this kind of knowledge?
"const" is a C key word.
Logged In: YES
user_id=1051699
Originator: NO
hmmm... I checked again, it is in fact a C keyword. are you
suggesting that all #define should be declared "const."
Logged In: YES
user_id=1051699
Originator: NO
hmmm... I checked again, it is in fact a C keyword. are you
suggesting that all #define should be declared "const."
Logged In: YES
user_id=572001
Originator: YES
No, not all. I indicated some candidates for an API clarification.
Do you see the situation that all interfaces might be affected?
Do you want to consider the C99 key word "inline" instead of "#define"?
http://en.wikipedia.org/wiki/Inline_expansion