https://swig.svn.sourceforge.net/svnroot/swig/trunk ................ r10487 | wsfulton | 2008-05-21 23:15:52 +0100 (Wed, 21 May 2008) | 1 line Apply patch from Petr Viktorin to fix some recent regressions in CFFI/CLOS ................ r10498 | talby | 2008-05-26 21:09:56 +0100 (Mon, 26 May 2008) | 2 lines run test cases in the Perl set by the --with-perl5 configure option. ................ r10499 | talby | 2008-05-26 22:04:06 +0100 (Mon, 26 May 2008) | 3 lines The perl5 minherit runtime test will work better if the classes are actually built under SWIGPERL. ................ r10503 | wsfulton | 2008-05-28 10:44:37 +0100 (Wed, 28 May 2008) | 1 line Fix variable wrappers when using -proxy. Patch from Jan Jezabek ................ r10504 | bhy | 2008-05-28 18:27:48 +0100 (Wed, 28 May 2008) | 2 lines Fixed SF #1971977: typo in pycontainer.swg (related to -extranative option) ................ r10506 | wsfulton | 2008-05-29 01:45:28 +0100 (Thu, 29 May 2008) | 1 line Fix variable wrappers when using -noproxy ................ r10508 | bhy | 2008-05-30 14:53:33 +0100 (Fri, 30 May 2008) | 1 line Fixed SF #1976978, apply the macros for primitive types to std::wstring ................ r10511 | olly | 2008-05-30 17:11:27 +0100 (Fri, 30 May 2008) | 4 lines Fix typo in handling of /*@SWIG[...]*/ comments in the scanner. This just meant we were only actually looking for /*@SWI at the start of the comment, so was pretty harmless in practice. ................ r10515 | wsfulton | 2008-06-02 21:10:40 +0100 (Mon, 02 Jun 2008) | 1 line Fix samename testcase for c# and java ................ r10516 | wsfulton | 2008-06-02 21:15:39 +0100 (Mon, 02 Jun 2008) | 1 line Fix enums when using -noproxy ................ r10518 | bhy | 2008-06-07 12:20:07 +0100 (Sat, 07 Jun 2008) | 4 lines Added a test case for keyword renaming. Now it works for Python in SWIG's -c++ mode, but in C mode it doesn't work! (you can try with make keyword_rename.ctest) ................ r10519 | bhy | 2008-06-07 14:40:51 +0100 (Sat, 07 Jun 2008) | 1 line fixed keyword_rename.ctest tese case, caused by a mistake in Swig/naming.c ................ r10527 | mgossage | 2008-06-17 03:57:15 +0100 (Tue, 17 Jun 2008) | 1 line [lua] bugfix 1938142 (bool& and bool* support) ................ r10530 | wsfulton | 2008-06-19 21:02:13 +0100 (Thu, 19 Jun 2008) | 1 line Add R keyword support. Rename keywords for successful compilation of Java and C# code. More consistent keyword warnings across the different languages. ................ r10531 | wsfulton | 2008-06-19 22:15:48 +0100 (Thu, 19 Jun 2008) | 1 line add complete list of R reserved words ................ r10536 | wsfulton | 2008-06-21 12:35:33 +0100 (Sat, 21 Jun 2008) | 1 line better terminology for static types ................ r10537 | wsfulton | 2008-06-21 12:42:48 +0100 (Sat, 21 Jun 2008) | 1 line remove raise as keyword test- it conflicts with _raise in LIBCMT on windows ................ r10539 | wsfulton | 2008-06-21 16:21:29 +0100 (Sat, 21 Jun 2008) | 1 line Lua example warning removal fixes for vc++ ................ r10540 | wsfulton | 2008-06-21 16:23:02 +0100 (Sat, 21 Jun 2008) | 1 line Remove some vc++ /W4 warnings ................ r10541 | wsfulton | 2008-06-21 17:04:55 +0100 (Sat, 21 Jun 2008) | 1 line minor vc++ /W4 warning fixes ................ r10542 | wsfulton | 2008-06-21 20:07:51 +0100 (Sat, 21 Jun 2008) | 1 line 'byte' is already used in Ruby on windows, so use another keyword ................ r10543 | wsfulton | 2008-06-21 21:45:32 +0100 (Sat, 21 Jun 2008) | 1 line Fix crashing in the Ruby reject method in the STL wrappers ................ r10544 | wsfulton | 2008-06-21 21:48:28 +0100 (Sat, 21 Jun 2008) | 1 line Fix crashing in the Ruby reject method in the STL wrappers ................ r10545 | wsfulton | 2008-06-21 21:49:10 +0100 (Sat, 21 Jun 2008) | 1 line remove unnecessary variable int the char **STRING_ARRAY out typemap ................ r10546 | wsfulton | 2008-06-21 22:07:49 +0100 (Sat, 21 Jun 2008) | 1 line Fix Ruby C++ example dependencies in dsp files ................ r10547 | wsfulton | 2008-06-21 23:25:36 +0100 (Sat, 21 Jun 2008) | 1 line Fix unused parameter warnings in python when using gcc's -W -Wall options ................ r10548 | wsfulton | 2008-06-21 23:26:35 +0100 (Sat, 21 Jun 2008) | 1 line Fix virtual destructor ................ r10549 | wsfulton | 2008-06-22 00:25:20 +0100 (Sun, 22 Jun 2008) | 1 line various warning fixes ................ r10550 | wsfulton | 2008-06-22 01:09:11 +0100 (Sun, 22 Jun 2008) | 1 line Another fix for the JVM hanging on exit problem when using directors ................ r10551 | wsfulton | 2008-06-22 01:09:51 +0100 (Sun, 22 Jun 2008) | 1 line documentation sections update ................ r10552 | wsfulton | 2008-06-22 01:18:10 +0100 (Sun, 22 Jun 2008) | 1 line more docs on defining macros for the thread hanging problem ................ r10558 | wsfulton | 2008-06-22 22:30:20 +0100 (Sun, 22 Jun 2008) | 1 line fix unused parms in last commit for C code ................ r10559 | wsfulton | 2008-06-22 23:12:43 +0100 (Sun, 22 Jun 2008) | 1 line Suppress unused methods warning for VC++ ................ r10560 | wsfulton | 2008-06-23 21:26:07 +0100 (Mon, 23 Jun 2008) | 1 line fix partialcheck-test-suite and parallel make for r, chicken, tcl and php ................ r10561 | wsfulton | 2008-06-23 21:39:41 +0100 (Mon, 23 Jun 2008) | 1 line correct message display when running the partialcheck-test-suite make target ................ r10562 | wsfulton | 2008-06-23 22:14:53 +0100 (Mon, 23 Jun 2008) | 1 line fix typo ................ r10563 | olly | 2008-06-23 22:23:54 +0100 (Mon, 23 Jun 2008) | 3 lines Fix bad use of Python API (untested, since I can't even compile this code on x86-64!) ................ r10564 | olly | 2008-06-23 23:58:03 +0100 (Mon, 23 Jun 2008) | 3 lines [PHP] Fix segfault when wrapping a non-class function marked with %newobject (testcase char_strings). ................ r10565 | olly | 2008-06-24 01:27:34 +0100 (Tue, 24 Jun 2008) | 3 lines [PHP] Fix assertion failure when handling %typemap(in,numinputs=0) (testcase ignore_parameter). ................ r10566 | olly | 2008-06-24 01:33:08 +0100 (Tue, 24 Jun 2008) | 2 lines [PHP] Fix typemap_namespace.i to not try to copy a non-existent typemap. ................ r10567 | olly | 2008-06-24 01:41:07 +0100 (Tue, 24 Jun 2008) | 3 lines Clean up dead and unused code in SwigToPhpType(), and rename to GetShadowReturnType(). ................ r10568 | olly | 2008-06-24 01:42:29 +0100 (Tue, 24 Jun 2008) | 2 lines Fix cosmetic typo in string constant. ................ r10574 | wsfulton | 2008-06-24 21:10:28 +0100 (Tue, 24 Jun 2008) | 1 line zap last entry ................ r10575 | wsfulton | 2008-06-24 21:11:46 +0100 (Tue, 24 Jun 2008) | 1 line variable name changes to remove php keywords ................ r10576 | wsfulton | 2008-06-24 21:12:08 +0100 (Tue, 24 Jun 2008) | 1 line variable name hiding fix ................ r10577 | wsfulton | 2008-06-24 21:12:43 +0100 (Tue, 24 Jun 2008) | 1 line More info about numobjects added ................ r10578 | wsfulton | 2008-06-24 21:13:41 +0100 (Tue, 24 Jun 2008) | 1 line update for 1.3.36 release ................ r10579 | wsfulton | 2008-06-24 22:48:46 +0100 (Tue, 24 Jun 2008) | 1 line remove deprecated -c commandline option (runtime library generation) ................ r10580 | wsfulton | 2008-06-24 22:53:12 +0100 (Tue, 24 Jun 2008) | 1 line correct comment about deprecated option ................ r10582 | wsfulton | 2008-06-25 00:00:27 +0100 (Wed, 25 Jun 2008) | 1 line use rsync and ssh to upload releases to SourceForge as ftp no longer works ................ r10584 | wsfulton | 2008-06-25 00:24:48 +0100 (Wed, 25 Jun 2008) | 1 line correction for 1.3.36 ................ r10588 | wsfulton | 2008-06-25 01:16:04 +0100 (Wed, 25 Jun 2008) | 1 line section update ................ r10589 | wsfulton | 2008-06-25 01:16:40 +0100 (Wed, 25 Jun 2008) | 1 line bump version to 1.3.37 ................ r10594 | wsfulton | 2008-06-26 19:33:06 +0100 (Thu, 26 Jun 2008) | 1 line correct typo in first entry about %fragment ................ r10607 | wsfulton | 2008-06-29 01:19:05 +0100 (Sun, 29 Jun 2008) | 1 line fix some potential null pointer usage as reported by CoveriCoverity Prevent ................ r10608 | wsfulton | 2008-06-29 01:50:27 +0100 (Sun, 29 Jun 2008) | 1 line fix potential null pointer usage as reported by Coverity Prevent ................ r10609 | wsfulton | 2008-06-29 10:57:41 +0100 (Sun, 29 Jun 2008) | 1 line make life easier for svn status updates as everyone has different autotool versions installed - use svn:ignore on config.sub and config.guess ................ r10610 | wsfulton | 2008-06-29 11:08:14 +0100 (Sun, 29 Jun 2008) | 1 line make life easier for svn status updates as everyone has different autotool versions installed - use svn:ignore on config.sub and config.guess ................ r10616 | talby | 2008-07-01 00:41:27 +0100 (Tue, 01 Jul 2008) | 2 lines Hopefully this provides more portable values for Infinity and NaN in Perl. ................ r10621 | wsfulton | 2008-07-01 23:02:14 +0100 (Tue, 01 Jul 2008) | 1 line update old commandline option ................ r10624 | olly | 2008-07-02 04:17:46 +0100 (Wed, 02 Jul 2008) | 5 lines [Python] Import the C extension differently for Python 2.6 and later so that an implicit relative import doesn't produce a deprecation warning for 2.6 and a failure for 2.7 and later. Patch from Richard Boulton in SF#2008229. ................ r10625 | bhy | 2008-07-02 05:56:11 +0100 (Wed, 02 Jul 2008) | 1 line fix the relative import patch by try both relative and absolute import ................ r10626 | olly | 2008-07-02 06:55:18 +0100 (Wed, 02 Jul 2008) | 4 lines [PHP4] Support for PHP4 has been removed. The PHP developers are no longer making new PHP4 releases, and won't even be patching critical security issues after 2008-08-08. ................ r10627 | bhy | 2008-07-02 07:06:56 +0100 (Wed, 02 Jul 2008) | 1 line fix the previous commit -- new approach using imp module ................ r10628 | bhy | 2008-07-02 07:29:15 +0100 (Wed, 02 Jul 2008) | 1 line minor fix on relative import: close fp if exception occured during imp.find_module ................ r10629 | bhy | 2008-07-02 08:08:00 +0100 (Wed, 02 Jul 2008) | 1 line reconstruct the relative import, now the generated code looks better ................ r10633 | olly | 2008-07-03 01:09:56 +0100 (Thu, 03 Jul 2008) | 9 lines WARN_* constants are user visible, so keep existing WARN_PHP4_* for backward compatibility, but add preferred forms WARN_PHP_* and use these ourselves. Rename Lib/php4 to Lib/php, Source/Modules/php4.cxx to Source/Modules/php.cxx. Add typemaps for const reference so Examples/test-suite/apply_signed_char.i works. ................ r10634 | olly | 2008-07-03 01:12:58 +0100 (Thu, 03 Jul 2008) | 2 lines Remove file added in error. ................ r10635 | olly | 2008-07-03 01:37:38 +0100 (Thu, 03 Jul 2008) | 2 lines Rename php4*.swg to php*.swg. ................ r10636 | olly | 2008-07-03 02:13:51 +0100 (Thu, 03 Jul 2008) | 2 lines Update wrt PHP4. ................ r10637 | olly | 2008-07-03 03:32:11 +0100 (Thu, 03 Jul 2008) | 4 lines [PHP] The deprecated command line option "-phpfull" has been removed. We recommend building your extension as a dynamically loadable module. ................ r10638 | olly | 2008-07-03 03:32:41 +0100 (Thu, 03 Jul 2008) | 2 lines Fix version number ................ r10639 | olly | 2008-07-03 07:04:24 +0100 (Thu, 03 Jul 2008) | 2 lines Make t_output_helper() static. ................ r10640 | olly | 2008-07-03 07:05:34 +0100 (Thu, 03 Jul 2008) | 2 lines Make testcase li_typemaps work for PHP. ................ r10641 | olly | 2008-07-03 10:12:16 +0100 (Thu, 03 Jul 2008) | 2 lines Fix check::classname() to compare case-insensitively and not try to interpolate objects into strings. ................ r10643 | olly | 2008-07-03 23:00:01 +0100 (Thu, 03 Jul 2008) | 4 lines The operator& trick in allowexcept.i doesn't work for SWIG/PHP because the generated code takes the address of the variable in the code in the "vinit" section. So comment out the private operator& for PHP. ................ r10647 | olly | 2008-07-04 00:55:33 +0100 (Fri, 04 Jul 2008) | 2 lines [PHP] The SWIG cdata.i library module is now supported. ................ r10649 | olly | 2008-07-04 02:02:22 +0100 (Fri, 04 Jul 2008) | 4 lines [PHP] The deprecated command line option "-make" has been removed. Searches on Google codesearch suggest that nobody is using it now anyway. ................ r10650 | olly | 2008-07-04 02:22:11 +0100 (Fri, 04 Jul 2008) | 4 lines [PHP] For std_vector.i and std_map.i, rename empty() to is_empty() since "empty" is a PHP reserved word. Based of patch from Mark Klein in SF#1943417. ................ r10662 | wsfulton | 2008-07-14 22:09:23 +0100 (Mon, 14 Jul 2008) | 1 line Fix director typemaps for pointers so that NULL pointers are correctly marshalled to C#/Java null in director methods ................ r10672 | olly | 2008-07-17 02:17:08 +0100 (Thu, 17 Jul 2008) | 2 lines Fix a typo; improve wording. ................ r10676 | wsfulton | 2008-07-17 22:05:49 +0100 (Thu, 17 Jul 2008) | 1 line SF #2019156 Configuring with --without-octave or --without-alllang did not disable octave. ................ r10677 | wsfulton | 2008-07-17 22:08:22 +0100 (Thu, 17 Jul 2008) | 1 line tidy output after detecting X11 headers ................ r10682 | wsfulton | 2008-07-19 19:08:06 +0100 (Sat, 19 Jul 2008) | 1 line a bit more on pgcpp ................ r10683 | wsfulton | 2008-07-19 23:45:54 +0100 (Sat, 19 Jul 2008) | 1 line Fix building of Tcl examples/test-suite on Mac OSX ................ r10714 | olly | 2008-07-27 13:51:16 +0100 (Sun, 27 Jul 2008) | 2 lines Fix "can can" typo in docs (SF#2026756) ................ r10726 | wuzzeb | 2008-08-02 09:28:02 +0100 (Sat, 02 Aug 2008) | 1 line Commit patch 2019314 ................ r10727 | wuzzeb | 2008-08-02 09:49:43 +0100 (Sat, 02 Aug 2008) | 1 line add assert.h to fix chicken build of external runtime (ext_test testsuite) ................ r10738 | talby | 2008-08-07 07:28:13 +0100 (Thu, 07 Aug 2008) | 2 lines hoist globals to local scope where trival. ................ r10743 | talby | 2008-08-08 04:10:55 +0100 (Fri, 08 Aug 2008) | 2 lines initial steps to clean up perl5 class methods (primarily constructors). ................ r10747 | talby | 2008-08-09 05:08:26 +0100 (Sat, 09 Aug 2008) | 2 lines moves perl space constructor fixups into wrapper code. ................ r10749 | talby | 2008-08-10 00:57:55 +0100 (Sun, 10 Aug 2008) | 2 lines usage_func() fix + CHANGES.current entry to explain my past few commits. ................ r10794 | talby | 2008-08-19 08:09:29 +0100 (Tue, 19 Aug 2008) | 3 lines rollback 10737:10749, this work is better left on a branch until it is in support a significant feature enhancement. ................ r10801 | drjoe | 2008-08-31 17:07:43 +0100 (Sun, 31 Aug 2008) | 2 lines change Rf_warning to warning. Looks like a typo ................ r10802 | wsfulton | 2008-09-01 20:59:23 +0100 (Mon, 01 Sep 2008) | 1 line Fix ruby detection problem breaking configure ................ r10803 | wsfulton | 2008-09-01 21:00:28 +0100 (Mon, 01 Sep 2008) | 1 line Fix another perl global namespace pollution ................ r10804 | wsfulton | 2008-09-01 21:32:53 +0100 (Mon, 01 Sep 2008) | 1 line Fix array bounds checking in C# std::vector wrappers ................ r10805 | wsfulton | 2008-09-01 21:34:49 +0100 (Mon, 01 Sep 2008) | 1 line fix runtime problem in Ruby std_vector example ................ r10806 | wsfulton | 2008-09-01 21:42:40 +0100 (Mon, 01 Sep 2008) | 1 line Fix portability problem using /dev/null ................ r10807 | wsfulton | 2008-09-01 22:46:41 +0100 (Mon, 01 Sep 2008) | 1 line patch #2079381 submitted by Boris Smilga - constant exprs put into no-eval context in DEFCENUM ................ r10808 | wsfulton | 2008-09-02 21:56:52 +0100 (Tue, 02 Sep 2008) | 1 line Add new terminator attribute for the csin typemap for C# ................ r10809 | wsfulton | 2008-09-03 00:01:37 +0100 (Wed, 03 Sep 2008) | 1 line Fix #1988296 - Multiple module director linking issue ................ r10827 | richardb | 2008-09-10 11:08:21 +0100 (Wed, 10 Sep 2008) | 6 lines [Python] Commit patch #2089149: Director exception handling mangles returned exception. Exceptions raised by Python code in directors are now passed through to the caller without change. Also, remove the ": " prefix which used to be added to other director exceptions (eg, those due to incorrect return types). ................ r10828 | bhy | 2008-09-10 11:45:33 +0100 (Wed, 10 Sep 2008) | 3 lines Initialized merge tracking via "svnmerge" with revisions "1-10827" from https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy ................ r10829 | bhy | 2008-09-10 12:04:09 +0100 (Wed, 10 Sep 2008) | 4 lines Removed merge tracking for "svnmerge" for https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy (Undo the init due to user error) ................ r10830 | bhy | 2008-09-10 12:08:16 +0100 (Wed, 10 Sep 2008) | 3 lines Initialized merge tracking via "svnmerge" with revisions "1-10403" from https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy ................ r10831 | bhy | 2008-09-10 12:51:12 +0100 (Wed, 10 Sep 2008) | 11 lines (Still trying to set right properity to get svnmerge work...) Recorded merge of revisions 10404 via svnmerge from https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy ........ r10404 | bhy | 2008-05-01 08:35:49 +0800 (Thu, 01 May 2008) | 5 lines Start of gsoc2008-bhy branch. This is a branch for Haoyu Bai's Python 3.0 backend project. Some file already modified since a little of work already done when starting the branch. ........ ................ r10834 | bhy | 2008-09-11 18:18:07 +0100 (Thu, 11 Sep 2008) | 8 lines Merged the Python 3.0 support branch. The merging progress is not so smooth, so hope this commit won't make anything broken. This is the (incomplemete) log produced by svnmerge.py: Merged revisions 10405-10409,10420-10422,10426,10438,10445,10451,10454-10465,10467,10473-10475,10485,10488-10489,10493-10495,10497,10509-10510,10513-10514,10517,10520,10525,10528-10529,10533-10535,10554-10557,10570,10573,10593,10614,10666-10669,10673,10678,10687,10690,10704-10706,10731,10744,10750-10752,10755,10759,10770,10775-10776,10813,10819 via svnmerge from https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy ................ git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10837 626c5289-ae23-0410-ae9c-e8d60b6d4f22
545 lines
24 KiB
Text
545 lines
24 KiB
Text
SWIG (Simplified Wrapper and Interface Generator)
|
|
|
|
Version: 1.3.36 (24 June 2008)
|
|
|
|
Tagline: SWIG is a compiler that integrates C and C++ with languages
|
|
including Perl, Python, Tcl, Ruby, PHP, Java, Ocaml, Lua,
|
|
Scheme (Guile, MzScheme, CHICKEN), Pike, C#, Modula-3,
|
|
Common Lisp (CLISP, Allegro CL, CFFI, UFFI), Octave and R.
|
|
|
|
SWIG reads annotated C/C++ header files and creates wrapper code (glue
|
|
code) in order to make the corresponding C/C++ libraries available to
|
|
the listed languages, or to extend C/C++ programs with a scripting
|
|
language.
|
|
|
|
This distribution represents the latest development release of SWIG.
|
|
The guilty parties working on this are:
|
|
|
|
Active Developers:
|
|
William Fulton (wsf@fultondesigns.co.uk) (SWIG core, Java, C#, Windows, Cygwin)
|
|
Olly Betts (olly@survex.com) (PHP)
|
|
John Lenz (Guile, MzScheme updates, Chicken module, runtime system)
|
|
Mark Gossage (mark@gossage.cjb.net) (Lua)
|
|
Joseph Wang (joe@gnacademy.org) (R)
|
|
Gonzalo Garramuno (ggarra@advancedsl.com.ar) (Ruby, Ruby's UTL)
|
|
Xavier Delacour (xavier.delacour@gmail.com) (Octave)
|
|
|
|
Major contributors include:
|
|
Dave Beazley (dave-swig@dabeaz.com) (SWIG core, Python, Tcl, Perl)
|
|
Henning Thielemann (swig@henning-thielemann.de) (Modula3)
|
|
Matthias Köppe (mkoeppe@mail.math.uni-magdeburg.de) (Guile, MzScheme)
|
|
Luigi Ballabio (luigi.ballabio@fastwebnet.it) (STL wrapping)
|
|
Mikel Bancroft (mikel@franz.com) (Allegro CL)
|
|
Surendra Singhi (efuzzyone@netscape.net) (CLISP, CFFI)
|
|
Marcelo Matus (mmatus@acms.arizona.edu) (SWIG core, Python, UTL[python,perl,tcl,ruby])
|
|
Art Yerkes (ayerkes@speakeasy.net) (Ocaml)
|
|
Lyle Johnson (lyle@users.sourceforge.net) (Ruby)
|
|
Charlie Savage (cfis@interserv.com) (Ruby)
|
|
Thien-Thi Nguyen (ttn@glug.org) (build/test/misc)
|
|
Richard Palmer (richard@magicality.org) (PHP)
|
|
Sam Liddicott - Anonova Ltd (saml@liddicott.com) (PHP)
|
|
Tim Hockin - Sun Microsystems (thockin@sun.com) (PHP)
|
|
Kevin Ruland (PHP)
|
|
Shibukawa Yoshiki (Japanese Translation)
|
|
Jason Stewart (jason@openinformatics.com) (Perl5)
|
|
Loic Dachary (Perl5)
|
|
David Fletcher (Perl5)
|
|
Gary Holt (Perl5)
|
|
Masaki Fukushima (Ruby)
|
|
Scott Michel (scottm@cs.ucla.edu) (Java directors)
|
|
Tiger Feng (songyanf@cs.uchicago.edu) (SWIG core)
|
|
Mark Rose (mrose@stm.lbl.gov) (Directors)
|
|
Jonah Beckford (beckford@usermail.com) (CHICKEN)
|
|
Ahmon Dancy (dancy@franz.com) (Allegro CL)
|
|
Dirk Gerrits (Allegro CL)
|
|
Neil Cawse (C#)
|
|
Harco de Hilster (Java)
|
|
Alexey Dyachenko (dyachenko@fromru.com) (Tcl)
|
|
Bob Techentin (Tcl)
|
|
Martin Froehlich <MartinFroehlich@ACM.org> (Guile)
|
|
Marcio Luis Teixeira <marciot@holly.colostate.edu> (Guile)
|
|
Duncan Temple Lang (R)
|
|
|
|
Past contributors include:
|
|
James Michael DuPont, Clark McGrew, Dustin Mitchell, Ian Cooke, Catalin Dumitrescu, Baran
|
|
Kovuk, Oleg Tolmatcev, Tal Shalif, Lluis Padro, Chris Seatory, Igor Bely, Robin Dunn
|
|
(See CHANGES for a more complete list).
|
|
|
|
Portions also copyrighted by companies/corporations;
|
|
Network Applied Communication Laboratory, Inc
|
|
Information-technology Promotion Agency, Japan
|
|
|
|
Up-to-date SWIG related information can be found at
|
|
|
|
http://www.swig.org
|
|
|
|
A SWIG FAQ and other hints can be found on the SWIG Wiki:
|
|
|
|
http://www.dabeaz.com/cgi-bin/wiki.pl
|
|
|
|
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!! IMPORTANT !!!!!!!
|
|
!!!!!!! !!!!!!!
|
|
!!!!!!! Previous SWIG-1.1 users should read the documentation !!!!!!!
|
|
!!!!!!! file Doc/Manual/SWIG.html before trying to use SWIG-1.3!!!!!!!
|
|
!!!!!!! on existing SWIG interfaces. This is the most current !!!!!!!
|
|
!!!!!!! documentation that describes new 1.3 features and !!!!!!!
|
|
!!!!!!! incompatibilities. !!!!!!!
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
What's New?
|
|
===========
|
|
|
|
SWIG-1.3.36 summary:
|
|
- Enhancement to directors to wrap all protected members
|
|
- Optimisation feature for objects returned by value
|
|
- A few bugs fixes in the PHP, Java, Ruby, R, C#, Python, Lua and
|
|
Perl modules
|
|
- Other minor generic bug fixes
|
|
|
|
SWIG-1.3.35 summary:
|
|
- Octave language module added
|
|
- Bug fixes in Python, Lua, Java, C#, Perl modules
|
|
- A few other generic bugs and runtime assertions fixed
|
|
|
|
SWIG-1.3.34 summary:
|
|
- shared_ptr support for Python
|
|
- Support for latest R - version 2.6
|
|
- Various minor improvements/bug fixes for R, Lua, Python, Java, C#
|
|
- A few other generic bug fixes, mainly for templates and using statements
|
|
|
|
SWIG-1.3.33 summary:
|
|
- Fix regression for Perl where C++ wrappers would not compile
|
|
- Fix regression parsing macros
|
|
|
|
SWIG-1.3.32 summary:
|
|
- shared_ptr support for Java and C#
|
|
- Enhanced STL support for Ruby
|
|
- Windows support for R
|
|
- Fixed long-standing memory leak in PHP Module
|
|
- Numerous fixes and minor enhancements for Allegrocl, C#, cffi, Chicken, Guile,
|
|
Java, Lua, Ocaml, Perl, PHP, Python, Ruby, Tcl.
|
|
- Improved warning support
|
|
|
|
SWIG-1.3.31 summary:
|
|
- Python modern classes regression fix
|
|
|
|
SWIG-1.3.30 summary:
|
|
- Python-2.5 support
|
|
- New language module: R
|
|
- Director support added for C#
|
|
- Numerous director fixes and improvements
|
|
- Improved mingw/msys support
|
|
- Better constants support in Guile and chicken modules
|
|
- Support for generating PHP5 class wrappers
|
|
- Important Java premature garbage collection fix
|
|
- Minor improvements/fixes in cffi, php, allegrocl, perl, chicken, lua, ruby,
|
|
ocaml, python, java, c# and guile language modules
|
|
- Many many other bug fixes
|
|
|
|
SWIG-1.3.29 summary:
|
|
- Numerous important bug fixes
|
|
- Few minor new features
|
|
- Some performance improvements in generated code for Python
|
|
|
|
SWIG-1.3.28 summary:
|
|
- More powerful renaming (%rename) capability.
|
|
- More user friendly warning handling.
|
|
- Add finer control for default constructors and destructors. We discourage
|
|
the use of the 'nodefault' option, which disables both constructors and
|
|
destructors, leading to possible memory leaks. Use instead 'nodefaultctor'
|
|
and/or 'nodefaultdtor'.
|
|
- Automatic copy constructor wrapper generation via the 'copyctor' option/feature.
|
|
- Better handling of Windows extensions and types.
|
|
- Better runtime error reporting.
|
|
- Add the %catches directive to catch and dispatch exceptions.
|
|
- Add the %naturalvar directive for more 'natural' variable wrapping.
|
|
- Better default handling of std::string variables using the %naturalvar directive.
|
|
- Add the %allowexcept and %exceptionvar directives to handle exceptions when
|
|
accessing a variable.
|
|
- Add the %delobject directive to mark methods that act like destructors.
|
|
- Add the -fastdispatch option to enable smaller and faster overload dispatch
|
|
mechanism.
|
|
- Template support for %rename, %feature and %typemap improved.
|
|
- Add/doc more debug options, such as -dump_module, -debug_typemaps, etc.
|
|
- Unified typemap library (UTL) potentially providing core typemaps for all
|
|
scripting languages based on the recently evolving Python typemaps.
|
|
- New language module: Common Lisp with CFFI.
|
|
- Python, Ruby, Perl and Tcl use the new UTL, many old reported and hidden
|
|
errors with typemaps are now fixed.
|
|
- Initial Java support for languages using the UTL via GCJ, you can now use
|
|
Java libraries in your favorite script language using gcj + swig.
|
|
- Tcl support for std::wstring.
|
|
- PHP4 module update, many error fixes and actively maintained again.
|
|
- Allegrocl support for C++, also enhanced C support.
|
|
- Ruby support for bang methods.
|
|
- Ruby support for user classes as native exceptions.
|
|
- Perl improved dispatching in overloaded functions via the new cast and rank
|
|
mechanism.
|
|
- Perl improved backward compatibility, 5.004 and later tested and working.
|
|
- Python improved backward compatibility, 1.5.2 and later tested and working.
|
|
- Python can use the same cast/rank mechanism via the -castmode option.
|
|
- Python implicit conversion mechanism similar to C++, via the %implicitconv
|
|
directive (replaces and improves the implicit.i library).
|
|
- Python threading support added.
|
|
- Python STL support improved, iterators are supported and STL containers can
|
|
use now the native PyObject type.
|
|
- Python many performance options and improvements, try the -O option to test
|
|
all of them. Python runtime benchmarks show up to 20 times better performance
|
|
compared to 1.3.27 and older versions.
|
|
- Python support for 'multi-inheritance' on the python side.
|
|
- Python simplified proxy classes, now swig doesn't need to generate the
|
|
additional 'ClassPtr' classes.
|
|
- Python extended support for smart pointers.
|
|
- Python better support for static member variables.
|
|
- Python backward compatibility improved, many projects that used to work
|
|
only with swig-1.3.21 to swig-1.3.24 are working again with swig-1.3.28
|
|
- Python test-suite is now 'valgrinded' before release, and swig also
|
|
reports memory leaks due to missing destructors.
|
|
- Minor bug fixes and improvements to the Lua, Ruby, Java, C#, Python, Guile,
|
|
Chicken, Tcl and Perl modules.
|
|
|
|
SWIG-1.3.27 summary:
|
|
- Fix bug in anonymous typedef structures which was leading to strange behaviour
|
|
|
|
SWIG-1.3.26 summary:
|
|
- New language modules: Lua, CLISP and Common Lisp with UFFI.
|
|
- Big overhaul to the PHP module.
|
|
- Change to the way 'extern' is handled.
|
|
- Minor bug fixes specific to C#, Java, Modula3, Ocaml, Allegro CL,
|
|
XML, Lisp s-expressions, Tcl, Ruby and Python modules.
|
|
- Other minor improvements and bug fixes.
|
|
|
|
SWIG-1.3.25 summary:
|
|
- Improved runtime type system. Speed of module loading improved in
|
|
modules with lots of types. SWIG_RUNTIME_VERSION has been increased
|
|
from 1 to 2, but the API is exactly the same; only internal changes
|
|
were made.
|
|
- The languages that use the runtime type system now support external
|
|
access to the runtime type system.
|
|
- Various improvements with typemaps and template handling.
|
|
- Fewer warnings in generated code.
|
|
- Improved colour documentation.
|
|
- Many C# module improvements (exception handling, prevention of early
|
|
garbage collection, C# attributes support added, more flexible type
|
|
marshalling/asymmetric types.)
|
|
- Minor improvements and bug fixes specific to the C#, Java, TCL, Guile,
|
|
Chicken, MzScheme, Perl, Php, Python, Ruby and Ocaml modules).
|
|
- Various other bug fixes and memory leak fixes.
|
|
|
|
SWIG-1.3.24 summary:
|
|
- Improved enum handling
|
|
- More runtime library options
|
|
- More bugs fixes for templates and template default arguments, directors
|
|
and other areas.
|
|
- Better smart pointer support, including data members, static members
|
|
and %extend.
|
|
|
|
SWIG-1.3.23 summary:
|
|
- Improved support for callbacks
|
|
- Python docstring support and better error handling
|
|
- C++ default argument support for Java and C# added.
|
|
- Improved c++ default argument support for the scripting languages plus
|
|
option to use original (compact) default arguments.
|
|
- %feature and %ignore/%rename bug fixes and mods - they might need default
|
|
arguments specified to maintain compatible behaviour when using the new
|
|
default arguments wrapping.
|
|
- Runtime library changes: Runtime code can now exist in more than one module
|
|
and so need not be compiled into just one module
|
|
- Further improved support for templates and namespaces
|
|
- Overloaded templated function support added
|
|
- More powerful default typemaps (mixed default typemaps)
|
|
- Some important %extend and director code bug fixes
|
|
- Guile now defaults to using SCM API. The old interface can be obtained by
|
|
the -gh option.
|
|
- Various minor improvements and bug fixes for C#, Chicken, Guile, Java,
|
|
MzScheme, Perl, Python and Ruby
|
|
- Improved dependencies generation for constructing Makefiles.
|
|
|
|
SWIG-1.3.22 summary:
|
|
- Improved exception handling and translation of C errors or C++
|
|
exceptions into target language exceptions.
|
|
- Improved enum support, mapping to built-in Java 1.5 enums and C#
|
|
enums or the typesafe enum pattern for these two languages.
|
|
- Python - much better STL suppport and support for std::wstring,
|
|
wchar_t and FILE *.
|
|
- Initial support for Modula3 and Allegro CL.
|
|
- 64 bit TCL support.
|
|
- Java and C#'s proxy classes are now nearly 100% generated from
|
|
typemaps and/or features for finer control on the generated code.
|
|
- SWIG runtime library support deprecation.
|
|
- Improved documentation. SWIG now additionally provides documentation
|
|
in the form of a single HTML page as well as a pdf document.
|
|
- Enhanced C++ friend declaration support.
|
|
- Better support for reference counted classes.
|
|
- Various %fragment improvements.
|
|
- RPM fixes.
|
|
- Various minor improvements and bug fixes for C#, Chicken, Guile, Java,
|
|
MzScheme, Perl, Php, Python, Ruby and XML.
|
|
|
|
|
|
The SWIG-1.3.x development releases offer a huge number of improvements
|
|
over older SWIG-1.1 releases. These improvements include:
|
|
|
|
- Support for C++ overloaded functions and methods.
|
|
- Support for C++ smart pointers.
|
|
- Support for C++ namespaces
|
|
- Support for C++ overloaded operators.
|
|
- Support for C++ templates including member templates.
|
|
- Support for C++ template specialization and partial specialization.
|
|
- Support for C++ friend declarations.
|
|
- Parsing support for almost all C/C++ datatypes.
|
|
- Automatic translation of C++ exception specifiers.
|
|
- Contract support.
|
|
- A full C preprocessor with macro expansion. Includes C99 variadic macros.
|
|
- Java, Ruby, MzScheme, PHP4, OCAML, Pike, CHICKEN, XML and C# modules
|
|
added. Guile module improved.
|
|
- Director support - upcalls for C++ virtual functions into the target
|
|
language proxy class.
|
|
- Better code generation. SWIG is better able to make optimizations
|
|
in order to generate less code.
|
|
- Testing framework part of the distribution ("make -k check" support).
|
|
- A lot of minor bug fixes and cleanup.
|
|
- Better Windows support.
|
|
|
|
If you used SWIG-1.1, a number of old features are missing from SWIG-1.3.
|
|
|
|
- The SWIG-1.1 documentation system is gone and hasn't been
|
|
replaced yet. This is on the long-term to-do list.
|
|
|
|
- The Tcl7.x and Perl4 modules are deprecated and no longer
|
|
included.
|
|
|
|
- A wide variety of old SWIG command-line options and
|
|
obscure features are gone.
|
|
|
|
- A lot of old %pragma directives and obscure undocumented
|
|
customization features have been eliminated. The same
|
|
functionality is now available through other means.
|
|
|
|
- Objective C support doesn't work right now. No ETA as to
|
|
when it will return.
|
|
|
|
Although we are making some attempt to preserve backwards
|
|
compatibility with interfaces written for SWIG-1.1, SWIG-1.3
|
|
incorporates a number of very substantial modifications to type
|
|
handling, typemaps, and wrapper code generation. Therefore, if you
|
|
are making extensive use of advanced SWIG features, interfaces written
|
|
for SWIG-1.1 may not work. We apologize for the inconvenience, but
|
|
these changes are needed in order to fix a number of annoying
|
|
"features" in SWIG-1.1. Hopefully the list of new features will
|
|
provide enough incentive for you to upgrade (and that the
|
|
modifications to your interfaces will only be minor).
|
|
|
|
In addition, SWIG-1.3 makes no attempt to be compatible with SWIG-1.1 at
|
|
the C++ API level so language modules written for SWIG-1.1 will most
|
|
definitely not work with this release.
|
|
|
|
See the documentation for details of the SWIG_VERSION preprocessor
|
|
symbol if you have backward compatibility issues and need to use more
|
|
than one version of SWIG.
|
|
|
|
The files NEW and CHANGES describe in some detail all of the important
|
|
changes that have been made to the system. Experienced users would be
|
|
well advised to read this.
|
|
|
|
Release Notes
|
|
=============
|
|
Please see the CHANGES files for a detailed list of bug fixes and
|
|
new features. A summary of the changes is included in this README file.
|
|
|
|
Windows Installation
|
|
====================
|
|
Please see the Doc/Manual/Windows.html file for instructions on installing
|
|
SWIG on Windows and running the examples. The Windows distribution is
|
|
called swigwin and includes a prebuilt SWIG executable, swig.exe, included in
|
|
the same directory as this README file. Otherwise it is exactly the same as
|
|
the main SWIG distribution. There is no need to download anything else.
|
|
|
|
Unix Installation
|
|
=================
|
|
You must use GNU `make' to build SWIG.
|
|
|
|
http://www.gnu.org/software/make/
|
|
|
|
To build and install SWIG, simply type the following:
|
|
|
|
% ./configure
|
|
% make
|
|
% make install
|
|
|
|
By default SWIG installs itself in /usr/local. If you need to install SWIG in
|
|
a different location or in your home directory, use the --prefix option
|
|
to ./configure. For example:
|
|
|
|
% ./configure --prefix=/home/yourname/projects
|
|
% make
|
|
% make install
|
|
|
|
Note: the directory given to --prefix must be an absolute pathname. Do *NOT* use
|
|
the ~ shell-escape to refer to your home directory. SWIG won't work properly
|
|
if you do this.
|
|
|
|
The file INSTALL details more about using configure. Also try
|
|
|
|
% ./configure --help.
|
|
|
|
The configure script will attempt to locate various packages on your machine
|
|
including Tcl, Perl5, Python and all the other target languages that SWIG
|
|
uses. Don't panic if you get 'not found' messages--SWIG does not need these
|
|
packages to compile or run. The configure script is actually looking for
|
|
these packages so that you can try out the SWIG examples contained
|
|
in the 'Examples' directory without having to hack Makefiles.
|
|
|
|
Please see the Documentation section below on installing documentation as
|
|
none is installed by default.
|
|
|
|
SWIG used to include a set of runtime libraries for some languages for working
|
|
with multiple modules. These are no longer built during the installation stage.
|
|
However, users can build them just like any wrapper module as described in
|
|
the documentation, Doc/Manual/Modules.html. The CHANGES file also lists some
|
|
examples which build the runtime library.
|
|
|
|
Notes:
|
|
|
|
(1) If you checked the code out via SVN, you will have to run ./autogen.sh
|
|
before typing 'configure'. In addition, a full build of SWIG requires
|
|
the use of bison.
|
|
|
|
Macintosh OS X Installation
|
|
============================
|
|
SWIG is known to work on various flavors of OS X. Follow the Unix installation
|
|
instructions above. However, as of this writing, there is still great deal of
|
|
inconsistency with how shared libaries are handled by various scripting languages
|
|
on OS X. We've tried to resolve these differences to the extent of our knowledge.
|
|
This release was most recently checked with the Panther release of OS X on a
|
|
Macintosh G5 system. Your mileage may vary.
|
|
|
|
Users of OS X should be aware that Darwin handles shared libraries and linking in
|
|
a radically different way than most Unix systems. In order to test SWIG and run
|
|
the examples, SWIG configures itself to use flat namespaces and to allow undefined
|
|
symbols (-flat_namespace -undefined suppress). This mostly closely follows the Unix
|
|
model and makes it more likely that the SWIG examples will work with whatever
|
|
installation of software you might have. However, this is generally not the recommended
|
|
technique for building larger extension modules. Instead, you should utilize
|
|
Darwin's two-level namespaces. Some details about this can be found here
|
|
|
|
http://developer.apple.com/documentation/ReleaseNotes/DeveloperTools/TwoLevelNamespaces.html
|
|
|
|
Needless to say, you might have to experiment a bit to get things working at first.
|
|
|
|
Testing
|
|
=======
|
|
If you want to test SWIG before installation, type the following:
|
|
|
|
% make -k check
|
|
|
|
'make -k check' requires at least one of the target languages to be
|
|
installed. If it fails, it may mean that you have an uninstalled
|
|
language module or that the file 'Examples/Makefile' has been
|
|
incorrectly configured. It may also fail due to compiler issues such
|
|
as broken C++ compiler. Even if 'make -k check' fails, there is a
|
|
pretty good chance SWIG still works correctly---you will just have to
|
|
mess around with one of the examples and some makefiles to get it to work.
|
|
|
|
The testing suite executed by 'make -k check' is designed to stress-test
|
|
many parts of the implementation including obscure corner cases. If some
|
|
of these tests fail or generate warning messages, there is no reason for
|
|
alarm---the test may be related to some new SWIG feature or a difficult bug
|
|
that we're trying to resolve. Chances are that SWIG will work just fine
|
|
for you. Note that if you have more than one CPU/core, then you can use
|
|
parallel make can be used to speed up the check as it does take quite some
|
|
time to run, for example:
|
|
|
|
% make -j2 -k check
|
|
|
|
Also, SWIG's support for C++ is sufficiently advanced that certain
|
|
tests may fail on older C++ compilers (for instance if your compiler
|
|
does not support member templates). These errors are harmless if you
|
|
don't intend to use these features in your own programs.
|
|
|
|
Note: The test-suite currently contains around 250 tests. If you
|
|
have many different target languages installed and a slow machine, it
|
|
might take more than an hour to run the test-suite.
|
|
|
|
Examples
|
|
========
|
|
The Examples directory contains a variety of examples of using SWIG
|
|
and it has some browsable documentation. Simply point your browser to
|
|
the file "Example/index.html".
|
|
|
|
The Examples directory also includes Visual C++ project (.dsp) files for
|
|
building some of the examples on Windows.
|
|
|
|
Known Issues
|
|
============
|
|
There are minor known bugs, details of which are in the bug tracker, see
|
|
http://www.swig.org/bugs.html.
|
|
|
|
Troubleshooting
|
|
===============
|
|
In order to operate correctly, SWIG relies upon a set of library
|
|
files. If after building SWIG, you get error messages like this,
|
|
|
|
% swig foo.i
|
|
:1. Unable to find 'swig.swg'
|
|
:3. Unable to find 'tcl8.swg'
|
|
|
|
it means that SWIG has either been incorrectly configured or
|
|
installed. To fix this:
|
|
|
|
1. Make sure you remembered to do a 'make install' and that
|
|
the installation actually worked. Make sure you have
|
|
write permission on the install directory.
|
|
|
|
2. If that doesn't work, type 'swig -swiglib' to find out
|
|
where SWIG thinks its library is located.
|
|
|
|
3. If the location is not where you expect, perhaps
|
|
you supplied a bad option to configure. Use
|
|
./configure --prefix=pathname to set the SWIG install
|
|
location. Also, make sure you don't include a shell
|
|
escape character such as ~ when you specify the path.
|
|
|
|
4. The SWIG library can be changed by setting the SWIG_LIB
|
|
environment variable. However, you really shouldn't
|
|
have to do this.
|
|
|
|
If you are having other troubles, you might look at the SWIG Wiki at
|
|
http://www.dabeaz.com/cgi-bin/wiki.pl.
|
|
|
|
Documentation
|
|
=============
|
|
The Doc/Manual directory contains the most recent set of updated
|
|
documentation for this release. The documentation is available in
|
|
three different formats, each of which contains identical content.
|
|
These format are, pdf (SWIGDocumentation.pdf), single
|
|
page html (Doc/Manual/SWIGDocumentation.html) or multiple page html
|
|
(other files in Doc/Manual). Please select your chosen format and
|
|
copy/install to wherever takes your fancy.
|
|
|
|
This is a development release and the documentation is largely, but
|
|
not entirely up to date. We are working on it, but there
|
|
was a lot of old documentation and it is taking some time to
|
|
update and complete. Please be patient or volunteer to help.
|
|
|
|
There is some technical developer documentation available in the
|
|
Doc/Devel subdirectory. This is not necessarily up-to-date, but it
|
|
has some information on SWIG internals.
|
|
|
|
Participate!
|
|
============
|
|
Please report any errors and submit patches (if possible)! We only
|
|
have access to a limited variety of hardware (Linux, Solaris, OS-X,
|
|
and Windows). All contributions help.
|
|
|
|
If you would like to join the SWIG development team or contribute a
|
|
language module to the distribution, please contact the swig-dev
|
|
mailing list, details at http://www.swig.org/mail.html.
|
|
|
|
|
|
-- The SWIG Maintainers
|
|
|
|
|
|
|