add more docs and example for new rename
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8180 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dbfa64aab9
commit
b0d9ab31c8
2 changed files with 29 additions and 1 deletions
|
|
@ -70,7 +70,6 @@ Version 1.3.28 (unreleased).
|
||||||
hi, hello -> hi, Hello // match
|
hi, hello -> hi, Hello // match
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
enum Hi {
|
enum Hi {
|
||||||
hi, hello -> hi, hello // no match
|
hi, hello -> hi, hello // no match
|
||||||
};
|
};
|
||||||
|
|
@ -142,6 +141,22 @@ Version 1.3.28 (unreleased).
|
||||||
Use "swig -dump_tree" to see the attributes names you can use to
|
Use "swig -dump_tree" to see the attributes names you can use to
|
||||||
match an specific case.
|
match an specific case.
|
||||||
|
|
||||||
|
- Sometimes you need to process the 'source' name before
|
||||||
|
comparing, for example
|
||||||
|
|
||||||
|
%namewarn("314: empty is a keyword",sourcefmt="%(lower)s") "empty";
|
||||||
|
|
||||||
|
then if you have
|
||||||
|
|
||||||
|
int Empty(); // "Empty" is the source
|
||||||
|
|
||||||
|
you will get the keyword warning since 'Empty' will be
|
||||||
|
lower cased, via the sourcefmt="%(lower)s" option,
|
||||||
|
before comparing to the 'target' "empty".
|
||||||
|
|
||||||
|
There is an additional 'targetfmt' option to process the
|
||||||
|
'target' before comparing.
|
||||||
|
|
||||||
12/30/2005: mmatus
|
12/30/2005: mmatus
|
||||||
|
|
||||||
- Add initial support for gcj and Java -> <target language> mechanism.
|
- Add initial support for gcj and Java -> <target language> mechanism.
|
||||||
|
|
|
||||||
13
SWIG/Examples/test-suite/php4/namewarn_rename.i
Normal file
13
SWIG/Examples/test-suite/php4/namewarn_rename.i
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
%module namewarn_rename
|
||||||
|
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
|
||||||
|
void Empty() {};
|
||||||
|
|
||||||
|
|
||||||
|
class stdClass
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
%}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue