Commit graph

2,194 commits

Author SHA1 Message Date
Mark Gossage
c42329ae63 Removed #include <string> & <iostream> which stopped compilation under mingw
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-18 02:37:48 +00:00
William S Fulton
fd9fd64647 better English in messages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9458 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-17 21:47:52 +00:00
William S Fulton
cc56520503 javabase/csbase typemaps mods to support morphing C++ abstract base classes into Java/C# interfaces
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-16 20:11:30 +00:00
Surendra Singhi
c9a9af9c9c Patch 1560983.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9452 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-15 12:04:39 +00:00
John Lenz
a315c315fb - Fix SF bug 1573892
- Minor change to chicken to make it work with version 2.5rc1
- add externaltest to chicken and guile modules


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-14 08:19:27 +00:00
Mark Gossage
f073625488 fixed several test cases
added long long support
changed typemaps to use SWIG_ConvertPtr rather than SWIG_MustGetPointer
started spliting lua.swg into smaller parts to make it neater


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-14 07:15:52 +00:00
William S Fulton
dcd38c5f02 Better control on what the C# base class is (overriding the real C++ base class with the csbase 'replace' typemap attribute)
Reorganise the code that implements namespaces


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9447 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-13 23:47:01 +00:00
William S Fulton
8583eafef9 Better control on what the java base class is (overriding the real C++ base class with the javabase 'replace' typemap attribute)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9446 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-13 23:44:32 +00:00
William S Fulton
ea6f44edd2 Avoid potential race conditions on the Dispose() method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9444 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 23:10:18 +00:00
William S Fulton
2780b5ee3b Avoid potential race conditions on the delete() method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 21:36:06 +00:00
William S Fulton
32a59010e4 fix parentnode for %extend methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 19:47:24 +00:00
William S Fulton
bcfab911bd Fix #1505594 director objects not returned as director objects in %extend methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9441 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 19:42:21 +00:00
Olly Betts
5090f60fa8 Fix "_swig_property" fix to work with Python 2.1 as well.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-11 23:32:28 +00:00
William S Fulton
e4e5063d3c Fix #1238798 - Directors using unsigned long long or any other type
marshalled across the JNI boundary using a Java class (where the jni typemap
contains jobject).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-11 22:39:54 +00:00
Olly Betts
385eb1d1f5 Fix bug which effectively double-Delete()-ed a String *.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9428 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-10 19:32:33 +00:00
William S Fulton
eb415e97db Fix buffer overrun reported by M Edward Borasky
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9426 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-08 21:55:42 +00:00
Olly Betts
a3efb5c4f7 Define WARN_PHP4_UNKNOWN_PRAGMA.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9425 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-08 18:14:52 +00:00
William S Fulton
5b549281be fix include within a structure - #1162194
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9423 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-06 23:02:45 +00:00
William S Fulton
cda4931255 Fix #1450661. String_seek truncating strings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-06 21:48:00 +00:00
William S Fulton
9b9c0cf972 fix declaration to match implementation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-06 21:39:51 +00:00
Olly Betts
f42f9ce303 Covert a stderr message to a proper SWIG warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9418 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-06 11:08:28 +00:00
Olly Betts
63a673050a Clean up the old disabled "script accessible destructor" code. I don't think
we'll want it again, but if we do we can retrieve it from CVS.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-06 10:30:44 +00:00
Mark Gossage
be9aaba2b2 [Lua] Fix #1569587. The name is now correct
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-06 03:22:21 +00:00
William S Fulton
f62ef6242d Fix virtual conversion operators for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 17:34:08 +00:00
William S Fulton
055978442b Fix some bugs since change of vtable to use List instead of Hash
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9409 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 17:32:47 +00:00
Olly Betts
7c64a5ccaa Eliminate $ext in the generated php wrapper (namespace pollution bad!)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 15:53:07 +00:00
Olly Betts
a85443f0cc The wrapper function filtering should only happen for -php4 without -noproxy.
Further simplify the property getter/setter code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 13:54:39 +00:00
William S Fulton
efb1892b33 director error message fixes to correctly generate templated class names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9401 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 11:01:31 +00:00
Olly Betts
767e625599 Back out fix for #1474463 since the problems the fix causes are worse than
the problem fixed.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 04:57:12 +00:00
Olly Betts
a0800f4af7 Remove some dead code; tidy up some formatting.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 04:52:51 +00:00
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