Commit graph

6,325 commits

Author SHA1 Message Date
Olly Betts
0d1a7f5652 Make sure that SKIP_XXX always gets defined if the user explicitly disables
language xxx (using --without-xxx or --without-alllang).  Fixes bug #1543041.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 16:27:25 +00:00
Olly Betts
0fcb9e106c The test for -lnsl, -linet, and -lsocket was only being run on IRIX, rather
than run everywhere except IRIX.  Rewritten to use AC_SEARCH_LIBS which
should avoid problems on IRIX and any other similar platform.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 16:12:49 +00:00
Olly Betts
3215cc2938 Oops, can't Delete() a String* which we've passed to Setattr.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9342 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 03:44:08 +00:00
Olly Betts
43bb00539b Remove fixed limit on size of class_decl array.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9341 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 23:28:12 +00:00
Olly Betts
d509a60ad5 Remove unused variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9340 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 23:12:15 +00:00
Olly Betts
551738fe8c Use DOH String instead of static char buffers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 23:10:49 +00:00
Olly Betts
df3bf6ba47 Add an explicit "%prec QUESTIONMARK" for the ternary conditional operator
to fix all the shift/reduce conflicts which adding it created.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 23:08:22 +00:00
Olly Betts
7a64509c04 Use "[info sharedlibextension]" instead of trying ".so" then ".dll". All
the other tcl scripts in the test-suite have already been changed in this
way, but this one was missed it seems.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 22:43:48 +00:00
Olly Betts
b84346d0c7 Use != in the example here since >= doesn't work correctly yet.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9336 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 22:40:13 +00:00
Olly Betts
7a88bf91ea Use the ruby interpreter which configure found rather than just assuming it's
called "ruby".


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9335 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 22:39:39 +00:00
Olly Betts
b17fcc97f7 Use Strchr/strchr instead of Strstr/strstr when searching for a single
character.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 22:36:23 +00:00
Olly Betts
6e47d7e5c6 Support building with recent versions of the Ruby 1.9 development branch.
Fixes bug #1560092.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 21:39:09 +00:00
Olly Betts
12636f7bce Eliminate nested class from testcase - that's not what we want to test here!
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 13:02:27 +00:00
Olly Betts
93facf4e21 Be careful to only pass unsigned char values to isalpha(), etc in the hope
this is the cause of bug #1518219 (I can't reproduce it on Linux, but glibc
implements a safety net by making isalpha() etc work on signed char values
too...)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9331 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 10:43:29 +00:00
Olly Betts
4c1b1332a5 Support ternary conditionals (a ? b : c) in constant expressions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 09:35:31 +00:00
Olly Betts
fb93e2ff91 Allow <, >, <=, >=, !=, ==, and % in constant expressions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9329 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 08:30:46 +00:00
Olly Betts
f4bc2780b1 Fix 3 shift/reduce conflicts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 06:23:41 +00:00
William S Fulton
e028f34060 #1506840 testcase - directors with virtual extended methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9327 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 00:00:58 +00:00
William S Fulton
edd5bfeb1a %ignore director fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-22 23:29:34 +00:00
Kevin Ruland
27d9ebb942 Use the correct name of the file in the echo.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9319 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-22 12:41:33 +00:00
Olly Betts
37c304b631 Fix typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-22 05:07:59 +00:00
William S Fulton
e9ed2f8c84 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9317 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 20:40:22 +00:00
William S Fulton
9b8fd2ff04 Director %ignore test case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 20:39:50 +00:00
William S Fulton
5000f2c0a2 Fix crashes when director methods are ignored
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 20:31:44 +00:00
William S Fulton
995c8dbbcb fixes for make clean and remove the private list of test files to use the common.mk one (untested)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9314 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 20:22:10 +00:00
William S Fulton
a3831af152 fixes for make clean
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9313 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 20:21:24 +00:00
William S Fulton
375ab4eb93 Fix out of source builds #1544718
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9311 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 20:14:53 +00:00
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