Commit graph

14,024 commits

Author SHA1 Message Date
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
e5b51a27b5 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/SWIG@418 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-13 03:15:34 +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
83746ec43b New entry. Here are Matthias Koeppe's words on the changes:
Why did you remove the INPUT/OUTPUT/BOTH typemaps in revision 1.3 of
  Lib/guile/typemaps.i? They seem to be standard in SWIG, as they are
  present in the other language modules, and everyone needs them. I
  suggest you put them back in.

  Lib/exception.i, Source/Modules1.1/guile.cxx: I have written the
  Guile-specific code for Lib/exception.i, which implements
  SWIG_exception as a macro calling _SWIG_exception, which is defined in
  the same file. The SWIG_*Error constants are mapped to Guile error
  symbols, which are passed to scm_error. The macro uses the
  preprocessor macro SCHEME_NAME, which is set at the beginning of the
  function wrapper code by a modified Source/Modules1.1/guile.cxx. Here
  is a test (with array.i):

  	(int-get '() 0)  ==> signals swig-value-error

  Moreover, I fixed a type-lookup bug in Lib/guile/guile.swg when
  compiled -with-smobs, which had crept in from swigptr.swg. Here is a
  test (again with array.i):

          (define c (int-array 5))
          (int-get c 0)    ==> must not signal a wrong-type error

  Lib/guile/guiledec.swg, Source/Modules1.1/guile.cxx: 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.
  (SWIG_init) Make this function globally visible only in simple linkage
  (the user should rename the function by a #define in this case). In
  other linkages, having SWIG_init globally visible (in multiple
  modules) just makes trouble.

  Source/Modules1.1/guile.cxx (GUILE::link_variable) Printf the C
  string, not the String class.

  Source/SWIG1.1/swig11.h, Source/SWIG1.1/sstring.cxx: Constified two
  operator arguments, to get rid of warnings issued by the SUNWSpro
  C++ compiler.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:57:50 +00:00
Thien-Thi Nguyen
c45ce46c51 New entry. Here are Matthias Koeppe's words on the changes:
Why did you remove the INPUT/OUTPUT/BOTH typemaps in revision 1.3 of
  Lib/guile/typemaps.i? They seem to be standard in SWIG, as they are
  present in the other language modules, and everyone needs them. I
  suggest you put them back in.

  Lib/exception.i, Source/Modules1.1/guile.cxx: I have written the
  Guile-specific code for Lib/exception.i, which implements
  SWIG_exception as a macro calling _SWIG_exception, which is defined in
  the same file. The SWIG_*Error constants are mapped to Guile error
  symbols, which are passed to scm_error. The macro uses the
  preprocessor macro SCHEME_NAME, which is set at the beginning of the
  function wrapper code by a modified Source/Modules1.1/guile.cxx. Here
  is a test (with array.i):

  	(int-get '() 0)  ==> signals swig-value-error

  Moreover, I fixed a type-lookup bug in Lib/guile/guile.swg when
  compiled -with-smobs, which had crept in from swigptr.swg. Here is a
  test (again with array.i):

          (define c (int-array 5))
          (int-get c 0)    ==> must not signal a wrong-type error

  Lib/guile/guiledec.swg, Source/Modules1.1/guile.cxx: 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.
  (SWIG_init) Make this function globally visible only in simple linkage
  (the user should rename the function by a #define in this case). In
  other linkages, having SWIG_init globally visible (in multiple
  modules) just makes trouble.

  Source/Modules1.1/guile.cxx (GUILE::link_variable) Printf the C
  string, not the String class.

  Source/SWIG1.1/swig11.h, Source/SWIG1.1/sstring.cxx: Constified two
  operator arguments, to get rid of warnings issued by the SUNWSpro
  C++ compiler.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:57:50 +00:00
Thien-Thi Nguyen
c4605854d5 (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/SWIG@416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:48:41 +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
d90b8e6868 (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/SWIG@415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:44:15 +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
d58fac2856 Re-add INPUT/OUTPUT/BOTH typemaps (that were previously deleted).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:33:31 +00:00
Thien-Thi Nguyen
dac03b655d Re-add INPUT/OUTPUT/BOTH typemaps (that were previously deleted).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:33:31 +00:00
Thien-Thi Nguyen
a7a9b355b9 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.  This primarily affects
the preprocessor symbol `SWIGSTATIC'.

(SWIG_init): Make this function globally visible only in simple
linkage (the user should rename the function by a #define in
this case).  In other linkages, this func is static.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:27:47 +00:00
Thien-Thi Nguyen
f108197c61 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.  This primarily affects
the preprocessor symbol `SWIGSTATIC'.

(SWIG_init): Make this function globally visible only in simple
linkage (the user should rename the function by a #define in
this case).  In other linkages, this func is static.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:27:47 +00:00
Thien-Thi Nguyen
b14034162e (swigcmp): Fix type-access bug when using
"-with-smobs": Use `strcmp' instead of `strncmp'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@412 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:18:14 +00:00
Thien-Thi Nguyen
5d7343e24b (swigcmp): Fix type-access bug when using
"-with-smobs": Use `strcmp' instead of `strncmp'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@412 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:18:14 +00:00
Thien-Thi Nguyen
dad121a673 For Guile section, add subsection on exception handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:05:39 +00:00
Thien-Thi Nguyen
08ba0873b3 For Guile section, add subsection on exception handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:05:39 +00:00
Thien-Thi Nguyen
dfba9a8d7b Add exception support for Guile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:01:37 +00:00
Thien-Thi Nguyen
015339bf5f Add exception support for Guile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 11:01:37 +00:00
Thien-Thi Nguyen
40f4e7b461 (PARSER): Prefix w/ `$(srcdir)/'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@409 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-12 08:04:53 +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
abf90919ed *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 22:54:26 +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
4f69c58d6d *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 22:48:47 +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
6d6243e279 Added warning message.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 22:48:42 +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
0b454425a4 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@405 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 21:23:07 +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
eb5c026373 Added SwigWrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 21:22:56 +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
166db98dbe Work in progress
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@403 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 04:32:11 +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
4c57dc5b56 Added SwigWrapper object.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 04:31:37 +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
c7e85821ed *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@401 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 03:59:54 +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
638635592b *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@400 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-10 16:11:30 +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
0313f7aa4b Rewrote.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-10 15:25:07 +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
24ea965c2e Cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-10 15:24:43 +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
79afb1640b New entry.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:46:48 +00:00
Thien-Thi Nguyen
6ec154cd2d New entry.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:46:48 +00:00
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
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
dc0d648dec (mzscheme): New target.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:32:12 +00:00
Thien-Thi Nguyen
85659455ff (mzscheme): New target.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-06 08:32:12 +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