Commit graph

6,298 commits

Author SHA1 Message Date
Olly Betts
353a0a59cc Fix a SEGV when processing an interface file which pulls a template
from one nested namespace into another with "using" (SF bug #1218884).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9310 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 11:52:56 +00:00
Olly Betts
ea75f3a1c3 Allow templates to be instantiated using negative numbers and constant
expressions (which fixes SF bug #956282 and several others).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9309 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 11:20:52 +00:00
Olly Betts
acb86bfafa Fix testsuite to run under PHP after recent PHP testsuite changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9308 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 11:15:27 +00:00
Olly Betts
f4a08d4d44 Revert the "automatic -noproxy for C code" change (for now at least) - the
testsuite contains examples with proxy classes for C code, so it's not as
obviously correct a change as I had thought.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9307 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 11:00:51 +00:00
Olly Betts
fa0a9c74c1 Treat a nested class definition as a forward declaration rather
than ignoring it completely, so that we generate correct code for
passing opaque pointers to the nested class (fixes SF bug #909387).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9306 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 08:04:24 +00:00
Olly Betts
3dc5e0e91a Overload resolution now works in PHP out of the box.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9305 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 06:59:07 +00:00
Olly Betts
29098f6ad2 SWIG_TypeCheck() takes a const char * now, so don't cast argument passed
to char *!


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 06:37:50 +00:00
Olly Betts
4ad3708693 Fix typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9303 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 05:51:00 +00:00
Olly Betts
4d4792dc5e Previously -noproxy was required when wrapping some C code
to avoid SWIG generating new_XXX methods.  Now proxy classes are
only ever enabled when wrapping C++ code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 05:32:22 +00:00
Olly Betts
d4576c1ca6 Fix the PHP Examples to build and run like the other languages do.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 05:28:27 +00:00
Olly Betts
330df5567b Use NewStringEmpty() rather than NewString("").
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 02:00:42 +00:00
William S Fulton
5ee69cd80c Bug #1491606 compiler warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-19 21:50:37 +00:00
Olly Betts
66c9ca9520 Remove an unused temporary buffer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-19 18:22:11 +00:00
Olly Betts
3403303a40 Use the DOH String instead of a static char array.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-19 18:13:53 +00:00
Mark Gossage
05fd4e3fea updated to changes file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-18 05:45:46 +00:00
Mark Gossage
5aef673f75 fix on swiginit.swg, has been reported to crash on several test cases
found and fixed problem in imports under python (mingw)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9294 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-18 05:44:22 +00:00
Hans Oesterholt-Dijkema
f309ae3953 * Bug fix in the dynamic loading code of the mzscheme binding
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-17 20:55:27 +00:00
Olly Betts
f19b146f00 Remove fixed limit on number of command line options.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-16 16:43:15 +00:00
Olly Betts
445f87af3d Remove unused variable "var_name"
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-16 11:29:06 +00:00
William S Fulton
c6908beb16 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-16 09:57:54 +00:00
William S Fulton
3401e005f1 Patch from Michal Marek for Python 2.5 to fix 64 bit array indexes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-16 09:57:26 +00:00
William S Fulton
53a771ffc9 Bug #1472089 - clearer first example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 23:05:36 +00:00
William S Fulton
ce02b53196 clearer example - patch #1524059
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9287 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 22:14:34 +00:00
William S Fulton
edaadb60e7 links added - patch #1524088
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9286 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 22:07:28 +00:00
William S Fulton
f83368cfd8 links added - patch #1524096
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9285 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 22:03:09 +00:00
William S Fulton
daa291233c links added - patch #1524076
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 22:00:56 +00:00
Olly Betts
b5812f4c30 Fix a few typos in comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9283 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 19:22:15 +00:00
William S Fulton
ec0b9ecfdd remove double include of python header file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9282 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-14 22:39:52 +00:00
William S Fulton
736c2c3b3c *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9281 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 21:19:00 +00:00
William S Fulton
9cbce5f577 cleanup Mono debris
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9280 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 21:18:43 +00:00
William S Fulton
690b049762 - explicitcall feature removed.
- Instead of using the swig_up flag in each director method (Python, Ruby, Ocaml) to indicate
whether the explicit C++ call to the appropriate base class method or a normal
polymorphic C++ call should be made, the new approach makes one of these calls
directly from the wrapper method.
- Java/C# recursive director method calls fixed (no need for explicitcall feature to solve this now)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9279 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 21:16:34 +00:00
William S Fulton
915d85bbbc cleanup Mono debris
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9278 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 21:05:16 +00:00
William S Fulton
060dd7f6bd director base method call tests to check recursive director method problem has gone away
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9277 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:58:09 +00:00
William S Fulton
ee13e546eb same Java class names used in different tests breaking the test fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9276 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:56:46 +00:00
William S Fulton
38a17f30fe - explicitcall feature removed.
- Instead of using the swig_up flag in each director method (Python, Ruby, Ocaml) to indicate
whether the explicit C++ call to the appropriate base class method or a normal
polymorphic C++ call should be made, the new approach makes one of these calls
directly from the wrapper method.
- Java/C# recursive director method calls fixed (no need for explicitcall feature to solve this now)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:55:24 +00:00
William S Fulton
c51284fdbf remove DOS CR/LF in mgossage entries
Add in explicitcall removal and director recursive call changes


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9274 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:54:12 +00:00
William S Fulton
7d1d4f5f32 default arg fixes for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:47:05 +00:00
William S Fulton
49316589b9 - explicitcall feature removed.
- Instead of using the swig_up flag in each director method (Python, Ruby, Ocaml) to indicate
whether the explicit C++ call to the appropriate base class method or a normal
polymorphic C++ call should be made, the new approach makes one of these calls
directly from the wrapper method.
- Java/C# recursive director method calls fixed (no need for explicitcall feature to solve this now)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:45:31 +00:00
William S Fulton
3a50420462 more directors and default arg tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9271 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:36:44 +00:00
William S Fulton
c725861fd0 missing %feature(director)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:35:49 +00:00
William S Fulton
b29698428c explicitcall feature removed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9269 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:34:05 +00:00
William S Fulton
32eacc3fb3 Remove R explicit workaround
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:32:10 +00:00
William S Fulton
d66494c1b1 ruby warning suppression
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9267 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:31:42 +00:00
Mark Gossage
7236bc3bb3 added support for multiple modules & multiple interpreters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-11 06:55:38 +00:00
Mark Gossage
7c475898c2 added support for multiple modules & multiple interpreters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-11 06:49:47 +00:00
Mark Gossage
db5bb83440 added support for passing function pointers as well as native lua object
into wrappered function
added example funcptr3


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-11 06:45:03 +00:00
Olly Betts
6bf67f2412 Fix a few typos in comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9263 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-05 16:38:45 +00:00
Olly Betts
3a5fb61abe Apply patch from SF bug: [ 1466086 ] PHP namespace clash - ErrorCode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-05 16:18:01 +00:00
William S Fulton
a88cd43860 swig4d added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-01 22:47:37 +00:00
Olly Betts
b4f433d564 [php] Move constant initialisation from RINIT to MINIT to fix a
warning when using Apache and mod_php.  We only need to create
PHP constants once when we're first initialised, not for every HTTP
request.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-29 02:29:16 +00:00