Commit graph

184 commits

Author SHA1 Message Date
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
Dave Beazley
caedf61f94 Added __STDC__ definition.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-11 21:45:30 +00:00
Dave Beazley
2768452a27 Fixed sneaky whitespace problem in preprocessor.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-11 21:29:37 +00:00
Dave Beazley
a23f1a1285 Added $ndim variable to typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-11 19:48:39 +00:00
Dave Beazley
e52a46d271 Minor fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@228 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-11 19:48:20 +00:00
Dave Beazley
59a1fe6847 Minor bug fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@226 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-11 19:47:56 +00:00
Dave Beazley
38c205e4bc Slight change to type-table code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-10 22:09:55 +00:00
Dave Beazley
9c0653c9b7 Slight change to type-handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@214 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-10 22:09:43 +00:00
Dave Beazley
9ac20f4190 Fixed some problems with constants.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@213 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-10 22:09:31 +00:00
Dave Beazley
34ed03f10b Removed the documentation system. A lot of cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@208 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-10 19:41:28 +00:00
Dave Beazley
890e6f131c Minor cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@207 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-10 15:06:19 +00:00
Dave Beazley
4cd75eeece A bunch of cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-10 04:22:50 +00:00
Dave Beazley
cad299389b Completed Tcl global variable linking.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@202 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-08 23:03:16 +00:00
Dave Beazley
f09c6b0d37 Changed code-generation for constants to use a table instead of repeated function
calls in the initialization function.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-04 17:20:57 +00:00
Dave Beazley
e48b0c0d5b Minor fixes to type handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-04 05:26:38 +00:00
Dave Beazley
44ff6db365 Fixed so that setting an attribute to a NULL object has no effect.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-03 18:01:51 +00:00
Dave Beazley
bb957862f9 Fixed so that setting an index to a NULL object has no effect.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-03 18:01:31 +00:00
Dave Beazley
6ac18b4b64 Work on Tcl global variable support.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@187 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-02 23:36:49 +00:00
Dustin Mitchell
1dc18b6b2e Bitten by order of operations! The ? operator has weird precedence
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@186 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-02 18:55:57 +00:00
Dave Beazley
50593ab737 Fixed slight bug with type-checker in Python module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@184 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-02 16:43:13 +00:00
Dave Beazley
1922afaccd Commented out broken code with ? operations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@183 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-02 16:39:16 +00:00
Dave Beazley
2d6e071d20 Performance enhancements to Python module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-02 07:02:42 +00:00
Dave Beazley
078fffaada Minor changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@178 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-02 04:36:31 +00:00
Dave Beazley
b8bc77dd3e Oops. Reverted operation of the preprocessor back to normal SWIG1.1 behavior.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@176 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-02 04:30:08 +00:00
Dave Beazley
b6caf1fb9f Upgraded to use new pointer type-checking scheme.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@175 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-02 04:28:54 +00:00