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/SWIG@428 626c5289-ae23-0410-ae9c-e8d60b6d4f22
(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/SWIG@424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
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
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
(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
(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
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