Marcelo Matus
a8d7866a36
Fix %ignore + %copyctor as reported in #1486281
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9396 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 03:29:33 +00:00
William S Fulton
7652a81cf5
remove unused code which won't work after the director vtable mods to use a List instead of a Hash
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 23:00:12 +00:00
William S Fulton
761373ad42
Directors are output in the order in which they are declared in the C++ class rather than in some pseudo-random order.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 22:52:31 +00:00
William S Fulton
1596cf1753
Fix uncompileable code when overloaded methods are used with the director:except feature
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 22:52:15 +00:00
William S Fulton
637a4c6ba7
Directors are output in the order in which they are declared in the C++ class rather than in some pseudo-random order.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 22:44:12 +00:00
Olly Betts
2cc21878aa
Tidy up descriptions of destructors.
...
Fix comments for handles for simple types.
Omit superfluous "else" when generating property getter and setter handling
code, which produces smaller generated source code, and simplifies the
generating code.
With -php5, if -prefix isn't specified, don't prefix classes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 16:58:16 +00:00
Olly Betts
1ed6e404f4
Fix 2 compiler warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 15:03:45 +00:00
Marcelo Matus
716f4d5f6f
Fix 'property' issue reported in #1471039
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9386 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 03:37:13 +00:00
Olly Betts
199d860862
More fixes for double generation of methods.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-02 19:05:55 +00:00
Olly Betts
b1368c30cb
Sort out double generation of methods in the proxy case.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9384 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-02 07:57:56 +00:00
Surendra Singhi
cab11c1fa2
Patch 1565413 (bitfield support)
...
Patch 1562280 (vararg support)
Patch 1561115 (C expression to Lisp) + enhanced support for most operators.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-30 18:57:32 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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