Commit graph

79 commits

Author SHA1 Message Date
Dave Beazley
1096e69b96 Moved location of extern "C" (patch for Python 1.6 compilation).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 20:38:34 +00:00
Dave Beazley
3f80052155 Fixed type-checking problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 17:57:29 +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
Matthias Köppe
a82f83b19d Handle more than 10 args.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 12:12:40 +00:00
Matthias Köppe
d5431492ae Fixed handling of char types.
Added support for optional arguments.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 21:53:49 +00:00
Matthias Köppe
b7055de184 Added documentation for variable and constant wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 19:54:45 +00:00
Matthias Köppe
887d79cae3 Use the nice type name for printing pointer objects.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 15:48:43 +00:00
Dave Beazley
7d4ec03048 Added 'str' member to the _swig_type_info structure. This contains a "nice"
string representation of the mangled datatype.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@725 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 15:14:16 +00:00
Masaki Fukushima
1fe2810618 '-toplevel' option obsoleted.
C++ comment removed and copyright notice added.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@723 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 14:28:57 +00:00
Matthias Köppe
74ac578ba8 File insertion now data-driven via %insert.
Using %define for multiline defines.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 08:50:06 +00:00
Dave Beazley
250bb3e289 Bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@719 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 03:35:05 +00:00
Matthias Köppe
597c3f8ebe Updated Guile runtime code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 17:30:50 +00:00
Matthias Köppe
aeba1f7c50 New Guile command-line argument "-procdoc", specifying procedure
documentation output file.
Fixed "-Linkage" parsing.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@715 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 12:05:01 +00:00
Matthias Köppe
2fd0d3f570 Added configuration file for Guile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@713 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 08:50:34 +00:00
Dave Beazley
e39f8ce229 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@710 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 01:50:08 +00:00
Matthias Köppe
3768eb73db Major clean up in the Guile module.
Started new typemap-based procedure documentation system.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-28 21:53:47 +00:00
Dave Beazley
7d81d564a2 Eliminated compiler warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@700 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-28 19:04:39 +00:00
Matthias Köppe
5dd93a433c New typemaps for ANSI C size_t' and ptrdiff_t' types.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-27 20:23:17 +00:00
Matthias Köppe
f5af65aecc Fixed last change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-27 20:22:41 +00:00
Masaki Fukushima
aa1f1ac3c2 Ruby module changed to use pointer object instead of mangled string.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-27 15:43:59 +00:00
Thien-Thi Nguyen
5863d08aa4 (_swig_type_info): New struct typedef.
(_swig_types_initial): New pre-processor macro.
(SWIG_Guile_RegisterTypes): New func decl.
(SWIG_Guile_Init, SWIG_Guile_GetPtr_Str): No longer declare.
(SWIG_Guile_GetPtr, SWIG_Guile_MakePtr): Take `_swig_type_info'
instead of obsolete `SwigPtrType'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@685 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-21 17:03:56 +00:00
Harco de Hilster
d84664faa8 added wstring typemap. contributed by:
Wenyue Yu <wenyue@stud.ntnu.no>
         tal@slt.atr.co.jp


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@683 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-21 11:06:27 +00:00
Dave Beazley
475fc1b442 Added SWIG_MakePtr() and made other fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-18 20:12:17 +00:00
Dave Beazley
ab5bdaf8b6 Perl5 changes. Bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@669 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-17 21:14:33 +00:00
Dave Beazley
3c19492ef6 Removed compiler warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-17 02:28:12 +00:00
Dave Beazley
c9a1a80211 Bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-16 18:12:50 +00:00
Dave Beazley
3dfabddeee Moved generic type-checking code to common.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@659 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-15 21:28:21 +00:00
Harco de Hilster
2aa97936ea changed c++ string argout typemap to freearg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@647 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-14 07:20:24 +00:00
Dave Beazley
5f5f2213af Applied memory leak patch.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-10 03:17:39 +00:00
Harco de Hilster
33247d0e3c added java exception support submitted by Tal Shalif <tal@slt.atr.co.jp>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@614 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-04 08:21:20 +00:00
Harco de Hilster
c86069d4f6 added string typemaps send by Tal Shalif <tal@slt.atr.co.jp>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-04 08:20:18 +00:00
Thien-Thi Nguyen
715e3e39eb (SWIG_MakePtr, SWIG_GetPtr): Delete these declarations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-24 16:15:44 +00:00
Masaki Fukushima
0cedebe44f (Ruby Support): Fix some type mangle problem in Ruby library.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-22 10:52:19 +00:00
Thien-Thi Nguyen
7d7fb78130 (SwigPtrType): Delete member `len' from this struct.
(SwigCacheType): Delete this struct and corresponding typedef.
(SwigStart): Delete this array.
(SWIG_CACHESIZE, SWIG_CACHEMASK): Delete these macros.
(SwigCache, SwigCacheIndex, SwigLastCache): Delete these
file-static vars.

(SWIG_RegisterMapping, SWIG_SortTable, SWIG_GetPtrType,
SWIG_Cast_Str, swigsort, swigcmp): No longer support
non-"with-smobs" handling.

(SWIG_MakePtr, SWIG_GetPtr): Delete these funcs.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-20 19:46:09 +00:00
Dave Beazley
e5c28c7007 Fixed memory leak in Python pointer type-checking code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@573 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-12 20:05:08 +00:00
Thien-Thi Nguyen
618e0eff61 Add Ruby support contributed by Masaki Fukushima.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-05 18:58:49 +00:00
Dave Beazley
e41edc6944 Fixed array deletion problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-20 16:08:06 +00:00
Dave Beazley
7242c6daf7 Applied Oleg's MzScheme patches
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-19 00:29:04 +00:00
Dustin Mitchell
c2f1faa3db Added [] to array deletions -- the "more correct" way to do things in
C++.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-01 18:13:50 +00:00
Thien-Thi Nguyen
528bbe82d0 Rewrite. (Thanks to Oleg Tolmatcev.)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@425 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-17 16:05:49 +00:00
Thien-Thi Nguyen
d58fac2856 Re-add INPUT/OUTPUT/BOTH typemaps (that were previously deleted).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:33:31 +00:00
Thien-Thi Nguyen
a7a9b355b9 Use the `SWIG_NOINCLUDE' preprocessor symbol to indicate that
SWIG runtime functions are imported from a different module, as
it is done in other language modules.  This primarily affects
the preprocessor symbol `SWIGSTATIC'.

(SWIG_init): Make this function globally visible only in simple
linkage (the user should rename the function by a #define in
this case).  In other linkages, this func is static.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:27:47 +00:00
Thien-Thi Nguyen
b14034162e (swigcmp): Fix type-access bug when using
"-with-smobs": Use `strcmp' instead of `strncmp'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@412 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:18:14 +00:00
Thien-Thi Nguyen
dfba9a8d7b Add exception support for Guile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:01:37 +00:00
Thien-Thi Nguyen
9b441d2630 Initial revision
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:26:59 +00:00
Thien-Thi Nguyen
2798ba0983 bye bye
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@374 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 22:09:54 +00:00
Thien-Thi Nguyen
e3500593e7 (inner_main): Do not declare `SWIG_init()'.
This has been moved to guiledec.swg.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 15:11:57 +00:00
Thien-Thi Nguyen
ce7f12c699 (SWIG_init): New func decl.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 14:59:33 +00:00
Thien-Thi Nguyen
cf1c8e097f {Changes contributed by Matthias Koeppe}
(SwigPtrType, SwigCacheType): Define these structs.

(SwigPtrMax, SwigPtrN, SwigPtrSort, SwigStart, SwigPtrList,
SwigPtrTbl, SwigCache, SwigCacheIndex, SwigLastCache,
swig_tag): New static vars.

(swigsort, swigcmp, SWIG_RegisterMapping, SWIG_MakePtr, SWIG_SortTable,
SWIG_GetPtrType, SWIG_Cast_Str, SWIG_GetPtr, SWIG_Guile_MakePtr,
SWIG_Guile_MakePtr_Str, SWIG_Guile_GetPtr_str, SWIG_Guile_GetPtr,
print_swig, equalp_swig, SWIG_Guile_Init): New static funcs.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 07:24:47 +00:00