Commit graph

658 commits

Author SHA1 Message Date
Thien-Thi Nguyen
72877ce6e6 Remove rejected merge frags and surrounding `TTN_NEW_CODE' tags.
(guile_usage): Document new guile-specific option `-linkage'.
Also add warning: guile support likely to be broken.

(GUILE_LSTYLE_LTDLMOD, GUILE_LSTYLE_HOBBIT): New cpp definitions.

(GUILE::GUILE): Use empty string for default `package'.
Add initialization of `linkage'.

(GUILE::parse_args): Handle "-linkage".

(GUILE::close): Specialize generated initialization based on `linkage'.

(mreplace, throw_unhandled_guile_type_error): New static funcs.

(GUILE::create_function): Fix output formatting bug.  (Thanks to
Matthias Koeppe.)
Factor out `mreplace' and `throw_unhandled_guile_type_error'.
Remove "T_*" type-handling, which is now handled by declaring
typemaps in Lib/guile/typemaps.i.
Restructure nested "if" as cascading "else if", terminating w/ error.

(GUILE::link_variable): Remove "T_*" type-handling, which is now handled
by declaring typemaps in Lib/guile/typemaps.i.
Restructure nested "if" as cascading "else if", terminating w/ error.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 02:01:54 +00:00
Dave Beazley
5c3b69e521 Fixed bug in nested classes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-01 20:20:22 +00:00
Dave Beazley
9052774a2f Removed 'mutable'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-29 21:03:57 +00:00
Dave Beazley
4177752de5 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-29 20:34:22 +00:00
Dave Beazley
6e4e3c8aee Added DOH
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-29 20:28:23 +00:00
Dave Beazley
95724b0e8f Added DohGetVoid() and DohSetVoid()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-29 20:19:46 +00:00
Dave Beazley
1765b9dac4 Slight changes to parameter lists
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@296 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-29 20:19:25 +00:00
Dave Beazley
c38e38f2a7 Added object destruction patch (provided by karl forner).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-29 17:38:35 +00:00
Dave Beazley
b62c688906 Removed dependency on the Hash object
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 22:56:02 +00:00
Dave Beazley
b8cf4fefa6 Oops.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@289 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 18:23:39 +00:00
Dave Beazley
78eee44879 Cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 17:19:55 +00:00
Dave Beazley
abf7e68b87 Various performance improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@287 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 17:12:43 +00:00
Dave Beazley
e95de96c72 Added matching code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@286 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 17:05:46 +00:00
Thien-Thi Nguyen
20302a2abf Include mod11.h instead of swig11.h.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@282 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 11:16:12 +00:00
Thien-Thi Nguyen
6bbfaa80fc (GUILE::set_module, GUILE::set_init, GUILE::headers,
GUILE::initialize, GUILE::close, GUILE::get_pointer,
GUILE::create_function, GUILE::link_variable,
GUILE::usage_var): Remove debugging output.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@281 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 11:11:03 +00:00
Dave Beazley
77cb823ab6 Slash, burn, crash, crumble. Don't mind me.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@279 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-27 03:47:17 +00:00
Dave Beazley
4ea673bb03 Removed reference to emit_hex (see note in code).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@278 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-27 02:33:05 +00:00
Dave Beazley
6c190feed4 Removed dependence on SWIG1.1/symbol.cxx
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@276 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-26 21:45:59 +00:00
Dave Beazley
212524899c Slight tweak to parse() method.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-26 20:35:55 +00:00
Dave Beazley
8565fcf8c8 Added SWIG1.3 to include search path
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-26 20:19:56 +00:00
Dave Beazley
0ca9037e90 Modified language modules to include mod11.h instead of swig11.h
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-26 20:19:34 +00:00
Dave Beazley
7f58059a29 Fixed performance problem with setscope.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@271 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-26 15:56:01 +00:00
Dave Beazley
2bbdb1f30e Fixed major performance problem with setscope.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-26 15:55:52 +00:00
Thien-Thi Nguyen
366660042c {Changes to enable non-local build}
(srcdir, VPATH): New vars.  Use where appropriate.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-26 05:06:40 +00:00
Dave Beazley
0f9ea893f0 Constified a bunch of stuff.... it was bound to happen anyway.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@263 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-26 04:34:05 +00:00
Dave Beazley
53b3954dbe Added tree.c
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-25 00:20:04 +00:00
Thien-Thi Nguyen
be10e02777 (NewString): Declare arg const.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-25 00:04:55 +00:00
Dave Beazley
de0f7063b0 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-24 23:18:30 +00:00
Dave Beazley
7683484192 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@259 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-24 20:48:38 +00:00
Thien-Thi Nguyen
ea65307e2c {Incorporate support contributed by Clark McGrew.}
(guile_usage): Include new options "-module", "-prefix" and "-package".

(GUILE::GUILE): Move definition here from header file.
Init new data members.

(GUILE::parse_args): Handle new options.

(GUILE::set_init): Abort when called, for now.

(GUILE::initialize): Don't define `SWIG_init' in output.
Use computed function name directly.

(GUILE::close): Output module registration.

(GUILE::get_pointer): Use `f.code' instead of `f_wrappers'.

(GUILE::create_function): Large rewrite.

(GUILE::link_variable): Look for type `T_CHAR'
instead of status `STAT_READONLY'.

(GUILE::declare_const): Check typemap first.

(GUILE::usage_func, GUILE::usage_var, GUILE::usage_returns,
GUILE::usage_const): Rewrite.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@257 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-24 18:44:03 +00:00
Thien-Thi Nguyen
71fac9147a {Incorporate support contributed by Clark McGrew.}
(prefix, package): New data members.
(get_pointer): Take additional arg `WrapperFunction&'.
(usage_var, usage_func, usage_const): Last arg now `String&'.
(usage_returns): New func.

(GUILE): Move definition into guile.cxx.
(parse_args, parse, create_function, link_variable,
declare_const, initialize, headers, close, set_module,
set_init, create_command): Don't declare these virtual.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@256 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-24 18:24:07 +00:00
Dave Beazley
be8f54b791 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-24 15:51:24 +00:00
Dave Beazley
10fc461e40 Added typemaps/C++ back in.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@254 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-23 23:54:44 +00:00
Dave Beazley
4061c3c19b Bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@253 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-23 05:57:23 +00:00
Dave Beazley
4e69c9d995 Major reworking
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@252 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-23 05:56:10 +00:00
Dave Beazley
4084c90135 Fixed particularly sneaky bug in Hash_setattr() when an existing hash table item
is set to a new value (the old value was improperly deleted in certain cases).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-23 05:48:03 +00:00
Dave Beazley
e1f39fc269 Added another experimental type implementation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@250 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-22 20:51:33 +00:00
Dave Beazley
6e9b60f078 Python Improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-22 20:49:38 +00:00
Dave Beazley
840a4f83ff Minor improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-22 20:46:54 +00:00
Dave Beazley
b198b70c5a Performance
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@247 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-16 17:59:37 +00:00
Dave Beazley
824a5e9b02 More performance improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-16 17:55:33 +00:00
Dave Beazley
5f071d9adf Bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@245 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-16 17:54:01 +00:00
Dave Beazley
53c1d332e4 Another stupid bug.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-15 23:06:38 +00:00
Dave Beazley
6bd099a854 Bogus fix.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@241 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-15 22:36:42 +00:00
Dave Beazley
af22860c64 Bug fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-15 19:34:09 +00:00
Dave Beazley
01ab2bc6ec bugfix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@239 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-15 19:33:19 +00:00
Dave Beazley
6c52dd668b Optimizations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@238 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-15 19:32:45 +00:00
Thien-Thi Nguyen
575a367f2b (Verbose): New extern var.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-12 06:57:14 +00:00
Thien-Thi Nguyen
e4f2a35328 (Verbose): New global var. This used to be an automatic var in
function `SWIG_main', but was deleted (w/o deleting "-v" parsing).

(SWIG_main): Set `Verbose' during option parsing.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-12 06:55:38 +00:00
Thien-Thi Nguyen
e0957d51e2 VERSION, Source/Include/swigver.h.in: New files.
Source/Include/swigver.h: Deleted from repo, now generated by
configure from swigver.h.in same directory.

configure.in: Source ./VERSION to get var definitions.
(PACKAGE, VERSION, SWIG_VERSION, SWIG_SPIN): New vars, @-substituted.
Also do `AC_OUTPUT' on Source/Include/swigver.h.

Makefile.in (dd): New var, the distribution directory.
(dist, dist-suggested): New targets.

Source/SWIG1.1/emit.cxx (emit_banner): Use `SWIG_VERSION' instead
of integers `SWIG_VERSION_MAJOR' and `SWIG_VERSION_MINOR' (which are
deleted).

Source/SWIG1.1/main.cxx (SWIG_main): Likewise.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@235 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-12 02:21:22 +00:00