using code 315 for bad names only

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2003-12-12 07:15:00 +00:00
commit f49892c448
3 changed files with 11 additions and 18 deletions

View file

@ -112,8 +112,13 @@ Version 1.3.20 (In progress)
So, all the language maintainers, please check the So, all the language maintainers, please check the
keywords list, and remember that you can also add bad keywords list, and remember that you can also add bad
member names too, like *::clone or *::cget (see an example members names too, like *::clone or *::cget (see an
in the tcl8/tclkw.swg file). example in the tcl8/tclkw.swg file).
Just to be consistent:
- Use code 314 for keyword and/or fatal bad names.
- Use code 315 for bad names, but not fatal ones.
**** And don't add any new test file without checking it **** And don't add any new test file without checking it
with the -Wallkw option!! (that includes me) *****. with the -Wallkw option!! (that includes me) *****.

View file

@ -62,7 +62,7 @@ JAVAKW(while);
/* others bad names */ /* others bad names */
/* Not really sure about this, but sometimes it produce problems */ /* Not really sure about this, but sometimes it produce problems */
// %namewarn("314:clone is a java reserved method name") *::clone; // %namewarn("315:clone is a java bad method name") *::clone;
#undef JAVAKW #undef JAVAKW

View file

@ -36,19 +36,9 @@ PYTHONKW(yield);
#undef PYTHONKW #undef PYTHONKW
/* #define PYTHONBN(x) %namewarn("315:" #x " is a bad name in python") #x
bad names
http://users.ox.ac.uk/~sann1276/python/handbook/node52.html
*/
#define PYTHONBN(x) %namewarn("314:" #x " is a bad name in python") #x /* recurrent built-in functions */
PYTHONBN(Data);
PYTHONBN(Float);
PYTHONBN(Int);
PYTHONBN(Numeric);
PYTHONBN(Oxphys);
PYTHONBN(array);
PYTHONBN(close); PYTHONBN(close);
PYTHONBN(float); PYTHONBN(float);
PYTHONBN(int); PYTHONBN(int);
@ -56,10 +46,8 @@ PYTHONBN(input);
PYTHONBN(open); PYTHONBN(open);
PYTHONBN(range); PYTHONBN(range);
PYTHONBN(type); PYTHONBN(type);
PYTHONBN(write);
PYTHONBN(zeros);
/* Boolean type */
PYTHONBN(True); PYTHONBN(True);
PYTHONBN(False); PYTHONBN(False);