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
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
(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
(guile_usage): Include new options "-module", "-prefix" and "-package".
(GUILE::GUILE): Move definition here from header file.
Init new data members.
(GUILE::parse_args): Handle new options.
(GUILE::set_init): Abort when called, for now.
(GUILE::initialize): Don't define `SWIG_init' in output.
Use computed function name directly.
(GUILE::close): Output module registration.
(GUILE::get_pointer): Use `f.code' instead of `f_wrappers'.
(GUILE::create_function): Large rewrite.
(GUILE::link_variable): Look for type `T_CHAR'
instead of status `STAT_READONLY'.
(GUILE::declare_const): Check typemap first.
(GUILE::usage_func, GUILE::usage_var, GUILE::usage_returns,
GUILE::usage_const): Rewrite.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@257 626c5289-ae23-0410-ae9c-e8d60b6d4f22