Commit graph

546 commits

Author SHA1 Message Date
William S Fulton
89fa119661 char * and char[] and char[ANY] typemaps tidyup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6165 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-29 20:35:30 +00:00
William S Fulton
48393596e1 char * and char[] and char[ANY] typemaps tidyup and fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6164 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-29 20:34:57 +00:00
William S Fulton
dc2bf27dc0 Typemap fix for methods that return char *. The CLR would incorrectly
delete the memory pointed to by char *.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6162 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-27 21:49:38 +00:00
William S Fulton
26283a6945 throws typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6159 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 21:57:36 +00:00
William S Fulton
7f1a06e20d Removed redundant #include of Python.h
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 21:17:18 +00:00
William S Fulton
88d782332a added %perlcode directive, patch from Fabrice Salvaire
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6157 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 21:16:19 +00:00
William S Fulton
ea94a4a0bd Patch from Ikegami Tsutomu to fix long long *OUTPUT and unsigned long long *OUTPUT typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6156 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 21:15:41 +00:00
Lyle Johnson
d79678c619 Added "directorout" typemaps for char * and const char * return values.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6152 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 01:57:06 +00:00
Lyle Johnson
7322ef7cb7 Modified the "varin" typemap for a dimensionless char array to generate
a warning message, and to raise an exception if the typemap is actually
invoked at runtime. This is needed to avoid problems for the case when
wrapping an extern char[] declaration, where the array size is truly
unknown.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 01:48:40 +00:00
William S Fulton
40fcb96d9d varin enum SWIGTYPE mods to handle unnamed enums
varin char[] typemap


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-25 21:33:46 +00:00
William S Fulton
3a0d6f1a7e varin enum SWIGTYPE mods to handle unnamed enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6149 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-25 21:32:27 +00:00
William S Fulton
a5c694a978 missing throws typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 21:44:54 +00:00
Lyle Johnson
72cf9e7ee7 Added a "throws" typemap for enum types. Fixes the broken throw_exception.i
test case for the Ruby module.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 13:34:44 +00:00
Lyle Johnson
eea19ad0db Added "throws" typemaps for std::string and its variants. Fixes broken
test case lib_std_string.i for the Ruby module.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 13:28:05 +00:00
Lyle Johnson
14e616436c Added some missing throws typemaps for SWIGTYPE and its variants.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 13:07:55 +00:00
Lyle Johnson
9a6eb5a6b8 Fixed a little typo in the comments (was "Outnput", changed to "Output").
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 12:31:10 +00:00
Lyle Johnson
db3148bad0 Break the standard Ruby typemaps out into a number of smaller files
which are included by ruby.swg.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6121 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 12:28:07 +00:00
John Lenz
df7e2ca182 changed convert_to_bool_ex to convert_to_boolean_ex from patch 891348
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 01:11:06 +00:00
Matthias Köppe
23d5f2ab9a Replace hardcoded type specifiers by typemap-based type specifier lookup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-23 15:28:58 +00:00
Marcelo Matus
ed69164312 More fixes for arrays and variables, mostly cosmetic ones.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-18 22:57:05 +00:00
Matthias Köppe
7aa78df689 <Dmitriy.Zavin@infineon.com> writes:
> I have hacked support to create native mzscheme structures from C
> structures, which includes native structure support.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6102 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-17 14:21:33 +00:00
Lyle Johnson
3fcd788313 Corrected some of the "throws" typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-17 01:07:05 +00:00
Lyle Johnson
1feef7530b Minor fix for the cpp_enum.i test case, which was broken.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-17 00:38:52 +00:00
Lyle Johnson
bcfce506d1 Added a varin typemap for char[] (Ruby). Fixes broken test case
arrays_global.i.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-14 17:33:18 +00:00
William S Fulton
d86b421950 Prevent memory leaks in the case of early return from wrapper methods using const std::string & parameters.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-12 20:57:51 +00:00
William S Fulton
89a20a447c Prevent memory leaks in the case of earlier return
from wrapper methods using const std::string & parameters. Modified
Mark Traudt patch #951565.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-12 20:57:08 +00:00
William S Fulton
5888635de9 Bug #943783 with patch fixes php char * out typemap NULL values.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-12 20:56:04 +00:00
Ahmon Dancy
440a4592e3 case mode fixes for allegrocl module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-03 23:07:45 +00:00
Matthias Köppe
18fb19afc1 Move the magic with the (Swig swigrun) module here.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6068 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-24 15:21:17 +00:00
Matthias Köppe
7f6cabe172 In -scm mode, SWIG modules now exchange their pointer type information
via the Guile interpreter.  It is no longer necessary to build a
runtime library or to use -noruntime and -runtime etc.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6067 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-24 15:20:05 +00:00
Matthias Köppe
d2c89013a2 Don't try to do magic with the (Swig swigrun) module in -runtime mode.
Move SWIG_Guile_Init in front of type registration, to allow type
system synchronization.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6066 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-24 15:19:20 +00:00
Matthias Köppe
7be172dc68 Don't depend on the presence of the SWIG-PointerAddress function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6065 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-24 15:17:15 +00:00
Matthias Köppe
dc1b770f0e Add a level of indirection for the static variable "swig_type_list".
The Guile module uses this to merge type information between modules.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6064 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-24 15:16:31 +00:00
William S Fulton
f5da0877b7 Bools fix from Mark Traudt
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-23 22:48:27 +00:00
William S Fulton
d6f5100b73 throws typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-23 21:53:04 +00:00
William S Fulton
a56015224b director enum fixes from Scott Michel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-12 19:51:51 +00:00
Matthias Köppe
f6fc431e6c Add extern "C" to declaration of scm_init_Swig_swigrun_module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6028 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-11 17:10:41 +00:00
Matthias Köppe
f80af6ab58 Define preprocessor symbol SWIG_ALLEGRO_CL.
Fix FF:DEF-FOREIGN-CALL call.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-07 16:55:27 +00:00
William S Fulton
6dfefa9d96 %csconstvalue added and typecheck fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-27 21:14:49 +00:00
William S Fulton
8a7d12435e Support for %javaconstvalue added (better compile time constants)
Support for %feature("except", throws="ExceptionClass") so that any Java exception classes thrown from JNI code can be added to the throws list - handled in the same way as the 'throws' attribute in typemaps -
macros added for this - %javaexception and %nojavaexception


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6001 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-27 21:02:38 +00:00
Marcelo Matus
7c2c1a766c fix char[] varout
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5995 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-15 23:10:22 +00:00
William S Fulton
52d0d774ab Fix for directorin char[ANY] typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5990 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-15 20:09:33 +00:00
William S Fulton
9d70f8449a Missing char[] typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-15 20:07:49 +00:00
Marcelo Matus
b2ede29b59 some performance improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5982 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-14 09:14:48 +00:00
Luigi Ballabio
13374b6a80 Fix in Perl out-typemap for std::vector (thanks to Josh Cherry)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5980 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-11 07:37:41 +00:00
John Lenz
60f4c8988e The guile and chicken _runme scripts are now shared
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5979 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-07 05:03:39 +00:00
William S Fulton
2a37bb5d27 javagetcptr typemap replaced by the javabody typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5966 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:27:09 +00:00
William S Fulton
f1090f5a5c javagetcptr and javaptrconstructormodifiers typemap replaced by the javabody/javabody_derived typemap
javaclassmodifiers typemap now contains the class type


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5965 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:26:27 +00:00
William S Fulton
a8c76e9cd7 csgetcptr and csptrconstructormodifiers typemap replaced by the csbody/csbody_derived typemap
csclassmodifiers typemap now contains the class type


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:24:48 +00:00
William S Fulton
dbcd53e9d2 csgetcptr typemap replaced by the csbody typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:22:09 +00:00