Commit graph

547 commits

Author SHA1 Message Date
William S Fulton
a604f46593 Add the strip encoder patch from Anatoly Techtonik #2130016
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-01 22:52:26 +00:00
William S Fulton
b02017c658 fix potential null pointer usage as reported by Coverity Prevent
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-29 00:50:27 +00:00
William S Fulton
d4e283eb8c fix typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10562 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-23 21:14:53 +00:00
William S Fulton
f85ef02890 fix unused parms in last commit for C code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-22 21:30:20 +00:00
William S Fulton
1213c5640a Fix unused parameter warnings in python when using gcc's -W -Wall options
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 22:25:36 +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
Haoyu Bai
32617f7804 fixed keyword_rename.ctest tese case, caused by a mistake in Swig/naming.c
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-07 13:40:51 +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
46a0db50fe enforce consistency in wrap:action wrt line spacing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-01 21:47:23 +00:00
William S Fulton
9976dc9d75 Add allprotected mode for wrapping protected members when using directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 20:41:01 +00:00
William S Fulton
f1cabd08a2 fix stack overflow when using typemap warning suppression, eg %warnfilter(SWIGWARN_TYPEMAP_CHARLEAK_MSG)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10359 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-06 21:21:29 +00:00
Olly Betts
f881f98daf Fix memory leak in SWIG's parser (based on patch from Russell
Bryant in SF#1914023).`


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10310 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-17 00:36:35 +00:00
William S Fulton
6f497c2807 Fix bug #1878285 - unnecessary cast for C struct creation wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-12 22:15:00 +00:00
William S Fulton
25fd00698b fix seg fault when attempting to report errors on overloaded global functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-04 21:37:25 +00:00
William S Fulton
f858eca260 Add some generic function pointer support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 13:01:17 +00:00
William S Fulton
61cc1dd334 Add support function for displaying the declaration of a methods. Add special variables for use in \%exception:
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:43:34 +00:00
William S Fulton
2cb828dbf8 Beautify the output a bit - always put spaces around a template type list, eg Foo< abc >, was Foo<abc >.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10254 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:25:37 +00:00
William S Fulton
14d23e5a59 Alter SwigType_parmlist to return an empty list if there are no parameters, rather than a list of one empty type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 22:38:43 +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
0460574284 Additions to %types so that a user can specify the code to go into the casting / conversion function
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-31 22:55:24 +00:00
William S Fulton
629aae375c Additions to %types so that a user can specify the code to go into the casting / conversion function
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10222 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-31 22:45:59 +00:00
William S Fulton
da509bd641 Fix 1832613 - template function pointer typedefs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10195 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-16 20:55:43 +00:00
William S Fulton
afc303a8ec Add some comments. Add extra assertions in SwigType_parmlist
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-16 20:42:44 +00:00
William S Fulton
27b7d1de5b Swig_print_node truncates to 80 characters now instead of 40
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-16 20:37:25 +00:00
William S Fulton
b79ebf39fa Fix #1819847 %template with just one default template parameter
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-12 19:00:15 +00:00
Olly Betts
0f5c628cfb Fix mixed declarations and code so this file is valid C89.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9991 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-16 21:27:14 +00:00
William S Fulton
2c46b7832c Strip C comments from the java typemaps when determining to use the premature garbage collection prevention parameter
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9982 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-12 21:31:22 +00:00
Olly Betts
3777b685a6 Fix many instances of "delimeter" to "delimiter".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-08 12:02:56 +00:00
William S Fulton
7199cf2ef0 Ensure the premature garbage collection prevention parameter (pgcpp) is generated for Java wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-19 23:17:50 +00:00
John Lenz
38f6ca7f15 Modify r_ltype in typesys.c to store a hashtable instead of a single value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-05 05:40:35 +00:00
William S Fulton
87577ab5e6 new -Werror option and fixes for turning on warnings which are normally turned off
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9922 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-31 22:20:21 +00:00
William S Fulton
3f0bbe1581 patch #1745739 - Compiler warning for BSD from Klaus Heinz
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 11:59:58 +00:00
John Lenz
fb51964d01 Fix a bunch of minor bugs found by Coverity scanner
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 02:55:27 +00:00
William S Fulton
3e5f30c94f conversion operator %rename improvements - the exact operator name must be specified now, rather than a fully qualified operator name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9837 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-26 00:06:45 +00:00
Gonzalo Garramuno
4cd98d3865 Improved algorithm of renaming of methods with numbers at the end.
Fixed some const issues.
Improved report on overloaded function error.
Fixed some minor iterator potential problems.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-04 13:12:31 +00:00
Olly Betts
660d1c8a55 Fix parsing of float constants with an exponent (e.g. 1e-02f) (bug #1699646).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-21 16:00:02 +00:00
Olly Betts
e90a095e77 Avoid generating '<:' token when using SwigValueWrapper<> on a type
which starts with '::' (patch #1690948).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-30 02:34:38 +00:00
Dave Beazley
5d0c155688 API cleanup and documentation (Wrapper objects)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9641 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-16 04:50:43 +00:00
Dave Beazley
b92d8e5cff Major overhaul of C/C++ scanner API. Unified tokenizing code so that tokens are scanned by a common code base
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-12 19:01:40 +00:00
Dave Beazley
6ffd26cc1e API cleanup. Scanner interface
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-12 01:44:16 +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
Dave Beazley
ff41049b1c Eliminated use of swigkeys.h/.c files.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-03 20:58:19 +00:00
Dave Beazley
c12550e4ad API cleanup. Documentation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9631 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-03 05:23:20 +00:00
Dave Beazley
52dcbb9001 API cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9630 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-02 21:17:19 +00:00
Dave Beazley
264b7dff90 API cleanup. Documentation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-30 18:27:47 +00:00
Dave Beazley
b58c254a8f Removed unused k_sysdir variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9623 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-19 21:27:34 +00:00
Dave Beazley
79451aa1a7 File management cleanup. Split API into separate header. Removed unused functions. Added documentation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9622 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-19 03:49:17 +00:00
Dave Beazley
7a826c8b6d Changed Header keyword to Id for SVN
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 21:57:44 +00:00
Dave Beazley
d6875828c1 Changed $Header$ to $Id$. (Test)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9603 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 21:47:01 +00:00