#9 Improve "const correctness"

open
nobody
None
5
2005-07-17
2005-07-17
Markus Elfring
No

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.
http://cvs.sourceforge.net/viewcvs.py/nogravity/nogravity/src/lt_func.h?rev=1.2&view=markup
fn (function "NG_StageReadFile")
szFilename (function "NG_DrawBackgroundPic")
file (functions "NG_LoadMovie", "NG_LoadBackground")
filename (functions "NG_LoadSpriteGroup",
"NG_AudioLoadSong")
v, speed (function "NG_Audio3DPlay")
...

Discussion