Commit graph

968 commits

Author SHA1 Message Date
Marcelo Matus
a3424e36e1 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/SWIG@7775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-02 15:58:58 +00:00
Marcelo Matus
9b9aee8eca add the PyObject **PYTHON_SELF typemap(in)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-02 15:55:17 +00:00
Marcelo Matus
c28010f762 safer direct creation of a new instance avoiding the __init__ method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-02 12:52:01 +00:00
Marcelo Matus
b59c0b0da2 add SWIG_STATIC_POINTER helper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-02 12:50:52 +00:00
Marcelo Matus
985adc13fb remove 'thisown' and ClassPtr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:58:24 +00:00
Marcelo Matus
cda225ea32 add iterator support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:56:13 +00:00
Marcelo Matus
f1c9638b6a add missing iterator decls
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:55:33 +00:00
Marcelo Matus
22a35668b0 add missing SWIG_fail
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:51:11 +00:00
Marcelo Matus
f88acef831 include the language specific codes first since they can contain typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:47:41 +00:00
Marcelo Matus
564be509ea docs and cosmetic fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:46:18 +00:00
Marcelo Matus
9c5b888299 add missing directors typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:45:51 +00:00
Marcelo Matus
68c269bdcd use shorter SWIG_exception for errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:45:21 +00:00
Marcelo Matus
fc78c9460e add iterator category
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:43:42 +00:00
Marcelo Matus
71df9fc8b6 add std_except typemaps to the unified typemap library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:43:02 +00:00
Marcelo Matus
536621e82b prevents ConvertPtr to modified the result when fails
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7757 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:41:43 +00:00
Marcelo Matus
f8c9bee335 add missing SWIG_fail
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7756 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:40:51 +00:00
Marcelo Matus
307f0104c6 recognize the and/not/or keywords and operator names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-27 15:02:56 +00:00
Marcelo Matus
a8fe5247e2 added methods for size_t and more freearg typemaps around, just in case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-27 11:30:14 +00:00
Marcelo Matus
05c529eedc be sure we use #if defined(...) instead of the fragil #ifdef everywhere, fix missing director typemaps and cosmetics
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-27 10:35:38 +00:00
Marcelo Matus
3c5c038e86 fix ifdefs for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7738 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 14:09:58 +00:00
Marcelo Matus
65c6cd4a4c adding backward compatibility macros
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7734 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 07:55:41 +00:00
Marcelo Matus
f9a28cdec7 documenting attribute.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 07:48:56 +00:00
Marcelo Matus
1b811fc2b9 add missing %newpointer_flags option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7732 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 07:15:49 +00:00
Marcelo Matus
2f1217145a more perl cleaning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 07:15:14 +00:00
Marcelo Matus
db4f2f71a1 add attribute.i for other languages that don't use the unified typemap library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 07:14:49 +00:00
Marcelo Matus
97874a090a use macros by default and cosmetic changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7723 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 15:51:16 +00:00
Marcelo Matus
ead70adb56 more fixes for valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7722 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 15:15:42 +00:00
Marcelo Matus
07df4a57db fixes for valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 14:52:30 +00:00
Marcelo Matus
a7091f135b more fixes for DISOWN
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7719 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 14:49:09 +00:00
Marcelo Matus
8be1b7a07c 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/SWIG@7717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 13:20:50 +00:00
Marcelo Matus
e8535abc5b implement DISOWN, please test it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7714 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 10:57:33 +00:00
Marcelo Matus
e7eeff806a 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/SWIG@7710 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 09:31:15 +00:00
Marcelo Matus
3c65cea431 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/SWIG@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-24 14:59:05 +00:00
John Lenz
48f1da1bfc + finally fix pointers to member functions in chicken
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7705 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-24 03:42:32 +00:00
Marcelo Matus
851bf6cb23 activating the keyword warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-21 11:00:19 +00:00
Marcelo Matus
a4c0114c6a replace bad parameter names when neccessary
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7699 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-21 10:43:41 +00:00
Marcelo Matus
77a2b69047 remove extra error handling
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 12:06:27 +00:00
Marcelo Matus
36f34d7a48 add missing macros
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 10:12:40 +00:00
Marcelo Matus
2811e2a09a include the user's fragment file in the same place
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:58:19 +00:00
Marcelo Matus
ba3efb0917 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/SWIG@7692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:47:56 +00:00
John Lenz
153ceb2f5b Fix a few minor bugs in the chicken module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 00:37:57 +00:00
Marcelo Matus
7564088646 fix warnings/errors for gcc4.0, icc and valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 14:26:13 +00:00
Marcelo Matus
66e13bf0f0 put the common error labels in a more public place, visible from java/C# and the rest
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 12:12:55 +00:00
Marcelo Matus
aadff06f45 more typemaps unification and fixes for valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 10:52:50 +00:00
John Lenz
4aa43af86a Fix minor bug: a missing # causing a SWIG error on li_cdata test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 06:17:18 +00:00
Marcelo Matus
bdb92681d5 fixes to compile OSS
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 15:20:17 +00:00
Marcelo Matus
e707c456ef fix for template types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 14:16:22 +00:00
Marcelo Matus
c0c3495ee4 cosmetic change, remove repeated docs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7678 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:54:54 +00:00
Marcelo Matus
7e5e4fd1f9 massive typemap unification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:24:15 +00:00
John Lenz
365095ef2f Chicken:
fix memory corruption/segfault in the argout typemap when it is used with a wrapped pointer return
  unsigned long typemaps could overflow... correctly check for this case


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 04:05:11 +00:00