Commit graph

4,854 commits

Author SHA1 Message Date
Thien-Thi Nguyen
3201944c40 (libtool_comp, libtool_link): New vars.
(GUILE_INCLUDE, GUILE_LIB, GUILE_LIBOPTS): New vars.

(guile-hobbit, guile, guile_cpp, guile_static,
guile_static_cpp): New targets.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 08:37:36 +00:00
Thien-Thi Nguyen
1835caf6a0 (4/02/00): Expand entry; mention "-with-smobs".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@359 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 08:18:01 +00:00
Thien-Thi Nguyen
992ea555c3 New entry.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 07:46:33 +00:00
Thien-Thi Nguyen
a3b6cf78e6 {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@357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 07:40:33 +00:00
Thien-Thi Nguyen
96e56f9f99 {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@356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 07:36:33 +00:00
Thien-Thi Nguyen
ff67e9a068 {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@355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 07:24:47 +00:00
Thien-Thi Nguyen
0d37d85d0a {Changes contributed by Matthias Koeppe}
(SwigPtrType): Add member `tag' to this struct.

(SwigPtrTable): Add one level of indirection.

(swigsort, swigcmp, SWIG_RegisterMapping): Accomodate new `SwigPtrTable'.

(SWIG_SortTable, SWIG_GetPtrType, SWIG_Cast_Str): New funcs.

(SWIG_GetPtr): Rewrite.

(swig_tag): New static var, #ifdef `SWIGGUILE'.

(SWIG_Guile_MakePtr, SWIG_Guile_GetPtr, SWIG_Guile_MakePtr_Str,
SWIG_Guile_GetPtr_Str): New static funcs, #ifdef `SWIGGUILE'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 07:17:36 +00:00
Thien-Thi Nguyen
b8d6b7bb32 {Contributed by Matthias Koeppe}
Initial revision.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 07:05:24 +00:00
Thien-Thi Nguyen
e8182202b3 {Changes contributed by Martin Froehlich}
Add copyright.

Include libguile.h.

Include libguile/gdb_interface.h, after defining `GDB_TYPE'.
Expand pre-processor macro `GDB_INTERFACE'.

(inner_main): Renamed from `guile_main', rewritten.

(main): Rewritten.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-03 06:16:52 +00:00
Thien-Thi Nguyen
b990aba9a1 (NewString): Take DOH *' instead of char *'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-31 00:59:40 +00:00
Thien-Thi Nguyen
9e723892b0 (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@350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-31 00:57:18 +00:00
Dave Beazley
ce13fcd88a Fixed bizarre parsing problem related to typenames.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-21 05:52:59 +00:00
Dave Beazley
0d3b41b8f6 Minor fixes needed to support pointer.i library.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-19 04:40:04 +00:00
Dave Beazley
e9240d69cf Updated to compile with new type-checking implementation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-19 04:39:36 +00:00
Dave Beazley
3d2677bf51 Fixed bool handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-19 03:16:54 +00:00
Ian Cooke
5a483c611f Added target 'Swithe'. Expat now builds.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@345 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-17 03:24:16 +00:00
Dustin Mitchell
cb6ea1b83d 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@344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-16 02:53:57 +00:00
Dave Beazley
7ecba53a9b Modified to use StringType functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-15 04:59:50 +00:00
Dave Beazley
60abd72960 Renamed string type encoding functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@342 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-15 04:58:52 +00:00
Dave Beazley
e772e0ac3c Renamed to StringType functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@341 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-15 04:58:25 +00:00
Dave Beazley
d3c1008f95 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@340 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-15 04:57:47 +00:00
Dustin Mitchell
e424c5bc21 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@339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-14 23:17:48 +00:00
Dave Beazley
0ba81b924e *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-13 17:41:14 +00:00
Dave Beazley
8e87676c97 Added purify patches reported by Ram Bhamidipaty
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-13 17:25:53 +00:00
Dave Beazley
ad35e023cd Bumped version number
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@336 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-13 17:25:11 +00:00
Ian Cooke
9004be4ee7 Added Source/Swithe/Makefile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@335 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-09 22:17:09 +00:00
Harco de Hilster
75fd6feb63 added a typemap example for java
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-06 11:56:10 +00:00
Harco de Hilster
19656d8bca *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-06 10:15:38 +00:00
Harco de Hilster
f66c034759 String x = "";, dumps core now in the destructor, changed to String x;
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-05 18:07:28 +00:00
Harco de Hilster
74c7af45f7 added java support in the GIFPlot example
some minor changes where needed in the interface file


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@331 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-05 18:05:55 +00:00
Harco de Hilster
f6f291ac35 added example of mixing hand written jni code with swig
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-05 18:03:27 +00:00
Harco de Hilster
42d2c33bda added configure support for java
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@329 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-05 15:36:29 +00:00
Thien-Thi Nguyen
97d9574182 (emit_linkage): Fix typo.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-05 07:08:07 +00:00
Thien-Thi Nguyen
4724d94978 (GUILE::parse_args): Fix OBOE w/ `orig_len'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@327 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-05 07:04:28 +00:00
Thien-Thi Nguyen
4da9b18033 (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@326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-04 02:52:40 +00:00
Thien-Thi Nguyen
6a66aff5cf (GUILE::guile_path): Delete this unused var.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@325 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-04 02:47:37 +00:00
Thien-Thi Nguyen
928ad5432b New entry.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@324 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-04 02:29:55 +00:00
Thien-Thi Nguyen
7d99abc855 (INCLUDE): Also include ../Include in build dir.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-04 01:12:07 +00:00
Thien-Thi Nguyen
a7c4e23fd4 (LIB_DIR): Delete unused var.
(BIN_DIR): Use `@bindir@'.

(MKINSTDIRS): New var.

(INSTALL, INSTALL_DATA, INSTALL_PROGRAM, install-main,
install-lib): Rewrite to support non-local build.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-04 01:11:19 +00:00
Thien-Thi Nguyen
c261f94d9b Initial revision.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-04 00:13:31 +00:00
Thien-Thi Nguyen
9d5fea5382 (INCLUDE): Also include . in build dir.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-03 23:17:17 +00:00
Thien-Thi Nguyen
8c4403c65d (install): Look in `srcdir' for doh.h.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@319 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-03 23:11:19 +00:00
Thien-Thi Nguyen
9b74f4cbd7 (INCLUDE): Also include ../Include build dir.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-03 23:07:39 +00:00
Thien-Thi Nguyen
82c6ba6e12 Fix typo.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@317 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 23:58:03 +00:00
Thien-Thi Nguyen
e065fedb78 (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@316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 23:35:48 +00:00
Thien-Thi Nguyen
97180ec23b Also handle `char *' for both input and output sets.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 22:49:36 +00:00
Thien-Thi Nguyen
4b0d0af5ea (GSWIG_scm2str): New func.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@314 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 22:49:10 +00:00
Dave Beazley
b2c12bc4de Added linkage variable as an int. This is a wild-guess
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@313 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 03:28:52 +00:00
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
936e3225a9 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@311 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-03-02 01:57:49 +00:00