Commit graph

2,011 commits

Author SHA1 Message Date
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
William S Fulton
b6da068213 remove execute bit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 23:29:55 +00:00
William S Fulton
87cf2f225b remove execute bit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10134 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 23:29:41 +00:00
William S Fulton
aefe91131e more R cleaning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 23:19:34 +00:00
William S Fulton
30537e161d ensure extra source files are compiled
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 23:17:05 +00:00
William S Fulton
4228a53ac1 no longer add _wrap to module name when generating the dll
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10131 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 22:50:59 +00:00
William S Fulton
083efd15ca Rename dll/shared object name to be the same as the module name for R - _wrap is no longer postfixed to the name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10130 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 22:34:10 +00:00
William S Fulton
5fd4c72220 Rename dll/shared object name to be the same as the module name for R - _wrap is no longer postfixed to the name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 22:33:45 +00:00
William S Fulton
3de787f237 Add parallel make support for R test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 22:02:59 +00:00
William S Fulton
8eae1cfb5a Fix warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10121 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 21:42:31 +00:00
William S Fulton
35c07c0b67 fix SWIG warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 21:38:35 +00:00
William S Fulton
854f9a3ed3 Add Windows PATH for test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10116 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-12 22:12:47 +00:00
William S Fulton
f41964f8fd more cleaning for R
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 23:30:48 +00:00
William S Fulton
b07b947aac VC++ support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10113 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 23:26:47 +00:00
William S Fulton
dd80fda7bf changes for generated .R file name change
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 20:41:11 +00:00
William S Fulton
7bbf5d66d1 fix typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 18:53:54 +00:00
Joseph Wang
783ca15e4e Make clean work better
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10107 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 05:05:15 +00:00
Joseph Wang
414c6db78d Remove broken insert snamespace
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10106 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 04:45:19 +00:00