using code 315 for bad names only
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c32f1d93d1
commit
720993e41f
3 changed files with 11 additions and 18 deletions
|
|
@ -112,8 +112,13 @@ Version 1.3.20 (In progress)
|
|||
|
||||
So, all the language maintainers, please check the
|
||||
keywords list, and remember that you can also add bad
|
||||
member names too, like *::clone or *::cget (see an example
|
||||
in the tcl8/tclkw.swg file).
|
||||
members names too, like *::clone or *::cget (see an
|
||||
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
|
||||
with the -Wallkw option!! (that includes me) *****.
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ JAVAKW(while);
|
|||
/* others bad names */
|
||||
|
||||
/* 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
|
||||
|
|
|
|||
|
|
@ -36,19 +36,9 @@ PYTHONKW(yield);
|
|||
|
||||
#undef PYTHONKW
|
||||
|
||||
/*
|
||||
bad names
|
||||
http://users.ox.ac.uk/~sann1276/python/handbook/node52.html
|
||||
*/
|
||||
#define PYTHONBN(x) %namewarn("315:" #x " is a bad name in python") #x
|
||||
|
||||
#define PYTHONBN(x) %namewarn("314:" #x " is a bad name in python") #x
|
||||
|
||||
PYTHONBN(Data);
|
||||
PYTHONBN(Float);
|
||||
PYTHONBN(Int);
|
||||
PYTHONBN(Numeric);
|
||||
PYTHONBN(Oxphys);
|
||||
PYTHONBN(array);
|
||||
/* recurrent built-in functions */
|
||||
PYTHONBN(close);
|
||||
PYTHONBN(float);
|
||||
PYTHONBN(int);
|
||||
|
|
@ -56,10 +46,8 @@ PYTHONBN(input);
|
|||
PYTHONBN(open);
|
||||
PYTHONBN(range);
|
||||
PYTHONBN(type);
|
||||
PYTHONBN(write);
|
||||
PYTHONBN(zeros);
|
||||
|
||||
|
||||
/* Boolean type */
|
||||
PYTHONBN(True);
|
||||
PYTHONBN(False);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue