Commit graph

131 commits

Author SHA1 Message Date
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
William S Fulton
25aff229ab Remove void * cast which was suppressing gcc's strict aliasing warning display. Note g++ 4.0 still does not display the warning even though with -O2 the resulting code fails due to aliasing optimisations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:44:34 +00:00
William S Fulton
974f2c00bd remove unused method warning with gcc -Wall
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:41:12 +00:00
William S Fulton
7d07987098 std::wstring global and member variables are wrapped as strings by default
No need to use the %apply const std::wstring& { std::wstring* } trick anymore


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 22:32:07 +00:00
William S Fulton
3d03012639 Finally std::string global and member variables are wrapped as strings by default
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8598 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 00:42:25 +00:00
William S Fulton
9883f6215a BigInteger fixes - Bug 1398394
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 23:10:27 +00:00
William S Fulton
2387c32254 Each target language now has its own std_deque.i like the other STL wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8303 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 20:08:44 +00:00
William S Fulton
e0089921c2 Fix for directors - where a class returned by value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8253 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 14:09:14 +00:00
William S Fulton
36b1e5c2ac cosmetic changes removing unnecessary brackets and empty lines in generated code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 13:58:10 +00:00
Marcelo Matus
89e7497ac6 add support for named warning codes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 11:42:24 +00:00
Marcelo Matus
69c14f087e add initial stl.i to ensure proper file inclussion and extensions for each language
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 00:37:31 +00:00
William S Fulton
977c6bb675 Fix recent STL exception breakages and add in throws typemaps for most of the std::exception classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8201 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-03 23:25:33 +00:00
Marcelo Matus
58a6f839cb silence warnings for std::exception
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8173 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 04:36:19 +00:00
William S Fulton
1917746157 Add in array reference typemaps - the recently introduced pointer reference typemaps broke array references.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-29 00:16:48 +00:00
William S Fulton
c81c25f671 fix to set method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 10:46:54 +00:00
William S Fulton
3db5c253df Fix for vector of bool
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 01:50:49 +00:00
William S Fulton
a87acb5aa3 Add pointer reference typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8064 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:09:16 +00:00
William S Fulton
c17e4cff56 fix exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 00:14:02 +00:00
William S Fulton
6943996687 new $imclassname to fix bugs changing the intermediary classname
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8027 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-21 22:51:25 +00:00
Marcelo Matus
d8f959828d fix li_std_except.i test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7905 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-30 21:45:41 +00:00
William S Fulton
cfdad24993 Use the system angle brackets for %include
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-26 09:28:20 +00:00
William S Fulton
675ceb3327 Extra constructor to handle enum items initialised by another enum item
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-26 08:35:36 +00:00
William S Fulton
1986fcd8e0 Fix so that all the const primitive reference types can be applied to other types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-10 21:26:40 +00:00
Marcelo Matus
a4c0114c6a replace bad parameter names when neccessary
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7699 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-21 10:43:41 +00:00
William S Fulton
dbc07b0656 Workaround for #error in typemaps erroring out when swig is running rather than when the compiler executes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-15 22:23:25 +00:00
William S Fulton
23f2b54fae Fix so that it is possible to overload methods with 2 different enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7662 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-15 01:27:07 +00:00
William S Fulton
939a514547 minor simplification for const enum SWIGTYPE&
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-09 13:51:15 +00:00
William S Fulton
f54eeee5f3 unsigned long long director fixes (bug 1238798)
Also missing cvs commit for director fixes for SWIGTYPE


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-14 22:07:44 +00:00
William S Fulton
dec7f07eb1 jweak cast fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7437 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-13 21:03:01 +00:00
William S Fulton
f0bc0ede27 Intel compiler fix for __int64 typedef redefinition
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-16 21:26:44 +00:00
William S Fulton
03a67698a9 use exception specification instead of %exception to handle STL error checking
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-27 20:09:42 +00:00
William S Fulton
effe88404d Stop using SWIG_exception. It is flawed.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:33:32 +00:00
William S Fulton
388fbad517 Fix #1211353 for -ve enum values
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-02 21:46:08 +00:00
William S Fulton
4c4e3f47ad added missing constructors for std::pair
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-25 21:34:39 +00:00
William S Fulton
e00fede3f9 wstring typemaps moved from std_string.i std_wstring.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7205 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-21 20:27:51 +00:00
William S Fulton
71646dcd81 more fixes for gcc -fstrict-aliasing -Wall
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 23:51:16 +00:00
William S Fulton
94e6c86d06 Fixes to remove "dereferencing type-punned pointer will break strict-aliasing rules" warnings in C wrappers when compiling C code with 'gcc -Wall -fstrict-aliasing'. Patch from Michael Cahill.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 23:14:35 +00:00
William S Fulton
c2e9c01ab1 Scott Michel director patch, typemap consolidation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-28 22:11:06 +00:00
William S Fulton
aa44d06e90 Consistent warning 470 across all languages
Fix const ref directorout typemaps


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:27:53 +00:00
William S Fulton
a79b16c34f Fix last fix!
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:26:31 +00:00
William S Fulton
1b00d2e007 Consistent warning 470 across all languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:24:44 +00:00
William S Fulton
3563de51ee director typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-29 20:51:58 +00:00
William S Fulton
61c6a09ff2 half working director typemaps removed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-29 20:51:28 +00:00
William S Fulton
17f65da214 Modifications to the typemaps giving users fine control over memory ownership and lifetime of director classes. Patch from Scott Michel.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-15 21:31:31 +00:00
William S Fulton
a0bdbf50a7 Correct memory allocation for STRINGARRAY
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-17 22:18:02 +00:00
William S Fulton
df49ff9f1e minor name change
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-02 22:28:21 +00:00
William S Fulton
9cfc9129fd new typemap: javaconstruct. This typemap contains the code that goes into the proxy constructor.
The javaconstruct_director typemap is used instead when directors are enabled.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-10 22:58:39 +00:00
Marcelo Matus
15eb43e5d1 fix warning(error?) with jlong + x86_64
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 01:37:38 +00:00
William S Fulton
9230fe525a mods so that a %apply will work on pointers, eg %apply int[] {int*}
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-08 22:49:00 +00:00
William S Fulton
7da7f8a112 minor SWIGTYPE[] additions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6846 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-08 22:47:41 +00:00