Commit graph

157 commits

Author SHA1 Message Date
William S Fulton
347f2782d2 Fix missing stddef.h when %import of STL containers. Was causing compile failures witht g++-4.6.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-20 20:07:56 +00:00
William S Fulton
6f729a05d9 Patch from Karl Wette to allow custom allocators in STL string classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-16 06:58:40 +00:00
William S Fulton
a5f8ffba91 Remove warning: 'self' is a ruby keyword, renaming to 'C_self' since improving autodoc for Ruby
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-12-21 22:01:27 +00:00
William S Fulton
4c898b023c The 'directorin' typemap now accepts , etc expansions instead of having to use workarounds - _name, _name etc.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12879 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-12-21 07:16:44 +00:00
William S Fulton
468ca084fc Correct special variables in 'directorargout' typemap. This change will break any 'directorargout' typemaps you may have written. Please change: to and to \n Also fix the named 'directorargout' DIRECTOROUT typemaps for these languages which didn't previously compile and add in , etc expansion.\n [C#, Go, Java, D] Add support for the 'directorargout' typemap.\n [Java] Add (char *STRING, size_t LENGTH) director typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-12-20 20:50:36 +00:00
William S Fulton
30206f975c Fix constructors in named typedef class declarations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12784 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-08-25 19:27:38 +00:00
William S Fulton
40efa07052 Typemap correction for: (size_t LENGTH, const char *STRING)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-07-26 06:27:10 +00:00
William S Fulton
ff6b144f30 Fix Python directorin typemap for PyObject *
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-07-16 14:43:04 +00:00
Olly Betts
b0ffa0b48f Fix comment typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12729 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-06-03 13:13:44 +00:00
William S Fulton
aac2b5d2e1 Remove VARARGS_SENTINEL typemaps further to revision 12666. Note that the idea of having a named typemap for sentinels is flawed unless the named typemap is provided for every single type in the typemap library.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12668 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-14 23:54:09 +00:00
William S Fulton
89face5db1 Fix overloading when using const char[] and char[ANY] and const char[ANY]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12541 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-15 20:59:04 +00:00
Olly Betts
049e51c282 Remove pointless special casing of zero-length strings, remnant of a series
of changes Marcelo made here.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-18 08:44:44 +00:00
William S Fulton
ac42dd8153 remove duplicate UTL char * typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12456 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-13 01:27:02 +00:00
William S Fulton
640cce2c50 Fix typecheck typemaps for SWIGTYPE *const&
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-30 00:42:27 +00:00
Olly Betts
71dddaa2de Fix %attribute2ref not to produce a syntax error if the last
argument (AccessorMethod) is omitted.  Patch from David Piepgras
in SF#2235756.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12056 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-26 08:21:03 +00:00
William S Fulton
ff8f6b5c66 minor formatting changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11996 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-23 18:16:31 +00:00
William S Fulton
bdea09ed83 Make typemap fragments official - move the documentation in fragments.swg into Typemaps.html
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11992 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-14 22:22:16 +00:00
William S Fulton
bdb136d611 Change typemap matching rules for the default type (SWIGTYPE) to follow template partial specialization type deduction. Fixes some containers of const pointers. SWIGTYPE*& typemps removed and replaced with SWIGTYPE *const&.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-01 18:26:37 +00:00
William S Fulton
4308dd03cf SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:26:02 +00:00
William S Fulton
a2229a45fc Fix memmove regression
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-11 18:53:14 +00:00
William S Fulton
3932d02a2a fix SWIG naming convention
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-21 00:25:11 +00:00
William S Fulton
589eb8e509 Add %attributeval and %attributestring to attribute.swg library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-13 22:42:45 +00:00
William S Fulton
6d03b7ce6a update old syntax to new _dim0
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-08 22:54:58 +00:00
Haoyu Bai
2dcb84a4c3 Fixed SF #1976978, apply the macros for primitive types to std::wstring
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10508 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-30 13:53:33 +00:00
Olly Betts
c2b682390f Fix a few typos.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-19 20:23:50 +00:00
William S Fulton
da8791792b STL fixes when using %import rather than %include and the Solaris Workshop compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-07 21:33:19 +00:00
William S Fulton
30c4214ece Fix #1904537 Swig causes a Perl warning 'x used only once' in Perl 5.10 reported by Ari Jolma
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10286 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-29 23:42:52 +00:00
Olly Betts
d1dabb7231 Fix UTL typecheck macro for a function taking char[] or const
char[] (SF#1820132).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10043 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 23:05:32 +00:00
William S Fulton
2a89d09add attribute tidy up. %attributeref replaces %attribute_ref
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:27:21 +00:00
William S Fulton
acb5bde28c Patch #1797133 from David Piepgrass fixes %attribute when the getter has the same name as the attribute name and no longer generate non-functional setter for read-only attributes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9990 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-15 21:57:51 +00:00
William S Fulton
ed3938e36f fix long long handling - mainly patch 1771313. Attempt to define ISO limits that should be in limits.h if gcc has not defined them. This might need refining further.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9954 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-24 21:42:05 +00:00
Gonzalo Garramuno
5eb47b0da5 Reverted the static_cast fix as it is incorrect due
to swig going thru a void* in-between.
The problem is still present, but will require a much
more elaborate fix.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-20 00:19:57 +00:00
Gonzalo Garramuno
7a3c9a08a2 Changed swigtype.swg to use static_cast's instead of
reinterpret_cast's.
This fixes a potentially subtle problem with director
classes using reinterpret casts in their casts
and when casting class that have multiple inheritance. 
The code currently generated by swig actually works
find under most compilers but was, afaik, not truly 
C++ conformant.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9942 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-19 09:00:59 +00:00
Gonzalo Garramuno
6bed15279e Added two #ifdef guards to allow replacing some
of the exception error macros.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9711 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 20:50:08 +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
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
389b4813ca more %apply char* fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 23:26:57 +00:00
Marcelo Matus
20339de8b4 more fixes/tests for empty strings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 04:45:41 +00:00
Marcelo Matus
c21c26945c more fixes to use %apply and char, unsigned char and others
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 02:01:17 +00:00
Marcelo Matus
cb8ca07b96 cosmetic fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 23:08:51 +00:00
Marcelo Matus
f95d974620 fix changes in 1.3 to better support %apply, it didn't compile with python before
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 23:08:15 +00:00
Marcelo Matus
f4f56b2c34 fix empty std::string case, reported by Daniel Moore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:46:50 +00:00
Marcelo Matus
a2b1dd53be fix null char* case, reported by Daniel Moore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9078 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:46:25 +00:00
Marcelo Matus
5ad74d2921 fix null char* case, reported by Daniel Moore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:34:26 +00:00
Marcelo Matus
09d0d6b4ff fix empty std::string case, reported by Daniel Moore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:31:23 +00:00
William S Fulton
2d24918a97 ensure %apply with char*, unsigned char* and signed char* works
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 20:58:19 +00:00
Marcelo Matus
40828f8cc5 add missing SWIG_VERSION
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9050 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 02:04:27 +00:00
Marcelo Matus
52cfa52b83 fix docs, path provided by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 01:40:20 +00:00
Marcelo Matus
e28dacf28d use better names to avoid clashing with directors, as reported by Eric Blossom
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9038 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-27 21:20:46 +00:00
Marcelo Matus
02d5dbe049 fix prototype warnings, as reported by Max Browsher
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9034 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-26 07:09:22 +00:00