Commit graph

146 commits

Author SHA1 Message Date
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
Marcelo Matus
3c8bb6dba8 add note for namespace issues
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 09:15:31 +00:00
William S Fulton
49be05f4fd Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:14:10 +00:00
Marcelo Matus
357d0650ed add SWIG_TYPECHECK_SWIGOBJECT to resolve simple overload functions as Graph(int i)/Graph(PyObject* p)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-01 23:30:37 +00:00
Marcelo Matus
00aee379b2 add '= 0' to avoid warnings in icc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 08:33:22 +00:00
Marcelo Matus
c69f576ccb add '= 0' to avoid warnings in icc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 08:21:12 +00:00
Marcelo Matus
46318e8766 fix bug #1263457
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 23:45:28 +00:00
Marcelo Matus
220a0ad055 fix char *& typemap, reported by Geoff Hutchison
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 21:26:36 +00:00
Marcelo Matus
44264e5544 add the factory library for UTL
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 18:42:20 +00:00
Marcelo Matus
6c41e29d12 delete extra new lines
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 18:41:40 +00:00
Marcelo Matus
b9c30d7738 more fixes for old Solaris compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 08:17:23 +00:00
Marcelo Matus
a3555839e4 simplify generated code and more consistent names/sections
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-11 01:57:32 +00:00