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
Marcelo Matus
6f8342b50b
use one line macro when possible
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8768 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-10 08:14:58 +00:00
Marcelo Matus
0f147b997e
delete extra spaces
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-09 20:42:34 +00:00
Marcelo Matus
245ec68c4d
add minor and missing noblock attributes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-08 23:56:59 +00:00
Marcelo Matus
863369cc41
simplify output via macro SWIG_ArgError
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-07 17:37:13 +00:00
Marcelo Matus
4f4e31460f
fix extra &
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-04 09:46:40 +00:00
Marcelo Matus
4eb6a0a727
add declaration for WCHAR_MIN and WCHAR_MAX if not founded
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-01 05:14:43 +00:00
William S Fulton
7b343a9883
Add missing fragment. Surely this kind of bug should be found when SWIG compiles? That is surely SWIG should generate error out if it can't find a fragment it has been asked to use?
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8640 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 21:19:41 +00:00
Marcelo Matus
e7191fece9
fix/apply naturalvar
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 03:29:20 +00:00
Marcelo Matus
1122c39ec4
add the SWIGUTL macro to identify a language using the Unified Typemap Library, and using it around
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8594 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 17:35:22 +00:00
Marcelo Matus
32d28239da
set PyObject * out typemaps back to simple returns
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 03:38:05 +00:00
Marcelo Matus
ce94984b71
fix errors for 32bit arch.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8523 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-23 00:33:19 +00:00
Marcelo Matus
0ee6a0446a
more fixes to MSC
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-22 07:00:32 +00:00