William S Fulton
79eb884747
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/SWIG@9391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 22:44:12 +00:00
Olly Betts
25636f132f
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/SWIG@9389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 16:58:16 +00:00
Olly Betts
04b6cd7f92
Fix 2 compiler warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 15:03:45 +00:00
Marcelo Matus
5dc2ce0c73
Fix 'property' issue reported in #1471039
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9386 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 03:37:13 +00:00
Olly Betts
ec5c4bc6f8
More fixes for double generation of methods.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-02 19:05:55 +00:00
Olly Betts
ad6f144dc9
Sort out double generation of methods in the proxy case.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9384 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-02 07:57:56 +00:00
Surendra Singhi
5f2930a9b3
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/SWIG@9381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-30 18:57:32 +00:00
William S Fulton
fa40d8f98b
Fix #1508327 - Overloaded methods are hidden when using -fvirtual optimisation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9375 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 21:52:20 +00:00
Olly Betts
675e83dc22
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/SWIG@9371 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 02:07:19 +00:00
William S Fulton
95958855cf
More %ignore director fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-27 21:24:44 +00:00
William S Fulton
da079c2d2b
Fix #1505591 Throwing exceptions in extended directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 21:47:08 +00:00
William S Fulton
0919c0de1e
Remove debug. Fix #1505591 Throwing exceptions in extended directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 21:46:42 +00:00
Olly Betts
647678be07
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/SWIG@9355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 02:32:45 +00:00
Olly Betts
cc52ebad47
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/SWIG@9354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 23:39:30 +00:00
Olly Betts
0d678283ad
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/SWIG@9353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 22:10:03 +00:00
Olly Betts
7ae5628087
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/SWIG@9346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 17:12:14 +00:00
Olly Betts
8904cc86c1
Use DOH String instead of static char buffers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 23:10:49 +00:00
Olly Betts
1e19f11fdc
Use Strchr/strchr instead of Strstr/strstr when searching for a single
...
character.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 22:36:23 +00:00
William S Fulton
d096cc1613
%ignore director fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-22 23:29:34 +00:00
William S Fulton
8da327e8f4
Fix crashes when director methods are ignored
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 20:31:44 +00:00
Olly Betts
7f2a849617
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/SWIG@9307 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 11:00:51 +00:00
Olly Betts
9eb77c5800
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/SWIG@9302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 05:32:22 +00:00
Olly Betts
0915d45c2c
Use NewStringEmpty() rather than NewString("").
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 02:00:42 +00:00
Olly Betts
93d3c4b6d2
Use the DOH String instead of a static char array.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-19 18:13:53 +00:00
Olly Betts
f0e3702a26
Remove fixed limit on number of command line options.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-16 16:43:15 +00:00
Olly Betts
6768f5d255
Remove unused variable "var_name"
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-16 11:29:06 +00:00
William S Fulton
f0d1d772fa
- 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/SWIG@9275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:55:24 +00:00
Olly Betts
44eaee3a01
Apply patch from SF bug: [ 1466086 ] PHP namespace clash - ErrorCode
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-05 16:18:01 +00:00
Olly Betts
b42168cf6e
[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/SWIG@9260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-29 02:29:16 +00:00
Joseph Wang
9b7572a16f
add methods call and deref for functor and dereferencing operators
...
add hash to make sure that each method only appears once
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9257 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-21 22:48:58 +00:00
John Lenz
e59a47f6b1
Add feature:constasvar to guile module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-19 23:32:56 +00:00
Surendra Singhi
3effced22a
added preliminary C++ support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-13 13:22:11 +00:00
William S Fulton
e236e10bf7
Fix for directors and non jvm created threads - the jvm would not close
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9245 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-11 22:41:12 +00:00
William S Fulton
f73d9274b9
workaround indent beautifier problem
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9239 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-10 21:36:59 +00:00
William S Fulton
c20e517238
Fix protected director methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-10 21:31:41 +00:00
William S Fulton
7b62956e29
indent beautify parsing problem fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-07 21:19:17 +00:00
Joseph Wang
498b8ec576
remove extern symbol that was causing errors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-29 06:29:10 +00:00
Mikel Bancroft
2709b65d83
07/25/2006: mutandiz
...
[allegrocl]
more additions to std::string, some tweaks and small bug fixes
-nocwrap mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-25 22:59:16 +00:00
Mikel Bancroft
f2ff50e60e
07/19/2006: mutandiz
...
[allegrocl]
- Add std_string.i support.
- Add newobject patch submitted by mkoeppe (thanks!)
- Fix type name mismatch issue for nested type definitions.
specifically typedefs in templated class defns.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-19 21:53:07 +00:00
William S Fulton
b012ddade9
Fix library paths
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-17 21:57:10 +00:00
Mark Gossage
0e759dae5a
addition to support the -external-runtime command line option
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-17 09:33:10 +00:00
Olly Betts
afa9552b5c
Fix the easiest warnings in the generated code.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-11 04:53:33 +00:00
Hans Oesterholt-Dijkema
b593492d03
* mzscheme code can now dynamically load libraries, that are needed
...
at runtime. This allows for code to be generated at some site, and
distributed without the need for SWIG.
The distribution needs only the header filesfor which the code has been
generated. Linking is done at runtime, by loading the dynamic libraries.
Functions are resolved when needed.
Though somewhat inefficient, it provides for a way to distribute code
or binaries that are independent of the version of the installed libraries,
which comes in especially handy for e.g. binding against Gtk.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9211 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-09 17:10:05 +00:00
Surendra Singhi
255819eaa8
Cleaned some old code, allow overloading.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-09 16:47:04 +00:00
William S Fulton
d9d1a7d5c4
ensure $symname is suitably expanded
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-05 21:26:10 +00:00
John Lenz
b001bf16a5
Chicken: Add the %feature("constasvar"), which exports constants as variables instead of functions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9197 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-05 01:54:32 +00:00
William S Fulton
32abf157f7
new explicitcall feature
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9188 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-04 21:00:55 +00:00
William S Fulton
a9d5f49c4a
fix compiler warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-29 22:03:56 +00:00
William S Fulton
f9654e63e9
-help consistent with other languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9180 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-29 21:52:44 +00:00
William S Fulton
38dc90184b
Authors go in the readme file and add missing cvs $
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9179 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-29 21:25:22 +00:00