John Lenz
0c57969c61
- Add SWIG_RUNTIME_VERSION to new type sharing code. This is for future-proof, if
...
the format of swig_type_info ever changes, this number should be incremented
- Add SWIG_LINK_RUNTIME and SWIG_STATIC_RUNTIME symbols to python
- Convert inline into SWIGINLINE
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6475 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 21:53:54 +00:00
William S Fulton
85b1bcfc47
removed redundant valuewrapper feature
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:19:14 +00:00
Marcelo Matus
5a4369fd11
avoid to use SwigValueWrapper with std::string, just to keep the code cleaner and familiar
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 00:35:16 +00:00
John Lenz
75e462baa8
Removed ability to share type information by C linking
...
All type sharing happens through a global variable in the target language.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 18:23:59 +00:00
John Lenz
143bfb2a62
Fix a few bugs in the tcl module related to clientdata propagation.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 02:31:14 +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
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
2593d326f6
04/24/2004: mkoeppe (Matthias Koeppe)
...
[Guile] New runtime functions SWIG_PointerAddress,
SWIG_PointerType, SWIG_IsPointerOfType, SWIG_IsPointer.
[Guile] In -scm mode, wrap several SWIG runtime functions
and export them into the module (Swig swigrun). The
runtime module is now built with "module" linkage.
[Guile] GOOPS proxy objects now also print the pointer
address of the C object.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-17 15:47:45 +00:00
Matthias Köppe
187286ab8c
Use the new common runtime function SWIG_TypePrettyName.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-06 09:55:32 +00:00
Matthias Köppe
2eacba6ef9
New common runtime function SWIG_TypePrettyName.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-06 09:51:37 +00:00
Matthias Köppe
9b4f0793de
The typemap for FILE * in ports.i now also accepts a regular FILE *
...
pointer object. Also a bug with Scheme file ports that are open for
input and output has been fixed.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 14:09:02 +00:00
Matthias Köppe
4280b31589
In -gh mode, fix the "too many initializers" error
...
which was caused by an incompatible swig_type_info layout.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5888 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 14:08:27 +00:00
Matthias Köppe
e3635aed11
In -scm mode, don't forget to check the type of string arguments.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-02 12:58:00 +00:00
Matthias Köppe
7fbaa3b633
Don't try to invoke a null destructor function.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5732 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-22 15:28:03 +00:00
Dave Beazley
09d0af6fea
Added pack/unpack functions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-08 18:07:36 +00:00
Matthias Köppe
297b943f2e
Rename the three smob types to "swig-pointer",
...
"collectable-swig-pointer", "destroyed-swig-pointer", so that the
automatically generated class metaobjects <swig-pointer> etc. do not
contain whitespace (which prints stranegly as a symbol) and do not
clash with the <swig> class metaobject of the GOOPS wrapper.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-25 17:03:59 +00:00
Matthias Köppe
128784c26a
(SWIG_Guile_NewPointerObj): Return '() to represent null pointers.
...
This is for compatibility with the -gh version.
Also, GOOPS objects representing null pointers would behave very
badly, like segfaulting when one DESCRIBEs them.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5383 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-24 16:55:22 +00:00
Matthias Köppe
894d9cc4e9
Add a SWIG_contract_assert macro.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5379 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-23 20:29:07 +00:00
Matthias Köppe
2d7af13dd6
In -gh mode, don't forget to call SWIG_Guile_Init.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-23 18:47:20 +00:00
Luigi Ballabio
5e161fa7cd
Char and unsigned-char specialization added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-19 08:38:27 +00:00
Matthias Köppe
f0c73a2a80
Improvements to object-ownership management in
...
"-scm" mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-18 15:52:49 +00:00
Matthias Köppe
3e64557893
Merge new set of GOOPS changes by John Lenz.
...
GOOPS objects are now manipulated directly by the C code.
Some fixes to typemap-GOOPS interaction.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5254 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 23:15:19 +00:00
Matthias Köppe
5bdf8a84bc
Fix typos (class K, class T vs. class T, class u)
...
and include exception.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 18:38:04 +00:00
Matthias Köppe
b2b177eceb
Install common.scm.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5182 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-05 11:42:36 +00:00
Matthias Köppe
95520b20af
Remove symbol clashes between runtime libraries.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-05 11:36:52 +00:00
Matthias Köppe
2b63b996a8
Add GOOPS support, contributed by John Lenz.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5180 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-05 11:27:20 +00:00
Matthias Köppe
138a0a9dae
Fix memory leaks in the generated wrapper code.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-10 11:22:12 +00:00
Luigi Ballabio
62741dd03e
Typemap for size_t applied to std::size_t
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-17 11:52:31 +00:00
Luigi Ballabio
dcb94e7d4a
std::pair added (but not very much tested)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-10 12:42:42 +00:00
Matthias Köppe
30bcf4d0d1
Moved #defines for SWIG_malloc, SWIG_ConvertPtr et al. from %runtime
...
block into runtime file.
This fixes the build of the runtime library.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-18 13:16:23 +00:00
Matthias Köppe
36055df144
(SWIG_Guile_Init): Cast some strings to char* to avoid const-ness warnings.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-17 08:51:42 +00:00
Matthias Köppe
e5ac3696bc
Merged first chunk of Guile changes contributed by John Lenz.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 22:12:50 +00:00
Luigi Ballabio
7764b8227a
Added correct (I hope) typechecking for native scripting objects
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-22 13:01:44 +00:00
Luigi Ballabio
03658fcb4c
std::map ready for prime time (hopefully)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-11 15:38:02 +00:00
Luigi Ballabio
9d50216d9c
Support for std::map (thanks, Dave)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-27 10:05:55 +00:00
Luigi Ballabio
2c29e8ea58
Fixed typecheck for bools
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-19 08:28:59 +00:00
Luigi Ballabio
28aaf91ab6
Typemap fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4250 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-04 11:02:04 +00:00
Luigi Ballabio
32e0a3d8e7
A global stl.i works just as well
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-01-17 12:44:47 +00:00
Matthias Köppe
05c2429552
Fix for generated documentation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-12-19 17:32:42 +00:00
Dave Beazley
12a43edc2d
The great merge
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00
Matthias Köppe
88cca110e3
Fixed typo.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@879 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-22 08:36:39 +00:00
Matthias Köppe
b53f74cb5f
[Guile] New typemaps for FILE *.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-21 21:06:17 +00:00
Matthias Köppe
e867ed25a8
Incorporated patch #101430 , fixing bugs in the Guile module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@852 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 09:35:36 +00:00
Matthias Köppe
27705dc6ff
Updated Guile modules.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@815 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 20:06:32 +00:00
Dave Beazley
16ff68c288
Changed _swig_type_info to swig_type_info
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@799 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-02 16:25:50 +00:00
Matthias Köppe
4f2b313968
Free malloc'ed string copies after function call.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 15:27:58 +00:00
Matthias Köppe
7c42df5968
(GSWIG_scm2str) Simplified.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 15:03:09 +00:00