Commit graph

312 commits

Author SHA1 Message Date
Marcelo Matus
04113db0e7 add swig::PyItem and all the helper code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7787 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-03 14:24:36 +00:00
Marcelo Matus
b301617976 adding more missing typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-03 11:11:21 +00:00
Marcelo Matus
d450751daf add fast get/set for the this attribute
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-03 10:02:34 +00:00
Marcelo Matus
51796ebcce add 'iterator'(sequences) and 'key_iterator'(maps). The first returns allways the C++ iterator. In sequences __iter__ returns 'iterator()', in maps, __iter__ returns 'key_iterator()'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-02 15:58:58 +00:00
Marcelo Matus
6508e06af8 add the PyObject **PYTHON_SELF typemap(in)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-02 15:55:17 +00:00
Marcelo Matus
cb8d5b6b38 safer direct creation of a new instance avoiding the __init__ method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-02 12:52:01 +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
2de402b05a add iterator support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:56:13 +00:00
Marcelo Matus
bb4946d2fe add missing SWIG_fail
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:51:11 +00:00
Marcelo Matus
9ff4da9d4a add std_except typemaps to the unified typemap library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:43:02 +00:00
Marcelo Matus
e0b5446e4b recognize the and/not/or keywords and operator names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-27 15:02:56 +00:00
Marcelo Matus
bb5205a0c6 adding backward compatibility macros
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7734 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 07:55:41 +00:00
Marcelo Matus
1c529aa802 move attribute.i to the typemap library, now is usable from all the languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 13:20:50 +00:00
Marcelo Matus
029ff00d77 eliminate compilation warnings, add docs, and centralize the access to the unified typemap library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7710 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 09:31:15 +00:00
Marcelo Matus
f2f1b9889f Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-24 14:59:05 +00:00
Marcelo Matus
cacea2c73d include the user's fragment file in the same place
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:58:19 +00:00
Marcelo Matus
bd7b3fcb1d finishing the first stage of the typemap unification scheme, fixing issues with gcc and valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:47:56 +00:00
Marcelo Matus
8bcc0bf8eb fix warnings/errors for gcc4.0, icc and valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 14:26:13 +00:00
Marcelo Matus
3aac30b168 more typemaps unification and fixes for valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 10:52:50 +00:00
Marcelo Matus
ae6714aff3 cosmetic change, remove repeated docs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7678 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:54:54 +00:00
Marcelo Matus
1c7c9e44f7 massive typemap unification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:24:15 +00:00
Marcelo Matus
fe00d5cb85 fixes for new flag attribute convention
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-07 13:19:06 +00:00
William S Fulton
517e48f697 remove %pythondynamic - it didn't work properly - use %pythonnondynamic instead
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:14:34 +00:00
Marcelo Matus
2b44057526 cosmetic change, remove comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7549 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 13:05:33 +00:00
Marcelo Matus
33a752b0bd add %exceptionclass and %noexceptionclass directives and manage the feature:exceptionclass in a consistent way
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 13:04:42 +00:00
Marcelo Matus
1a8b5611e5 add missing const ptr case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-26 14:53:39 +00:00
Marcelo Matus
05ceecefc4 add missing directorin typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7439 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-14 14:38:46 +00:00
Marcelo Matus
474752667e add missing directorin typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-14 14:36:57 +00:00
Marcelo Matus
60913495ba cosmetic and docs changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 23:28:36 +00:00
Marcelo Matus
c74fd4442a allow to use %define inside a %define macro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 07:33:17 +00:00
Marcelo Matus
99ed184f95 adding test for binary buffer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:31:25 +00:00
Marcelo Matus
2e2617edce normalize cstring.i to use fragments, and add cwstring.i as a subproduct
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:22:10 +00:00
Marcelo Matus
2ae026aa6f fix #endif position bug #1249878
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 10:55:05 +00:00
William S Fulton
49639577e0 use exception specification instead of %exception to handle STL error checking
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-27 20:09:42 +00:00
Marcelo Matus
c9f4d68f96 add set __getitem__ method, this allows python iterator syntax to work, as in 'for i in a_set:...'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-19 09:36:08 +00:00
Marcelo Matus
9148f0cb38 fix for #1233773
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7331 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-15 21:23:40 +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
Marcelo Matus
bba18606ea change the Int/Long check order, just in case since 'int' could be too permissive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-21 18:55:43 +00:00
Marcelo Matus
a663b62852 remove the _AS_XX macros, just in case the Check methods are too permissive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7311 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-21 18:52:04 +00:00
Marcelo Matus
a5b1fde294 more fixes for python 1.5.2
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 19:23:16 +00:00
Marcelo Matus
7b1b141ee4 more fixes for python 1.5 +gcc2.96
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 19:12:21 +00:00
Marcelo Matus
2af5736adc more fixes for 1.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 01:41:22 +00:00
Marcelo Matus
b8871239d3 add patch 1221362 for pyhton 2.1
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-17 00:20:12 +00:00
William S Fulton
15a791cfb8 Various fixes for Visual C++ 7.1 and Sun Studio 10
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-03 20:52:16 +00:00
William S Fulton
c25d1c8e35 Uniform handling of SWIGEXPORT across SWIG.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-27 22:40:58 +00:00
Marcelo Matus
44af5819fd fix #1188207 and uniform the error/null/none handling
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-26 20:43:33 +00:00
Marcelo Matus
7f31cd5d0f fix #1207803
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-26 20:42:24 +00:00
Marcelo Matus
062a882c16 fix directorin typemap, bug #1179300
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-17 06:50:31 +00:00
Marcelo Matus
1122c6ac4f allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-03 03:16:25 +00:00
Marcelo Matus
9c225a1a54 allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-02 19:06:31 +00:00