Commit graph

6,359 commits

Author SHA1 Message Date
William S Fulton
ef1e6d4696 test #1508327 - Overloaded methods are hidden when using -fvirtual optimisation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9378 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 22:02:03 +00:00
William S Fulton
8d6f192be6 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9377 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 22:00:49 +00:00
William S Fulton
7e27fd8fe1 testcase for -fvirtual
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 21:53:23 +00:00
William S Fulton
b80933a6d0 Fix #1508327 - Overloaded methods are hidden when using -fvirtual optimisation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9375 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 21:52:20 +00:00
Olly Betts
d46a4e1195 Use isxdigit().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9374 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 06:45:46 +00:00
Olly Betts
cb8dd113f2 Register string constants using REGISTER_STRINGL_CONSTANT instead of
REGISTER_STRING_CONSTANT since (a) this will cope with embedded zeros
and (b) it'll be fractionally faster.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9373 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 06:42:36 +00:00
Olly Betts
1249f48ce0 Fix a few more typos in comments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9372 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 06:39:07 +00:00
Olly Betts
16a603861c Just generate the wrapper with items and ST(%d) rather than trying to
search and replace argc and argv[%d] afterwards.  Fixes bugs
#1529249, #1566718 (and really fixes #1228480).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9371 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 02:07:19 +00:00
William S Fulton
22089355d6 More %ignore director fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-27 21:24:44 +00:00
Olly Betts
9991851584 More typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9369 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-27 17:26:22 +00:00
Olly Betts
e68a83074e Fix lots of typos in the manual.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9368 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-27 17:25:04 +00:00
William S Fulton
715981befc contents moved to director.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-26 21:16:45 +00:00
Olly Betts
d0f40fc66e Use SWIG_GE, SWIG_LE, etc instead of >=, <= since the latter cause
problems when used as template parameters.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-26 07:52:24 +00:00
Olly Betts
83be79909a Fix typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9365 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-26 07:48:20 +00:00
William S Fulton
6260b2ed8e director_h.swig removed and merged back into director.swg as it used to be to fix #1505591
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9364 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 22:02:32 +00:00
William S Fulton
85e6fbc84a various %extend with director tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 21:59:37 +00:00
William S Fulton
9306989787 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9362 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 21:48:07 +00:00
William S Fulton
12c993c11f Fix #1505591 Throwing exceptions in extended directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 21:47:08 +00:00
William S Fulton
22c5b57104 Remove debug. Fix #1505591 Throwing exceptions in extended directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 21:46:42 +00:00
William S Fulton
1b7eb36ae5 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9359 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 20:19:06 +00:00
William S Fulton
762fcc7eb2 fix virtual operators #1056100
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 20:18:30 +00:00
William S Fulton
9669ab5604 test virtual operators
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 20:15:24 +00:00
Olly Betts
7e12f2dd73 Correct function name in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 03:32:12 +00:00
Olly Betts
9fab17331a Apply patch #1561898 - use the mangled C name in $action when using
feature shadow.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 02:32:45 +00:00
Olly Betts
429d55824d Fix handle of constant expressions containing character literals (e.g. 'x').
Fixes bug #1474463.

Fix type of result of << and >> to match C rules (the type depends only on
the left argument).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 23:39:30 +00:00
Olly Betts
493cedbff9 Replace "::" with "__" in the module name when using it for a C macro.
Fixes bug #1528354.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 22:10:03 +00:00
Olly Betts
6a6610c850 Removed bogus semicolon after method definition.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 21:56:58 +00:00
Olly Betts
af0e3e86e6 Fix Tcl typemaps to handle unsigned long > LONG_MAX and unsigned long long
> LONG_LONG_MAX when converting values from Tcl to C/C++.  Fixes bug
#1533266.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 21:55:30 +00:00
Olly Betts
7e8f1dd8b1 Don't accidentally create a "<:" token (which is the same as "[" in C++).
Fixes bug # 1521788.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 20:37:51 +00:00
Olly Betts
1bb2bad0ad Fix typo in comment.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 19:57:46 +00:00
Olly Betts
4b497408aa A few comment tweaks.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 17:33:32 +00:00
Olly Betts
029c7b4e6d Fix typo: "loop though" -> "loop through"
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 17:22:27 +00:00
Olly Betts
4b6ccd8bbd Only change _get and _set at the end of the method name (fixes bug #1545078)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 17:12:14 +00:00
Olly Betts
af038c7126 Fix String_delslice() to update s->sp and s->lines correctly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9345 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 17:09:31 +00:00
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