Commit graph

2,273 commits

Author SHA1 Message Date
Gonzalo Garramuno
8931224836 Fixed incorrect outputing of free_* functions
when user had defined a new free function with
%freefunc.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9706 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 19:44:23 +00:00
Gonzalo Garramuno
15393d5ead Updated "asvoid" to become "numoutputs" as documented.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9698 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 08:59:32 +00:00
Gonzalo Garramuno
4b8d11d0e2 Fixed ruby's newobject1 and newobject2 demos.
Added swig_assert.rb and started using it in some tests.
Added my patches to ruby.cxx, rubyrun.swg, rubystrings.swg
and rubytracking.swg [see: sourceforge]



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 04:20:28 +00:00
Surendra Singhi
0ee9f91eb8 fixed closing paren
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-21 19:10:14 +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
Surendra Singhi
4beedd3f04 Fixed a bug with clos method, and generating constructors.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-21 09:26:31 +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
William S Fulton
0090cac1d0 Add in pre, post and cshin attributes for the csin typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9678 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-17 22:45:17 +00:00
William S Fulton
f63d3ad5ad Add in pre, post and pgcppname attributes for the javain typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9677 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-17 22:44:33 +00:00
William S Fulton
57b20069d9 comment fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-17 22:34:49 +00:00
Olly Betts
07ae5a2aca Don't treat `restrict' as a reserved identifier in C++ mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-16 16:42:00 +00:00
Olly Betts
2632bd0c3c Stop passing unused argument to Printf().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-15 23:22:29 +00:00
Olly Betts
8b9af6389b [PHP5] If ZTS is enabled, release <module>_globals_id in MSHUTDOWN
to avoid PHP interpreter crash on shutdown.  This solution was
suggested here: http://bugs.php.net/bug.php?id=40985


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9670 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-04 09:40:55 +00:00
Olly Betts
a5ac23e6d2 [PHP4] Add missing ZTS annotations to generated C++ wrapper code
to fix compilation failures when using ZTS enabled SWIG (Linux
distributions tend to disable ZTS, but notably the Windows build
uses it by default).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9669 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-03 15:56:36 +00:00
Surendra Singhi
85a3666f7c git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9666 626c5289-ae23-0410-ae9c-e8d60b6d4f22 2007-04-01 13:22:36 +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
William S Fulton
4fe414504f String copying patch from Josh Cherry reducing memory consumption by about 25%.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9657 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-23 22:12:10 +00:00
William S Fulton
f486588124 correction to last commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9654 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-19 21:28:16 +00:00
William S Fulton
337f63fd28 seg fault fix when parsing incorrect C++ namespace code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9653 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-16 23:39:28 +00:00
Olly Betts
438195cfe9 [PHP5] When we know the literal numeric value for a constant, use
that to initialise the const member in the PHP wrapper class.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9651 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-03 15:38:52 +00:00
Olly Betts
a63013152c [PHP5] Fix PHP wrapper code generated for certain cases of
overloaded forms with default arguments.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-02 19:05:45 +00:00
Surendra Singhi
ea90e889fa Patch 1656395
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9649 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-02-26 13:16:01 +00:00
Olly Betts
8b334887e4 Fix generated makefile rule for building the module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9647 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-02-07 10:19:35 +00:00
William S Fulton
71c5f58bb3 Fix #1538522 and #1338527, forward templated class declarations without a name for the templated class parameters, such as: template <typename, class> class X;
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-25 23:50:04 +00:00
Mark Gossage
a997938b63 Added a lua specific carrays.i which adds the operator[] support.
modified the main code to make it not emit all the class member functions & accessors

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9642 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-22 04:59:16 +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
William S Fulton
9f88801914 add support for newfree typemaps in php module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9640 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-12 23:41:49 +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
Mark Gossage
515e846e2a Added more STL (more exceptions, map, size_t), fixed test case: conversion_ns_template.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-26 10:15:35 +00:00
Mark Gossage
bc08e0f335 making setting immutables an error
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-21 04:53:12 +00:00
William S Fulton
d6f38ba217 Fix typedef'd variable wrappers that use %naturalvar, eg, std::string.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9624 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-20 23:09:01 +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
Olly Betts
4f7099cb56 Fix bug #1613673 (bad PHP5 code generated for getters and setters).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-14 02:15:58 +00:00
Dave Beazley
54ec9df2ca Changed Header to Id
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9611 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:17:26 +00:00
Dave Beazley
8a9b2cbdb1 Changed Header to Id
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:14:31 +00:00
Dave Beazley
1db75e417b Changed Header to Id
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9609 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:13:00 +00:00
William S Fulton
5cd992dade %extend for static member varibles work in progress ... more consistent code across different language modules and memory leak fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:12:25 +00:00
Dave Beazley
fc10a97b23 Changed Header keyword to Id
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:11:40 +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
William S Fulton
1994a224e2 minor comment fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:07:28 +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
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