Marcelo Matus
579f5963fb
fix C + enums + struct
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8747 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-08 08:23:45 +00:00
Marcelo Matus
c5b3ac2abd
solve duplicate symbol issue reported by Andreas Held
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-08 02:06:15 +00:00
Marcelo Matus
a61686b243
fix unused 'fail:' label warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8716 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-05 04:08:56 +00:00
William S Fulton
4d3a666e92
Give copy constructor parameter a more appropriate name. Also there is no need to mangle it, the name appears in the proxy classes in java/c#, so better that it is nicely named.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8700 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-03 22:59:45 +00:00
Marcelo Matus
285aeff366
readd removed \!
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8671 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-01 22:46:46 +00:00
Marcelo Matus
7b2dbbc3ce
fix missing static member access methods, discovered with li_std_string test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:52:39 +00:00
Marcelo Matus
a4b8f2cb27
fix/apply naturalvar
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 03:29:20 +00:00
Marcelo Matus
d731d23397
check/fix the %delobject feature for member methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 01:21:52 +00:00
Marcelo Matus
79dc4cb64a
implement the naturalvar feature for global vars in java and csharp, implement the 'allowexcept' feature for global variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:39:24 +00:00
Marcelo Matus
9fb217b048
add %delobject, which is the equivalent of %newobject but for functions that delete an element. This allows to properly disown the argument, as the %newobject directive allows to 'own' the object
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 17:35:04 +00:00
Marcelo Matus
68396be600
flag the memberget/memberset methods and use it to deactivate kwargs, reported by amaury
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8257 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 16:55:58 +00:00
William S Fulton
63a6a8ce09
Fix %extend with static const integral types.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8223 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-05 22:19:37 +00:00
Marcelo Matus
a9ab040ef5
Move rename/namewarn engine from parser.y to naming.c. The code was getting
...
too large to be in the parser.
Centralize the swig keys to avoid replication and wrong spellings.
Use more HashGetAttr where possible and other speed improvements
to compensate for the extra work introduced by the new rename/namewarn
mechanism.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8170 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 04:33:19 +00:00
Marcelo Matus
2bdd8b07c0
add support for options in rename/namewarn and central methods to access the rename/warning hashs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 10:41:54 +00:00
Marcelo Matus
901bb6d73b
add the copyctor feature/directive to enable automatic copy constructors. In the way, fix how default ctor/dtor are added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-30 00:04:00 +00:00
Marcelo Matus
801a09f146
fix for unnamed types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8113 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 22:37:26 +00:00
Marcelo Matus
f804cc18ab
add the 'naturalvar' option/mode/feature, to allow member variables to be treated in a natural way, as the global ones. This mean use the const SWIGTYPE &(C++)/SWIGTYPE(C) typemaps instead of the plain SWIGTYPE * typemap for the set/get methods.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:48:56 +00:00
Marcelo Matus
858453b1cf
disable copyctor
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 08:38:02 +00:00
Marcelo Matus
f023a22575
generate implicit copyctor, add -nocopyctor, and clarify the -nodefault, -nodefaultctor, -nodefautldtor options
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8030 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-22 06:26:26 +00:00
Marcelo Matus
51d3cb4c9a
add the destructor even when -nodefault is used
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-09 09:20:43 +00:00
Marcelo Matus
b66f1e672b
fix many/many memory leaks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-30 21:32:27 +00:00
Marcelo Matus
3413b92e7a
remove many memory leaks and cleanup
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-29 01:47:10 +00:00
Marcelo Matus
39f173c12a
remove 'thisown' and ClassPtr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:58:24 +00:00
Marcelo Matus
42b7531b87
add Luigi's static patch for extended variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7679 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 14:04:14 +00:00
Marcelo Matus
fd9db14a98
fixes for the except/callback attributes to follow new flag feature convention
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-07 13:17:41 +00:00
William S Fulton
de4b0c6f96
Modify following features to work as flags, so that they can be truely set and unset: allowexcept, director, nodirector, notabstract
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:24:54 +00:00
William S Fulton
019cbb567a
Modify following features to work as flags, so that they can be truely set and unset:
...
nodefault
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7568 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:05:50 +00:00
William S Fulton
efd25b4674
Modify following features to work as flags, so that they can be truely set and unset:
...
immutable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:01:13 +00:00
William S Fulton
75972cd1df
Modify following features to work as flags, so that they can be truely set and unset:
...
new
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7564 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 22:10:17 +00:00
William S Fulton
beebb0a8e1
Modify following features to work as flags, so that they can be truely set and unset:
...
java:const
java:downcast
compactdefaultargs
ignore
valuewrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7562 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 21:37:40 +00:00
William S Fulton
dbc1c53d7b
Remove attached typemaps after a variable set wrapper has been generated so that the get method doesn't pick up any incorrect typemaps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 23:40:11 +00:00
Marcelo Matus
c66b71417c
add Scott's patches for directors: void return, directormap register, better error messages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7324 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-06 21:02:22 +00:00
William S Fulton
11dc59b22e
The default is now to not generate an additional method declaration when a method is declared with an extern. Use -addextern option to recreate original behaviour (new commandline option), with -noextern now redundant.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-27 20:39:20 +00:00
Marcelo Matus
f5bcace78c
fix for #1205859
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7307 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-18 08:28:38 +00:00
Marcelo Matus
0bf296c7ad
fix for #1205859
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7306 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-18 08:04:30 +00:00
William S Fulton
896c26bf80
Fix incorrect access for methods added via the 'using' declaration
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-25 21:24:00 +00:00
William S Fulton
34a035e3f1
template ext mode on for all languages, not just Python now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7130 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-01 19:46:06 +00:00
Marcelo Matus
d75313afe0
add more missing Deletes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7063 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-14 23:32:31 +00:00
John Lenz
ef58056ffd
Add support for the -external-runtime argument and update all language modules to use it
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6993 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-23 22:40:51 +00:00
William S Fulton
bd3baa1ec4
attribute node change for a future planned mod
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:03:59 +00:00
Marcelo Matus
70d3bde16b
more smart pointers + extend fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-04 20:42:28 +00:00
Marcelo Matus
533b36c15d
more fixes and cases for smart pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6917 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-23 08:56:27 +00:00
Marcelo Matus
d6802c75ba
avoid using reference value for static members, since it can generate unresolved symbols for static const
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-23 07:38:55 +00:00
Marcelo Matus
417e339ba3
more smart_pointer + static methods fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-23 01:12:07 +00:00
Marcelo Matus
7ae82d1c51
fixes for templates and template default args, cosmetics, and other fixes for OSS
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 02:12:05 +00:00
Marcelo Matus
d6760d4889
more smart_pointer fixes + cases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-07 23:32:11 +00:00
William S Fulton
27f09fac81
tidyup
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-06 22:53:09 +00:00
Marcelo Matus
d88eed76e6
mix patches #748861 and #1041174 for %extend generation code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6831 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-04 08:33:03 +00:00
Marcelo Matus
d0fad62e2c
add support for smart pointers + %extend
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6819 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 11:29:17 +00:00
Marcelo Matus
7c568eafaa
fix protected constructor by using clean_overloaded to utils.cxx, and fix smart_pointer + members
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 00:47:32 +00:00