Commit graph

2,028 commits

Author SHA1 Message Date
Jason Stewart
e294f2e158 fixed test-name typo ; add tests for pre- increment/decrement
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:20:37 +00:00
William S Fulton
8c24e2ca74 Fix shared_ptr typemaps where the pointer type is a templated type with with more than one parameter.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10327 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-27 20:29:01 +00:00
Mark Gossage
11647d87e8 [lua] Added a typemap DISOWN for SWIGTYPE* and SWIGTYPE[], and support for %delobject feature.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-27 01:58:30 +00:00
Mark Gossage
e543cd9040 [lua] added %luacode feature, documentation & examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-17 08:50:59 +00:00
Mark Gossage
8350c724f5 [lua] updated docs for exceptions
added new examples (exception,embed2)
update typmaps

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-06 09:44:48 +00:00
Xavier Delacour
13c0b040fc Fix Octave C support by adding extern "C" around header section. Fix Octave examples (simple, contract, variables, pointer, funcptr) such that example.c files are built with C compiler, and wrappers with C++ compiler.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-05 15:29:01 +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
2cf3cb3dc9 char *& typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-04 21:35:22 +00:00
Xavier Delacour
393391965c Initial commit of Octave module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-01 23:35:44 +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
d995ec534b fixes for vc++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10274 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 20:22:09 +00:00
William S Fulton
0c55b8dad8 vc++ fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 18:18:03 +00:00
William S Fulton
2e342337c0 windows fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 18:12:18 +00:00
William S Fulton
69e6f39cfd test more global function pointer variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 13:07:26 +00:00
William S Fulton
f0a4145cb3 Add shared_ptr test to regular test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-14 23:07:30 +00:00
William S Fulton
3d2f9af64d minor comment mods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-14 22:54:27 +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
8b7ec50ab9 Fix test for the extra whitespace in template parameter lists
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10257 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:59:01 +00:00
William S Fulton
4d58a827d1 Add support function for displaying the declaration of a methods. Add special variables for use in %exception: $wrapname $overname $decl $fulldecl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10256 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:48:37 +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
9029bae5e0 Move funcptr.i from being an R only test to a test for all languages. Modify the test to test function pointers with no arguments, which is a problem for R.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10250 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 22:41:34 +00:00
Joseph Wang
1094fcda7b Fix memory overflow. Need to allocate one extra byte for the null
termination for the string


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-12 06:53:35 +00:00
Mark Gossage
9441b672cd [Lua] Added a patch by Torsten Landschoff to fix the unary minus issue
Ran 'astyle --style=kr -2' across lua.cxx to neaten it up

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-11 03:11:18 +00:00
William S Fulton
e9dc2e8dc9 Fix test since #1798728 was backed out
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 20:47:49 +00:00
William S Fulton
1dc594f292 remove multiple inheritance warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10241 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 20:37:30 +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
b9a83129c6 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10233 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-03 21:38:07 +00:00
William S Fulton
df83cef573 Visual C++ 8 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-02 00:52:14 +00:00
William S Fulton
d98658d30b Suppress ecj warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10226 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-31 22:58:43 +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
cc59a22121 Fix ARRAYSOFCLASSES bug reported by Kevin Mills where the changes made to an array element in the C layer are not reflected back into Java
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-25 22:03:12 +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
Mark Gossage
a60c3ca8ca Substantial changes to configure script for detecting lua.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10208 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-14 01:23:36 +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
William S Fulton
17d6c213ac minor tweaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10205 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-13 21:16:12 +00:00
William S Fulton
e89a5119c3 C# exception handling correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10203 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-12 22:43:22 +00:00
William S Fulton
da509bd641 Fix 1832613 - template function pointer typedefs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10195 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-16 20:55:43 +00:00
William S Fulton
0d799435b8 Fix #1798728 - numbers can be passed to functions taking char *
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-12 19:26:22 +00:00
William S Fulton
b79ebf39fa Fix #1819847 %template with just one default template parameter
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-12 19:00:15 +00:00
William S Fulton
4926fb7f46 gcc-4.2 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10185 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-09 13:07:20 +00:00
William S Fulton
8f09d00bb0 Fix template template parameters with default arguments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10179 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-06 22:35:43 +00:00
Mark Gossage
89c3acea19 [lua] Fix a bug in the class hierachy code, where the methods were not propagated,
if the name ordering was in a certain order.
Added new example programs (dual, embed) and runtime tests for test-suite.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-04 09:25:58 +00:00
William S Fulton
575efcdd53 Fix using statements for overloaded methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10176 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-30 22:34:50 +00:00
William S Fulton
a8b523f46d Tweaks to R
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10165 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-22 23:59:37 +00:00
William S Fulton
d741223959 Add preprocessor bug with trailing backslash
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10161 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-20 21:48:20 +00:00
William S Fulton
d953b70751 add missing testcase to test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-20 21:46:57 +00:00
Joseph Wang
8c2b3d9dcd Revert last change
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10139 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-15 02:17:19 +00:00
Joseph Wang
c164443d21 Set to include _wrap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-15 02:07:42 +00:00