Commit graph

253 commits

Author SHA1 Message Date
Thien-Thi Nguyen
b0fa80612d Include mzscheme.h.
(usage): Add "-mzscheme" as another target language option.
(main): Recognize "-mzscheme".


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@396 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:34:40 +00:00
Thien-Thi Nguyen
3b8800e77f (OBJS): Add mzscheme.o.
(SRCS): Add mzscheme.cxx.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:30:51 +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
Dave Beazley
9cfba9a811 Cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 22:47:51 +00:00
Dave Beazley
bd6fb3ab4a Cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 22:47:11 +00:00
Dave Beazley
e247a550ca Removed scope stuff.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 22:46:46 +00:00
Dave Beazley
6d0e918349 Various memory cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 22:46:00 +00:00
Dave Beazley
78aaa04f05 Cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 04:21:34 +00:00
Dave Beazley
b0a4d41a5f Some memory management cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@386 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 04:21:10 +00:00
Dave Beazley
a774679eaa Name cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 03:38:23 +00:00
Dave Beazley
1d9ab3c0cf Name cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@384 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 03:37:37 +00:00
Dave Beazley
54faa9e540 Minor changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@383 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 03:19:30 +00:00
Dave Beazley
b0789c3849 Added a few alternative names for DOH objects.
DOHString, DOHList, DOHHash, etc...


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 03:17:12 +00:00
Dave Beazley
4e3745e362 Fixed maxsize problem in string constructor.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 02:46:27 +00:00
Dave Beazley
4afe234098 Removed bool type--won't compile with some compilers (such as mine)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-04 15:16:51 +00:00
Dave Beazley
d3a396b1d1 Fixed Makefile problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@379 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-04 15:16:10 +00:00
Thien-Thi Nguyen
17bdafa01a (GUILE::initialize): Fix typo introduced in last commit -- argh!
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@377 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-04 06:31:00 +00:00
Thien-Thi Nguyen
bf4537ca2f (GUILE::GUILE): Default `linkage' is simple.
(GUILE::initialize): Fix bug: Use `SWIGSTATIC'
pre-processor macro to match declaration.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-04 05:45:52 +00:00
Thien-Thi Nguyen
bc65d71341 (GUILE_LSTYLE_LTDLMOD, GUILE_LSTYLE_HOBBIT): Delete these
pre-processor macros.  These identifiers are now enum values
defined in guile.h.

(GUILE::initialize): Remove old-style cruft, no functional change.

(GUILE::emit_linkage): Now a member of class `GUILE'.
Handle `GUILE_LSTYLE_SIMPLE'.

(GUILE::close): Update call to `emit_linkage'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@369 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 15:08:30 +00:00
Thien-Thi Nguyen
90e0bc6b4d (GUILE::linkage): This data member is now an enum, defined inline.
(GUILE::emit_linkage): New private member method.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@368 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 15:03:21 +00:00
Thien-Thi Nguyen
8cdbaf29d2 {Changes contributed by Matthias Koeppe}
(GUILE): Declare new data member `with_smobs' for this class.
Member method `get_pointer' now takes two additional args,
namely `String &proc_name' and `int num_scheme_parm'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 07:40:33 +00:00
Thien-Thi Nguyen
3286cc871a {Changes contributed by Matthias Koeppe}
(guile_usage): Add blurb on `-with-smobs'.

(GUILE::GUILE): Init new data member.

(GUILE::parse_args): Recognize "-with-smobs".

(GUILE::headers): Rewrite.

(GUILE::initialize): In generated `SWIG_init', call `SWIG_Guile_Init'.

(emit_linkage): Fix omission bug: Generated func now returns a value.

(GUILE::close): Re-activate call to `emit_ptr_equivalence'.

(GUILE::get_pointer): Take two additional args: `proc_name'
and `num_scheme_parm'.  Update callers.
Add handling when `with_smobs'.
Also generate exception-raising code.

(GUILE::create_function): Call `get_pointer' w/ proper args.
Add handling when `with_smobs'.

(GUILE::link_variable): Add handling when `with_smobs'.
Make generated error message more informative.
Also generate exception-raising code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 07:36:33 +00:00
Thien-Thi Nguyen
e618e1c5bf (NewString): Take DOH *' instead of char *'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-31 00:59:40 +00:00
Thien-Thi Nguyen
d5ce3c44af (NewString, String_check, List_check, Hash_check): For these function
declarations, constify arg to match ../DOH/Include/doh.h.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-31 00:57:18 +00:00
Dave Beazley
3a3f006de7 Fixed bizarre parsing problem related to typenames.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-21 05:52:59 +00:00
Dave Beazley
057fbc7d83 Fixed bool handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-19 03:16:54 +00:00
Dustin Mitchell
87cf7e1732 Cleaned up code to convert to/from the string representation; improved
string representation sufficiently that it now represents cleanly
everything that the DOH object representation can.  Comparison on DOH type
objects now tests only for complete equivalence of form, and should match
string comparison of string representations.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-16 02:53:57 +00:00
Dave Beazley
5a7d55c065 Modified to use StringType functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-15 04:59:50 +00:00
Dave Beazley
d6c4c39b26 Renamed string type encoding functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@342 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-15 04:58:52 +00:00
Dave Beazley
35d28e7517 Renamed to StringType functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@341 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-15 04:58:25 +00:00
Dave Beazley
89a7c985d8 Renamed my (bogus) string-based type encoding functions to
"StringType_<blah>" to avoid confusion with functions that operate on real types.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@340 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-15 04:57:47 +00:00
Dustin Mitchell
cad037143c Added code to suck up a Dave-Type-String and create a real type from it.
Should mostly work, probably needs some minor debuggering.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-14 23:17:48 +00:00
Dave Beazley
a49f8fef5f Added purify patches reported by Ram Bhamidipaty
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-13 17:25:53 +00:00
Harco de Hilster
94119a92bb *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-06 10:15:38 +00:00
Harco de Hilster
1594189ea9 String x = "";, dumps core now in the destructor, changed to String x;
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-05 18:07:28 +00:00
Thien-Thi Nguyen
b6198ffe09 (emit_linkage): Fix typo.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-05 07:08:07 +00:00
Thien-Thi Nguyen
3cd435c3f5 (GUILE::parse_args): Fix OBOE w/ `orig_len'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@327 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-05 07:04:28 +00:00
Thien-Thi Nguyen
e05f5cda99 (emit_linkage): Fix bug: Use "PATH TO MOD" instead of
"PATH/TO/MOD" for hobbit linkage.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-04 02:52:40 +00:00
Thien-Thi Nguyen
485c3591f2 (GUILE::guile_path): Delete this unused var.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@325 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-04 02:47:37 +00:00
Thien-Thi Nguyen
ae507a5600 (INCLUDE): Also include ../Include in build dir.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-04 01:12:07 +00:00
Thien-Thi Nguyen
c7112656b8 (INCLUDE): Also include . in build dir.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-03 23:17:17 +00:00
Thien-Thi Nguyen
851763dfb2 (install): Look in `srcdir' for doh.h.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@319 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-03 23:11:19 +00:00
Thien-Thi Nguyen
95035a8431 (INCLUDE): Also include ../Include build dir.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-03 23:07:39 +00:00
Thien-Thi Nguyen
cd47f52031 (guile_usage): Move warning to end where it's more prominent.
Document default values.  Recognize "-Linkage".

(GUILE::GUILE): Set global var `typemap_lang' here.
Change class-member `prefix' and `package' inits.

(GUILE::parse_args): Recognize "-Linkage" instead of "-linkage".
This anomoly is due to top-level parsing not respecting language-
specific options; "-linkage" aliases to "-l inkage".
Don't set global `typemap_lang'.

(emit_linkage): New func, w/ code from `GUILE::close'.
(GUILE::close): Factor out code to `emit_linkage'.

(GUILE::create_function, GUILE::link_variable,
GUILE::declare_const): Don't use `name_wrapper'.
Simplify naming to always start w/ `prefix'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 23:35:48 +00:00
Dave Beazley
ef2d1f1d89 Added linkage variable as an int. This is a wild-guess
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@313 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 03:28:52 +00:00
Thien-Thi Nguyen
c553b7a53f 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/SWIG@312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 02:01:54 +00:00
Dave Beazley
aff495252c Fixed bug in nested classes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-01 20:20:22 +00:00
Dave Beazley
c7e8faee1a Removed 'mutable'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-29 21:03:57 +00:00
Dave Beazley
b2309afd8b *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-29 20:34:22 +00:00
Dave Beazley
19762ec9fe Added DOH
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-29 20:28:23 +00:00