Commit graph

3,164 commits

Author SHA1 Message Date
William S Fulton
c4757bbbd4 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/SWIG@6310 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:32:28 +00:00
William S Fulton
dddf810a71 code comment added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6309 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:29:45 +00:00
William S Fulton
dce86404a1 not a lot has changed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6308 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:28:39 +00:00
William S Fulton
656e5c61f3 mods to use "default" typemap instead of default arguments for new default argument wrapping approach. Mainly %extend mods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6307 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:27:55 +00:00
William S Fulton
10c00a9e45 New default arg wrapping support method added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6306 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:22:35 +00:00
William S Fulton
fa2a384f71 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/SWIG@6305 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:19:31 +00:00
William S Fulton
ff38a4e4ef 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/SWIG@6304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:08:25 +00:00
William S Fulton
5b33b2f08f 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/SWIG@6303 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:05:59 +00:00
William S Fulton
571292260e minor runtime test mods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:04:22 +00:00
William S Fulton
c9258ba752 default typemap test added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:03:00 +00:00
William S Fulton
bc2722fc09 fix so that swig wraps what is actually used
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:00:51 +00:00
Marcelo Matus
8dbc3dd369 added another case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 03:32:00 +00:00
Marcelo Matus
2e9ef019df fix %extend+overload error
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 03:18:57 +00:00
Marcelo Matus
a81bce4fd7 add autodoc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 19:59:18 +00:00
Marcelo Matus
12e6cdc4f0 modify test to show problem with %extend+overload
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6296 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 19:57:45 +00:00
Marcelo Matus
f4b9b5cd02 modify test to show problem with %extend+overload
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 19:51:11 +00:00
Marcelo Matus
fc489a59de *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6294 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:16:50 +00:00
Marcelo Matus
ff794345fe 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/SWIG@6293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:11:07 +00:00
Marcelo Matus
7bba14e197 fix minor problem when defining __cplusplus as 1, empty definition is ok.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:09:29 +00:00
Marcelo Matus
124253d698 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/SWIG@6291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-03 05:01:17 +00:00
Marcelo Matus
e46c80edf8 replacing SWIGSTATIC(a) by SWIGINTERN a
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 20:15:46 +00:00
Marcelo Matus
2c962d36f2 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/SWIG@6289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 18:44:48 +00:00
Marcelo Matus
983d4abe42 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/SWIG@6288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 17:54:38 +00:00
Marcelo Matus
45eb8849fd add runme test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6287 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 02:31:30 +00:00
Marcelo Matus
0bcc1a43ae fix bitfield with expr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6286 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 02:11:40 +00:00
Marcelo Matus
28d1285e26 CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6285 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:44:24 +00:00
Marcelo Matus
a4a7a2ff1f better error messages, more comments, clean up for the next major modifications
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:43:17 +00:00
Marcelo Matus
31d82778b4 in/out fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6283 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:42:01 +00:00
Marcelo Matus
27377fb937 added more elements from std
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6282 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:39:15 +00:00
Marcelo Matus
8cd612c7c1 add callback and inout tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6281 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-02 01:33:38 +00:00
Marcelo Matus
526e70e592 fix fnc_ptr wrap for functions with ref,enums,etc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6280 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-01 21:45:28 +00:00
Marcelo Matus
625985875d fix %callback and add %pythoncallback
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6279 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-01 21:44:26 +00:00
William S Fulton
0a92a2bfe0 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/SWIG@6278 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 20:17:36 +00:00
William S Fulton
5448fe8df3 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6277 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:55:19 +00:00
William S Fulton
8486304d6c oops, SWIGIMPORT changed to SWIGIMPORTED
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6276 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:53:33 +00:00
William S Fulton
f1285e8ec0 SWIGIMPORT macro documented
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:39:40 +00:00
William S Fulton
f1a4704792 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6274 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:36:53 +00:00
William S Fulton
5a6fa3c074 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/SWIG@6273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 19:35:05 +00:00
Marcelo Matus
f903ec5ac9 back to strncmp, is not clear if memcmp is faster
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-27 08:41:51 +00:00
Marcelo Matus
82f2ee5db5 fix to work in plain C
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6271 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 02:01:29 +00:00
Marcelo Matus
99ab00fda5 hmmm, warnfilter(320) doesn't work. back to pragmas
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:47:09 +00:00
Marcelo Matus
15a5e3976f CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6269 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:14:49 +00:00
Marcelo Matus
c3f519f67d fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:03:19 +00:00
Marcelo Matus
a7c7a06c22 force all the std::exceptions to be exceptionclasses
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6267 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:01:18 +00:00
Marcelo Matus
3d5d0f535a cleaning + comments, and add the nondynamic feature handlers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:00:28 +00:00
Marcelo Matus
74c523675d add test for nondynamic
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:52:24 +00:00
Marcelo Matus
5767888507 change name to lib_std_except.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:51:59 +00:00
Marcelo Matus
80bb867d2c fix ptr test to work with COBJECTs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6263 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:51:19 +00:00
Marcelo Matus
31838af4c5 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/SWIG@6262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:49:41 +00:00
Marcelo Matus
66f2d41cc7 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/SWIG@6261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:48:33 +00:00