William S Fulton
1253657bb4
Add improved namespace support - the nspace feature, working for Java only at the moment.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-04 21:27:23 +00:00
William S Fulton
cb64f65bae
SWIG license change - Source moves to GPLv3
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:53:33 +00:00
William S Fulton
f6ce153f8f
Remove -dirvtable from the optimizations included by -O as it this option currently leads to memory leaks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 15:53:21 +00:00
William S Fulton
83bd820285
Add typemaps used debugging option (-debug-tmused). Fix missing file/line numbers for typemap warnings and in the output from the -debug-tmsearch/-debug-tmused options
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-01-04 19:33:52 +00:00
William S Fulton
136bd5175a
Python and Tcl - improve error message for missing constructor when the reason is because the class is abstract.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-08 22:56:10 +00:00
Olly Betts
5215d9227a
[Python] Fix indentation so that we give a useful error if the
...
module can't be loaded. Patch from Gaetan Lehmann in SF#2829853.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11485 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-31 12:09:25 +00:00
William S Fulton
8ec7035eee
improve WARN_LANG_OVERLOAD_KEYWORD warning by giving the name of the overloaded function
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11421 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-18 22:34:33 +00:00
William S Fulton
54b87bdd7d
remove extra lookup of directorout typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-05 17:19:29 +00:00
Olly Betts
38f00d3544
[Python] Don't attempt to acquire the GIL in situations where we
...
know that it will already be locked. This avoids some dead-locks
with mod_python (due to mod_python bugs which are apparently
unlikely to ever be fixed), and results in smaller wrappers which
run a little faster (in tests with Xapian on x86-64 Ubuntu 9.04,
the stripped wrapper library was 11% smaller and ran 2.7% faster).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 09:35:58 +00:00
Haoyu Bai
5d64541c44
Fix SF#2583160. Make swig_import_helper() in shadow wrapper able to deal with the case that module already imported at other place.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-01 09:37:21 +00:00
William S Fulton
efa11dee52
add new %begin directive for inserting code at top of wrapper file
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-20 07:52:24 +00:00
Haoyu Bai
afd67f8c67
Fix SF#2552488: indentation adjust of %pythonappend and %pythonprepend
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 14:37:54 +00:00
Haoyu Bai
be7fdab62e
Fix SF#2552048. Remove the 'self' parameter in Python proxy code for static member function.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 13:38:39 +00:00
William S Fulton
5ec2d8c166
All languages now define a macro in the generated C/C++ wrapper file indicating which language is being wrapped, eg #define SWIGJAVA
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-30 00:38:34 +00:00
William S Fulton
cc522323d7
create a common banner header for all target language specific files
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 22:56:25 +00:00
Haoyu Bai
8f84447860
Commited SF#2158938: change all SWIG symbols start with Py to a new name.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-03 18:43:44 +00:00
William S Fulton
1c4ec59e45
Apply patch #2143727 for Python from Serge Monkewitz to fix importing base classes when the package option is specified in %module and that module is %import'ed
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10960 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-02 20:21:16 +00:00
William S Fulton
d26772917b
minor fix to formatting in generated types table
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10956 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-28 23:30:45 +00:00
William S Fulton
6fb0f48935
customised ccache support: read the CCACHE_OUTFILES env variable and if exists, the names of all generated files are written to the filename specified in the env variable
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 12:51:45 +00:00
William S Fulton
04a1d9182f
Add patch #2128249 from Anatoly Techtonik which corrects the C/C++ proxy class being reported for Python docstrings when %rename is used
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-01 23:09:26 +00:00
William S Fulton
4c6e314308
remove confusion over tab widths
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10869 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 20:21:17 +00:00
William S Fulton
061e934bbc
Document the module attribute in %import and add warning to Python for when it should be used
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10866 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 14:52:52 +00:00
Haoyu Bai
3d8ddfc442
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/trunk@10834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-11 17:18:07 +00:00
Haoyu Bai
9fc127d68b
reconstruct the relative import, now the generated code looks better
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-02 07:08:00 +00:00
Haoyu Bai
4d3e448b38
minor fix on relative import: close fp if exception occured during imp.find_module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-02 06:29:15 +00:00
Haoyu Bai
9fbab46bd4
fix the previous commit -- new approach using imp module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-02 06:06:56 +00:00
Haoyu Bai
1f2c29342f
fix the relative import patch by try both relative and absolute import
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-02 04:56:11 +00:00
Olly Betts
31926ad905
[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.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10624 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-02 03:17:46 +00:00
William S Fulton
49675199f4
Remove some vc++ /W4 warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 15:23:02 +00:00
William S Fulton
dfcb1640bf
Remove old swig-1.1 Swig_typemap_lookup function. Rename Swig_typemap_lookup_new() to Swig_typemap_lookup()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-15 21:18:44 +00:00
William S Fulton
336b50b43d
Add the optimal attribute to the out typemap for more optimal code generation when returning objects by value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-14 22:12:31 +00:00
William S Fulton
7c6f8dafa7
Apply patch #1924524 from Casey Raymondson which ensures the 'No constructor defined' message is displayed when attempting to call a constructor on a class that doesn't have a constructor wrapper, eg if the C++ class is abstract.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-26 20:43:45 +00:00
William S Fulton
2bef4d6b0c
Set wrap:name for variables for use in special variable
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 15:29:55 +00:00
William S Fulton
b67e0a28a3
Fixes for $wrapname to work in %exception
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-25 22:07:28 +00:00
William S Fulton
f39242fa92
Complete the Python support for shared_ptr mainly for derived classes. This includes the smartptr feature for overriding the class registration function and shared_ptr typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-09 12:25:41 +00:00
William S Fulton
5ad2a3ab0c
Fix formatting of error messages for overloaded functions that use templates
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10216 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-21 22:31:37 +00:00
William S Fulton
3ac369d8d0
Improve output formatting of generated code for overloaded methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-21 22:20:30 +00:00
William S Fulton
1be894e058
Fix PyArg_ParseTuple for swigregister method
...
Fix some typos in -help
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10201 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-12 22:37:11 +00:00
William S Fulton
e49c07014d
Correct usage of Py_ssize_t
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 22:33:20 +00:00
William S Fulton
fe042d2ebc
Replace cvs $Header$ with svn $Id$
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:42:11 +00:00
Olly Betts
cb4c23fde1
[python] Split potentially long string literals to avoid hitting
...
MSVC's low fixed limit on string literal length - patch from
SF#1723770, also reported as SF#1630855.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9940 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-18 00:50:20 +00:00
Olly Betts
f08000de17
[Python]
...
Split docstrings into separate string literals at each newline when
generating C/C++ wrapper code (the C/C++ compiler will just combine
the back into a single string literal). This avoids MSVC
complaining that the strings are too long (problem reported by
Bo Peng on the mailing list).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9841 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-29 00:57:46 +00:00
Olly Betts
af2d15d2a5
[Python]
...
Escape backslashes in docstrings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-27 23:57:34 +00:00
Olly Betts
26e8cc0797
[Python]
...
Fix autodoc generation of enums to be more consistent with how the
enums are wrapped - patch #1697226 from Josh Cherry.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-26 15:00:58 +00:00
Olly Betts
8094f2c86f
Remove unused trailing `0' parameter in call to Printf.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9796 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-08 22:37:21 +00:00
Olly Betts
898e5f7f3d
[Python] Fix lack of generation of docstrings when -O is used.
...
Also, fix generation of docstrings containing a double quote
character. Patch from Richard Boulton in bug#1700146.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-20 01:16:31 +00:00
Dave Beazley
b00cef436b
API cleanup (Parms)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-10 23:43:07 +00:00
William S Fulton
c4761132ac
%extend for static member varibles work in progress ... static member variable and global variable wrapper names changed so that they don't clash with the user supplied %extend function name
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:10:56 +00:00
Luigi Ballabio
bfa1582e08
Recommit of alternate fix for bug #1578346 (this time without formatting mess)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9568 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-16 10:26:03 +00:00
William S Fulton
97b1fbaa02
-fakeversion appears in generated files. Made comment with version number at top of generated files consistent.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-15 23:45:47 +00:00