Commit graph

1,562 commits

Author SHA1 Message Date
William S Fulton
4b31a3ee50 add C# std::string and wchar typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9621 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-15 23:50:39 +00:00
John Lenz
6dda6f8321 Remove cvsignore files: this is stored on svn:igonre property now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-03 08:28:42 +00:00
Dave Beazley
b08ba52851 Removed nested macros. Simplification.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-30 22:56:12 +00:00
William S Fulton
c5a8c80883 64 bit portability warnings fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-24 22:41:17 +00:00
Mark Gossage
9ba3f0399e update to typemap for object by value, to make it c89 compliant
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-14 05:03:20 +00:00
William S Fulton
5f3de79560 Remove DetachCurrentThread patch from 08/11/2006 - it causes segfaults on some systems
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9553 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-13 22:15:53 +00:00
Olly Betts
e19603cb51 Improve how/when we define Py_ssize_t to match the way the python developers
recommend, so that it works if the user includes headers from something like
numpy which also defines Py_ssize_t.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-12 01:33:58 +00:00
Mikel Bancroft
be61c5347b [allegrocl] see CHANGES.current.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9528 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-07 19:34:18 +00:00
William S Fulton
860daa4499 InvalidCastException added for throwing from unmanaged code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-04 00:21:28 +00:00
William S Fulton
c464743104 directorout const string& fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9521 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-03 21:57:27 +00:00
Art Yerkes
8ad7605f16 Sorry i haven't been here in a while.
camlp4 bug was caught by Michael Ethier <methier@cgr.harvard.edu>

- director.swg: fix a typo
- ocamldec.swg, ocaml.swg: new macros
- ac_compare_version.m4: arty's own more liberally licensed version compare
  autoconf macro.
- configure.in: use version_compare and make swigp4.ml generated by
  configure based on ocaml version.  This is due to an incompatible change
  in camlp4.
- ocaml.cxx: use new return macros in the right places
  (returning non-value)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-03 07:28:42 +00:00
John Lenz
206e5c64af Patch from Chris Shoemaker to clean up some warnings in the guile module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9492 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-30 04:44:46 +00:00
Mark Gossage
2af7e4b447 added support for native methods & member function pointers.
fixed test cases arrays_dimensionless & cpp_basic. Added new example (functor).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-24 06:26:48 +00:00
William S Fulton
24af2d1b11 consistent directout typemaps for all languages - $result used instead of $1 in C# and Java now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-20 22:54:14 +00:00
William S Fulton
cff71a3716 Fixes for %apply char *, char[], char[ANY] to other types, like unsigned char
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9462 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-19 21:35:19 +00:00
William S Fulton
ff75eef478 const size_t& typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9457 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-17 21:43:40 +00:00
John Lenz
56904f30d0 - 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/SWIG@9451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-14 08:19:27 +00:00
Mark Gossage
5149b7b4f3 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/SWIG@9450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-14 07:15:52 +00:00
William S Fulton
1be9e42787 Avoid potential race conditions on the Dispose() method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9444 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 23:10:18 +00:00
William S Fulton
4ad8d458d2 Avoid potential race conditions on the delete() method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 21:36:06 +00:00
Olly Betts
ba768a2ecc Reapply the valid half of my previous patch (which fixes the case I
just added to the testsuite and doesn't break anything else).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 00:04:41 +00:00
William S Fulton
ddec395582 Revert last change, it breaks the test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9437 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-11 22:42:47 +00:00
William S Fulton
51662d55f3 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).
Fix variable name clash in unsigned long long directorin typemap


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-11 22:42:25 +00:00
Olly Betts
74f4fc0b40 Need to use .c_str() not ->c_str() with "const std::string &".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-10 11:44:08 +00:00
Mark Gossage
0ef981882d [Lua] Fix #1569587. The name is now correct
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-06 03:22:21 +00:00
Olly Betts
fa8bf1b870 Make the char we use to instantiate single character constants static, as
PHP doesn't appear to take a copy.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 13:25:38 +00:00
Olly Betts
a8dc94bf85 Fix #1569587 for PHP. Don't use sizeof() except with string literals. Change
some "//" comments to "/* */" for portability.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 12:40:04 +00:00
Mark Gossage
25062ce4e8 Partial Fix #1569587. The type is now correct, but the name is still not correct.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 05:21:02 +00:00
William S Fulton
0982452472 remove last checkin which isn't used anywhere
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 23:27:34 +00:00
Olly Betts
4e9e588769 Fix for handling strings with zero bytes from Stephen Hutsal.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 08:59:19 +00:00
Olly Betts
baabc2b834 Use SWIGPHP rather than SWIGPHP4 since the latter is now only defined when
generating code explicitly for PHP4.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9379 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-29 10:03:50 +00:00
Olly Betts
57a68af35f 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/SWIG@9373 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 06:42:36 +00:00
Olly Betts
be148c61b3 Fix a few more typos in comments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9372 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-28 06:39:07 +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
4b72de7d62 contents moved to director.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-26 21:16:45 +00:00
Olly Betts
cf52954bbb 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/SWIG@9366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-26 07:52:24 +00:00
Olly Betts
a84b5110d7 Fix typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9365 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-26 07:48:20 +00:00
William S Fulton
a6d091ac16 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/SWIG@9364 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 22:02:32 +00:00
Olly Betts
fdd51d4080 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/SWIG@9351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 21:55:30 +00:00
Olly Betts
f88d434d27 Fix typo: "loop though" -> "loop through"
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 17:22:27 +00:00
Olly Betts
2f6a268e55 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/SWIG@9333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 21:39:09 +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
Olly Betts
5baafd12c0 Overload resolution now works in PHP out of the box.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9305 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 06:59:07 +00:00
Olly Betts
4302d73927 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/SWIG@9304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 06:37:50 +00:00
Olly Betts
bb1811ee1f Fix typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9303 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 05:51:00 +00:00
William S Fulton
33ae59c7b0 Bug #1491606 compiler warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-19 21:50:37 +00:00
Mark Gossage
477f02020b 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/SWIG@9294 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-18 05:44:22 +00:00
Hans Oesterholt-Dijkema
c0082db527 * Bug fix in the dynamic loading code of the mzscheme binding
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-17 20:55:27 +00:00
William S Fulton
d6d23465e0 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/SWIG@9289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-16 09:57:26 +00:00
William S Fulton
e238bed36a remove double include of python header file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9282 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-14 22:39:52 +00:00