Commit graph

285 commits

Author SHA1 Message Date
Thien-Thi Nguyen
0deaef77eb (DohGetInt, DohGetDouble): Cast args to atoi()' and atof()'
to `char *', respectively.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@439 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 08:00:51 +00:00
Thien-Thi Nguyen
250b280a50 (find_key): First arg now has type `DOH *' to match callers.
Internally, this is immediately converted to `char *'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 07:59:31 +00:00
Thien-Thi Nguyen
dde5ce2326 (Preprocessor_expr_init): Use `void' arg instead of empty list.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@437 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 07:52:57 +00:00
Thien-Thi Nguyen
e4d3669a88 (expand_macro): Do not declare global
func `Preprocessor_parse' locally!


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 07:52:08 +00:00
Thien-Thi Nguyen
7ae6625c0b (Preprocessor_parse): Synch decl w/ definition in cpp.c.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 07:49:25 +00:00
Thien-Thi Nguyen
0f2982b3ef (Preprocessor_expr_init): Declare.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 07:06:51 +00:00
Thien-Thi Nguyen
5e17967930 (DohObjInfo): Rename struct member doh_reserved' to be doh_scope'
and make its signature match those in this slot in super.c and types.c.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@433 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 06:34:23 +00:00
Thien-Thi Nguyen
ab1e1252e4 Include ctype.h as dependency.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 06:17:02 +00:00
Thien-Thi Nguyen
7f1079a5e0 (StringType_get_tag): Fix omission bug: Cast `DohMalloc()'
return value to `char *'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 06:16:37 +00:00
Thien-Thi Nguyen
e568c92658 (GUILE::link_variable): Fix omission bug: Handle generated
local vars when `with_smobs'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-10 23:27:52 +00:00
Thien-Thi Nguyen
19cd5a3aec (GUILE::create_function): Silence compiler warnings: Delete
unused local vars `need_len' and `need_tempc'.  Also, only
generate `_len' and `_tempc' when not `with_smobs'.  (Thanks to
Matthias Koeppe.)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@428 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-05 17:35:30 +00:00
Thien-Thi Nguyen
8831c9d7e8 (MZSCHEME::headers): Cleanup.
(MZSCHEME::get_pointer): Rewrite.

(MZSCHEME::create_function): Declare local var `_len' after `_tempc'.
Check `argout_set' before generating `scheme_void' return value.
Use `swig_make_c_pointer' for pointers.
Generated local var `_values' is now an array of pointers.

(MZSCHEME::link_variable): Rewrite using `swig_get_c_pointer'
and `swig_make_c_pointer'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-17 15:58:36 +00:00
Dave Beazley
f60c0d540b Cleanup and memory reduction.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@423 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-16 02:50:54 +00:00
Dave Beazley
c4216cdc4d *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-13 04:52:46 +00:00
Dave Beazley
0dced3617d *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@421 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-13 04:39:06 +00:00
Dave Beazley
494d88aa06 Added banner.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-13 03:29:27 +00:00
Dave Beazley
461ecac467 Added include directory.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-13 03:24:17 +00:00
Dave Beazley
359fcc406b A few minor tweaks to file behavior. Strings should use a little less memory too.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@418 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-13 03:15:34 +00:00
Thien-Thi Nguyen
d129078024 (String &operator<<, String &operator>>): Declare source
argument const for these funcs to silence compiler warnings.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:48:41 +00:00
Thien-Thi Nguyen
4dd74fc283 (GUILE::headers): Fix conformance bug: 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.

(GUILE::initialize): Rework `SWIG_init' declaration, so that it
is globally visible only in simple linkage (the user should
rename the function by a #define in this case).

(GUILE::emit_linkage): In call to `scm_register_module_xxx',
cast 2nd arg to `void *'.

(GUILE::create_function): In conjunction w/ exception handling,
generate setting of preprocessor macro `SCHEME_NAME' at the
beginning of the function wrapper, and a corresponding undef at
the end.

(GUILE::link_variable): Fix bug: Printf the C string, not the
String class.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:44:15 +00:00
Thien-Thi Nguyen
812078fadb (PARSER): Prefix w/ `$(srcdir)/'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@409 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 08:04:53 +00:00
Dave Beazley
5116050a4d *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 22:54:26 +00:00
Dave Beazley
a5e17f9610 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 22:48:47 +00:00
Dave Beazley
1b34892d53 Added warning message.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 22:48:42 +00:00
Dave Beazley
fe89f85915 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@405 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 21:23:07 +00:00
Dave Beazley
9b0c8dc542 Added SwigWrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 21:22:56 +00:00
Dave Beazley
23fc1040cf Work in progress
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@403 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 04:32:11 +00:00
Dave Beazley
b46fb97f48 Added SwigWrapper object.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 04:31:37 +00:00
Dave Beazley
5b006b5fa9 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@401 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 03:59:54 +00:00
Dave Beazley
0b6dc00640 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@400 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-10 16:11:30 +00:00
Dave Beazley
b0da03b33f Rewrote.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-10 15:25:07 +00:00
Dave Beazley
38aed58bfc Cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-10 15:24:43 +00:00
Thien-Thi Nguyen
57606bf177 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@396 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:34:40 +00:00
Thien-Thi Nguyen
88c75fc1eb (OBJS): Add mzscheme.o.
(SRCS): Add mzscheme.cxx.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:30:51 +00:00
Thien-Thi Nguyen
8d704fbc0f Initial revision
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:26:59 +00:00
Dave Beazley
eff632b744 Cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 22:47:51 +00:00
Dave Beazley
651658a319 Cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 22:47:11 +00:00
Dave Beazley
90c985c6b4 Removed scope stuff.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 22:46:46 +00:00
Dave Beazley
bc14ebb87e Various memory cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 22:46:00 +00:00
Dave Beazley
7540a5f98a Cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 04:21:34 +00:00
Dave Beazley
72c2fe99d9 Some memory management cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@386 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 04:21:10 +00:00
Dave Beazley
23428d732c Name cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 03:38:23 +00:00
Dave Beazley
9f92983369 Name cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@384 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 03:37:37 +00:00
Dave Beazley
8b592968b4 Minor changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@383 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 03:19:30 +00:00
Dave Beazley
784cb6a23d Added a few alternative names for DOH objects.
DOHString, DOHList, DOHHash, etc...


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 03:17:12 +00:00
Dave Beazley
f07a08e5c9 Fixed maxsize problem in string constructor.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-05 02:46:27 +00:00
Dave Beazley
79b5a43c80 Removed bool type--won't compile with some compilers (such as mine)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-04 15:16:51 +00:00
Dave Beazley
3660903461 Fixed Makefile problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@379 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-04 15:16:10 +00:00
Thien-Thi Nguyen
310eb81bbd (GUILE::initialize): Fix typo introduced in last commit -- argh!
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@377 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-04 06:31:00 +00:00
Thien-Thi Nguyen
40ff19361f (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@376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-04 05:45:52 +00:00