Commit graph

13,535 commits

Author SHA1 Message Date
Mark Gossage
560b18eb3f Small update to documentation in Typemaps.html, to warn about use of local variables in typemaps for multiple types.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-30 03:40:37 +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
87394a2daf 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@10219 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-25 22:01:55 +00:00
Mark Gossage
09113cc0bf [lua] updated configure script yet again
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10218 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-24 06:16:45 +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
5ad2a3ab0c Fix formatting of error messages for overloaded functions that use templates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10216 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-21 22:31:37 +00:00
William S Fulton
3ac369d8d0 Improve output formatting of generated code for overloaded methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-21 22:20:30 +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
Gonzalo Garramuno
c7ec8c691d Made set_err false by default, as that gives a better overloaded
message.  Unfortunately, in ruby we cannot concatenate exception
messages as in python.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10213 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-19 04:41:46 +00:00
William S Fulton
bc94eeb6a0 Add 'directorinattributes' and 'directoroutattributes' typemap attributes for the imtype typemap. These should contain C# attributes which will be generated into the C# director delegates methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-18 23:35:49 +00:00
Olly Betts
ddb7c73411 Fix handling of byte value 255 in input files on platforms where
char is signed (it was getting mapped to EOF).  Fixes SF#1518219.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10211 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-18 19:51:46 +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
7506a194c0 Substantial changes to configure script for detecting lua.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10209 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-14 01:27:50 +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
d3daec2b16 More SWIG_NO_DELETER macros for Python / UTL languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-13 22:14:41 +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
4c335c9422 fix possible null pointer deref - bug 1863647
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10204 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-12 23:06:06 +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
a91c3e9120 minor typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10202 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-12 22:39:39 +00:00
William S Fulton
1be894e058 Fix PyArg_ParseTuple for swigregister method
Fix some typos in -help

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10201 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-12 22:37:11 +00:00
William S Fulton
652a8456ea Add link to Hans Boehm's Finalization paper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10200 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-12 22:33:14 +00:00
Gonzalo Garramuno
b673832720 Added more backwards compatibility macros from ruby1.9.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-04 03:47:55 +00:00
Gonzalo Garramuno
6120c93fc6 Added a couple of new macros used in ruby1.9.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10198 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-02 21:41:50 +00:00
Olly Betts
7b89801c80 Fix "declarations mixed with code" warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10197 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-22 18:36:06 +00:00
William S Fulton
54e6571299 Backed out #1798728 due to regression pointed out by Josh Cherry on swig-user
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-16 21:51:10 +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
afc303a8ec Add some comments. Add extra assertions in SwigType_parmlist
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-16 20:42:44 +00:00
William S Fulton
27b7d1de5b Swig_print_node truncates to 80 characters now instead of 40
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-16 20:37:25 +00:00
William S Fulton
07bdd8bd18 Fix #1632625 - Compilation errors on Visual C++ 6 when using directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-12 20:42:14 +00:00
William S Fulton
262561ac53 Fix #1798728 - numbers can be passed to functions taking char *
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-12 20:39:05 +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
Mark Gossage
a84f3dfa68 [lua] update lua.html
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10188 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-12 01:14:44 +00:00
Mark Gossage
75fef26210 [lua] update lua.html
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10187 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-12 01:14:21 +00:00
William S Fulton
521059242c gcc-4.2 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10186 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-09 22:27:38 +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
4c477d5e09 Apply patch #1838248 from Monty Taylor for vpath builds of SWIG
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10184 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-09 12:34:25 +00:00
William S Fulton
75c882d074 update from latest autotools (automake-1.10)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10183 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-08 00:36:59 +00:00
William S Fulton
211ee3b2ca Fix gcc-4.2 warnings for Lua
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10182 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-08 00:29:13 +00:00
William S Fulton
254572afa4 Lua 5.1 improvements for Ubuntu (it still does not detect lua5.1.so
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-08 00:23:06 +00:00
William S Fulton
7c9ece71ad Fix gcc-4.2 warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10180 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-08 00:22:03 +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
William S Fulton
e024efafce Correct display of templates in warning message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10178 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-05 00:19:41 +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
Olly Betts
84dc1cc4f6 Adjust most external references to say "PHP" not "PHP4". However, it's still
"--with-php4" for now.  Prefer php5 to php to php4 in autodetection.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10175 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-28 19:57:57 +00:00
Olly Betts
8dabd96606 PHP4 reaches EOL at the end of 2007, so remove PHP4 specific entry from the
todo list.  Tweak message about lack of multiple inheritance to say "PHP"
rather than "Php4".


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-28 00:46:53 +00:00
William S Fulton
8af5520efc Fix another link
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10172 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-23 22:35:20 +00:00
William S Fulton
585dbeef9c Fix some links
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10171 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-23 22:34:08 +00:00