Commit graph

421 commits

Author SHA1 Message Date
Matevz Jekovec
2f3a18e49b Added cpp0x_result_of testcase.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 19:44:03 +00:00
Matevz Jekovec
e2e9b04b3d Added initial support for C++0x decltype().
Added testcase cpp0x_decltype.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-10 10:46:07 +00:00
Matevz Jekovec
a7e9a105d9 Enabled alternate function syntax and added runtime testcases.
Added support for null pointer constant introduced in C++0x.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11484 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-31 10:13:31 +00:00
Matevz Jekovec
e7fd659ae5 Fixed S/R and R/R conflicts.
Fixed testcase for rvalue reference.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11483 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-30 19:18:37 +00:00
Matevz Jekovec
a8209bfd68 Added support for C++0x rvalue and move semantics.
Added testcase.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-25 18:51:37 +00:00
Matevz Jekovec
e949fa3cc7 Added testcase for function objects.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-18 22:13:40 +00:00
William S Fulton
30335a0198 std::map improvements based on patch from Yuval Baror
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-22 06:10:52 +00:00
William S Fulton
267ffd6ce6 move std::multimap tests from li_std_map.i into new li_std_multimap.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-12 17:24:01 +00:00
William S Fulton
90b1578d65 add test for optimal attribute in out typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-30 06:12:32 +00:00
Haoyu Bai
0c5979a8d8 Fix problem caused by thread not properly terminated in director_thread test. This was cause crash in Python 3
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11161 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-19 16:56:01 +00:00
Haoyu Bai
caa6f2b9fa Fixes to support Python 3.0.1 and higher.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-02 17:56:29 +00:00
William S Fulton
589eb8e509 Add %attributeval and %attributestring to attribute.swg library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-13 22:42:45 +00:00
Haoyu Bai
afd67f8c67 Fix SF#2552488: indentation adjust of %pythonappend and %pythonprepend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 14:37:54 +00:00
Haoyu Bai
be7fdab62e Fix SF#2552048. Remove the 'self' parameter in Python proxy code for static member function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 13:38:39 +00:00
William S Fulton
ecdd24a508 yet better pointer string comparison
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11056 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-11 21:37:54 +00:00
William S Fulton
3d8f569466 another portability fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-11 21:32:42 +00:00
William S Fulton
cca31dde4f more portable pointer in a string comparison
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-11 17:57:21 +00:00
William S Fulton
b91631c130 Patch #1992756 from Colin McDonald - %contract not working for classes in namespace
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11049 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-10 01:15:03 +00:00
William S Fulton
ed0ae261bf fix cast of pointer to long
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11042 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-08 19:35:13 +00:00
William S Fulton
91ba340a79 add test for inheritance of 3 classes deep which exposes a problem in the python shared_ptr wrappers. Manually added the %types for now.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-06 17:10:53 +00:00
Haoyu Bai
5070f8d929 2to3 has its way to exclude fixer now, so we nolonger need our hack
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10962 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-03 19:24:06 +00:00
William S Fulton
93f0390322 UTL - Fix some incorrect acceptance of types in the STL, eg a double * element passed into a vector<int *> constructor would be accepted, but the ensuing behaviour was undefined. Now the type conversion correctly raises an exception
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-28 23:35:46 +00:00
William S Fulton
0cfccf817f move iadd.h contents into iadd.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10957 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-28 23:33:37 +00:00
William S Fulton
946f9def37 fix test names since they were renamed recently
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10955 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-26 23:25:47 +00:00
William S Fulton
3041db155d modifying build system not to rely on the -I path to find the input files avoiding warning 125: merge .i files that are common between python and the main version
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10954 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-26 23:04:18 +00:00
William S Fulton
b266e1f68c modifying build system not to rely on the -I path to find the input files avoiding warning 125: move python .i files up one directory, some files have been renamed - prepended with python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-26 22:50:35 +00:00
William S Fulton
db83e51441 modify test-suite (barring python atm) to not rely on the -I path to find the input .i file - removes the new warning 125 and sets up the test-suite for testing with ccache. This change required the use of -outcurrentdir and moving the .i files from the language subdirectories to the directory above along with some .i file name changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-26 21:35:15 +00:00
William S Fulton
a604f46593 Add the strip encoder patch from Anatoly Techtonik #2130016
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-01 22:52:26 +00:00
Haoyu Bai
32b01d9559 merge test case pybuf and benchmark pybuf_benchmark into a single test case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-28 09:36:06 +00:00
Haoyu Bai
98f5993f50 remove _runme3 file that was checked in by mistake
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-13 13:20:39 +00:00
Haoyu Bai
fe3a6192f2 fix a typo in python/Makefile.in
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10852 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-13 12:55:32 +00:00
Haoyu Bai
dfbcaf884e add removing of 2to3 generated runme3.py in make clean target
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10851 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-13 12:16:44 +00:00
Haoyu Bai
875d1668b6 fix merge problem: remove USE_VALGRIND because it is already moved to common.mk
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-13 11:38:10 +00:00
Haoyu Bai
3d8ddfc442 Merged the Python 3.0 support branch. The merging progress is not so smooth, so hope this commit won't make anything broken.
This is the (incomplemete) log produced by svnmerge.py:

Merged revisions 10405-10409,10420-10422,10426,10438,10445,10451,10454-10465,10467,10473-10475,10485,10488-10489,10493-10495,10497,10509-10510,10513-10514,10517,10520,10525,10528-10529,10533-10535,10554-10557,10570,10573,10593,10614,10666-10669,10673,10678,10687,10690,10704-10706,10731,10744,10750-10752,10755,10759,10770,10775-10776,10813,10819 via svnmerge from 
https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-11 17:18:07 +00:00
Richard Boulton
761ef2b98f [Python] Commit patch #2089149: Director exception handling mangles
returned exception.  Exceptions raised by Python code in directors
are now passed through to the caller without change.  Also, remove
the ": " prefix which used to be added to other director exceptions
(eg, those due to incorrect return types).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-10 10:08:21 +00:00
William S Fulton
f8ae12fe4d variable name changes to remove php keywords
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10575 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-24 20:11:46 +00:00
Haoyu Bai
aec1473a6e Added a test case for keyword renaming.
Now it works for Python in SWIG's -c++ mode,
but in C mode it doesn't work! (you can try with make keyword_rename.ctest)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-07 11:20:07 +00:00
William S Fulton
f06222b993 Add partialcheck make targets. Also add RUNTOOL, COMPILETOOL and SWIGTOOL variables for invoking tools when running tests, compiling or invoking swig
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10482 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-20 21:27:22 +00:00
William S Fulton
69d6ce4f33 Fix shared_ptr typemaps for use with %pythonnondynamic
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-04 23:29:59 +00:00
William S Fulton
a37115f55d Correct test for global shared_ptr variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-04 23:26:54 +00:00
Xavier Delacour
4d283f59c3 Fix ~15 tests, minor doc fixes, improve STL support.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-05 04:35:34 +00:00
William S Fulton
1a560e3866 global variables test and shared_ptr varin/varout typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10285 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-29 23:23:35 +00:00
William S Fulton
9b7042280c Add member variable support for shared_ptr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-14 22:53:11 +00:00
William S Fulton
444f643c4e Add shared_ptr typecheck typemaps for Python and add overloaded method tests for shared_ptr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:10:58 +00:00
William S Fulton
a85143fe7d further testing of shared_ptr and derived classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10235 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-09 12:14:31 +00:00
William S Fulton
22e3a7b009 Additions to %types so that a user can specify the code to go into the casting / conversion function
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10223 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-31 22:48:24 +00:00
William S Fulton
76229dbab8 Restore containers accepting NULL pointers when used in overloaded methods - problem reported by Josh Cherry
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-22 23:33:59 +00:00
William S Fulton
cb9d191276 Remove conversion from one STL container to another
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10214 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-21 21:59:02 +00:00
William S Fulton
b79e9a7d7e Fix template member variables wrapped by a smart pointer bug reported by Robert Lupton
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-17 00:29:02 +00:00
William S Fulton
ae42706190 Experimental boost::shared_ptr support - incomplete.
The swigregister methods need hacking to work. Modify Examples/Makefile from:
	$(SWIG) -c++ -python $(SWIGOPT) $(INTERFACE)
to
	$(SWIG) -c++ -python $(SWIGOPT) $(INTERFACE)
	mv $(ICXXSRCS) $(ICXXSRCS).tmp
	echo "sed hacked filename: " $(ICXXSRCS)
	cat $(ICXXSRCS).tmp | \
          sed -e 's/SWIG_TypeNewClientData(SWIGTYPE_p_Space__Klass,/SWIG_TypeNewClientData(SWIGTYPE_p_SwigBoost__shared_ptrTSpace__Klass_t,/' | \
          sed -e 's/SWIG_TypeNewClientData(SWIGTYPE_p_Space__KlassDerived,/SWIG_TypeNewClientData(SWIGTYPE_p_SwigBoost__shared_ptrTSpace__KlassDerived_t,/' | \
          sed -e 's/SWIG_TypeNewClientData(SWIGTYPE_p_BaseTint_double_t,/SWIG_TypeNewClientData(SWIGTYPE_p_SwigBoost__shared_ptrTBaseTint_double_t_t,/' | \
          sed -e 's/SWIG_TypeNewClientData(SWIGTYPE_p_PairTint_double_t,/SWIG_TypeNewClientData(SWIGTYPE_p_SwigBoost__shared_ptrTPairTint_double_t_t,/' \
          > $(ICXXSRCS)
	rm $(ICXXSRCS).tmp
to do this automatically

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10207 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-13 22:28:42 +00:00