Commit graph

3,303 commits

Author SHA1 Message Date
William S Fulton
ad39b124c8 New default argument wrapping approach. This adds default argument support for statically typed languages, fixes wrapping of default arguments that are non-public plus fixes other bugs where SWIG could not or failed to correctly lookup up the default value in the symbol table.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6305 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:19:31 +00:00
William S Fulton
1535e5506e mods to use "default" typemap instead of default arguments for new default argument wrapping approach
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:08:25 +00:00
William S Fulton
73215c5558 default arguments added to overloaded methods
Fix so that the test uses the correct module!


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6303 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:05:59 +00:00
William S Fulton
88c0b425e2 minor runtime test mods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:04:22 +00:00
William S Fulton
0e0bc56563 default typemap test added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:03:00 +00:00
William S Fulton
633b882ef7 fix so that swig wraps what is actually used
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:00:51 +00:00
Marcelo Matus
a44038b71f added another case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 03:32:00 +00:00
Marcelo Matus
7757e31139 fix %extend+overload error
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 03:18:57 +00:00
Marcelo Matus
391869c600 add autodoc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 19:59:18 +00:00
Marcelo Matus
5887fe6363 modify test to show problem with %extend+overload
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6296 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 19:57:45 +00:00
Marcelo Matus
ed7f9ea925 modify test to show problem with %extend+overload
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 19:51:11 +00:00
Marcelo Matus
c48d9ff200 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6294 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:16:50 +00:00
Marcelo Matus
3b006a74c0 added the highly expected Robin's docstring [atch, plus some fixes and extensions. see autodoc.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:11:07 +00:00
Marcelo Matus
0ca860773f fix minor problem when defining __cplusplus as 1, empty definition is ok.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:09:29 +00:00
Marcelo Matus
415420c4c4 added the highly expected Robin's docstring [atch, plus some fixes and extensions. see autodoc.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:01:17 +00:00
Marcelo Matus
b501fb8521 replacing SWIGSTATIC(a) by SWIGINTERN a
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 20:15:46 +00:00
Marcelo Matus
5edce7c150 isolating the pure 'runtime' code in pyrun.swg, the API declarations are now in pyapi.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 18:44:48 +00:00
Marcelo Matus
afed1d4126 add John Lenz patch for avoiding the runtime library, but allowing the old approach to coexist
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 17:54:38 +00:00
Marcelo Matus
6c80ef2f7b add runme test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6287 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 02:31:30 +00:00
Marcelo Matus
a59ceff827 fix bitfield with expr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6286 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 02:11:40 +00:00
Marcelo Matus
eb387c59fc CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6285 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:44:24 +00:00
Marcelo Matus
3ae15c245c better error messages, more comments, clean up for the next major modifications
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:43:17 +00:00
Marcelo Matus
ff5136e3a4 in/out fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6283 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:42:01 +00:00
Marcelo Matus
d3534ecc5a added more elements from std
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6282 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:39:15 +00:00
Marcelo Matus
9ae33f3c4d add callback and inout tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6281 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:33:38 +00:00
Marcelo Matus
6b9fdc6c86 fix fnc_ptr wrap for functions with ref,enums,etc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6280 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-01 21:45:28 +00:00
Marcelo Matus
3023f3aad7 fix %callback and add %pythoncallback
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6279 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-01 21:44:26 +00:00
William S Fulton
9f158cbd5d Just fixed comment (strncmp is ANSI C so will be present on all systems as SWIG requires an ANSI compiler)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6278 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 20:17:36 +00:00
William S Fulton
80affed98f *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6277 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:55:19 +00:00
William S Fulton
5d9631bf20 oops, SWIGIMPORT changed to SWIGIMPORTED
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6276 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:53:33 +00:00
William S Fulton
a4c26ef742 SWIGIMPORT macro documented
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:39:40 +00:00
William S Fulton
4f439bfe7c *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6274 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:36:53 +00:00
William S Fulton
bddf02154e Bill Clarke patch: fix to ensure SWIGIMPORT always defined for %import and new warning when using -importall and -includeall together
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:35:05 +00:00
Marcelo Matus
26265006cc back to strncmp, is not clear if memcmp is faster
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 08:41:51 +00:00
Marcelo Matus
7cfd507cee fix to work in plain C
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6271 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 02:01:29 +00:00
Marcelo Matus
b87d66bf68 hmmm, warnfilter(320) doesn't work. back to pragmas
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:47:09 +00:00
Marcelo Matus
ce680838a6 CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6269 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:14:49 +00:00
Marcelo Matus
0ea35a31c0 fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:03:19 +00:00
Marcelo Matus
22e70dac7b force all the std::exceptions to be exceptionclasses
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6267 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:01:18 +00:00
Marcelo Matus
d7b22b7d90 cleaning + comments, and add the nondynamic feature handlers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:00:28 +00:00
Marcelo Matus
1ed8f4209a add test for nondynamic
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:52:24 +00:00
Marcelo Matus
e53e5171b0 change name to lib_std_except.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:51:59 +00:00
Marcelo Matus
7cdf043367 fix ptr test to work with COBJECTs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6263 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:51:19 +00:00
Marcelo Matus
7de5934a5d Change attribute cplus:exceptionclass to feature:exceptionclass. Add python:nondynamic feature. Fix -modern + exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:49:41 +00:00
Marcelo Matus
343276f056 change attribute cplus:exceptionclass to feature:exceptionclass. Now it can be enforced with %feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:48:33 +00:00
William S Fulton
64ecb886fa Added and empty freearg typemap so that the signed char* typemaps can be aplied to char*.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-22 20:30:06 +00:00
Marcelo Matus
b47bfaaa46 fix errors on solaris CC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6259 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-18 01:31:59 +00:00
Marcelo Matus
e711813d57 fix error on solaris CC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6258 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-18 01:24:15 +00:00
Marcelo Matus
a7e6ea9302 fix error on solaris CC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6257 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-18 01:18:31 +00:00
Marcelo Matus
f4e08cd89f more warn fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6256 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-18 00:27:40 +00:00