summaryrefslogtreecommitdiff
path: root/libguile/dynl-dl.c
AgeCommit message (Collapse)AuthorFilesLines
2000-01-10* dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deletedMarius Vollmer1-0/+0
(obsolete)
1999-12-12* *.c: Pervasive software-engineering-motivated rewrite ofGreg J. Badros1-122/+0
function headers and argument checking. Switched SCM_PROC, SCM_PROC1 macros to be GUILE_PROC, GUILE_PROC1 (may change names later, but was useful to keep old versions around while migrate) that has docstrings and argument lists embedded in the GUILE_PROC macro invocations that expand into a function header. Use lots of new SCM_VALIDATE_* macros to simplify error checking and reduce tons of redundancy. This is very similar to what I did for Scwm. Note that none of the extraction of the docstrings, nor software engineering checks of Scwm is yet added to Guile. I'll work on that tomorrow, I expect. * Makefile.am: Added scm_validate.h to modinclude_HEADERS. * chars.c: Added docstrings for the primitives defined in here. * snarf.h: Added GUILE_PROC, GUILE_PROC1. Added SCM_REGISTER_PROC to be like old SCM_PROC, though old SCM_PROC still remains for now. Changed naming convention for the s_foo string name of the primitive to be s_scm_foo for ease of use with the macro. * scm_validate.h: Lots of new SCM_VALIDATE macros to simplify argument checking through guile. Maybe some of these should be folded into the header file for the types they check, but for now it was easiest to just stick them all in one place.
1999-08-29* dynl-dl.c (RTLD_GLOBAL): Define if non-existent. (Thanks toMikael Djurfeldt1-0/+4
Bernard Urban and Ian Grant.)
1999-06-23* dynl-dl.c (sysdep_dynl_link): Added parenthesis around theMikael Djurfeldt1-1/+1
trinary conditional in order for the flag computation to be correct.
1999-06-21* dynl.c (DYNL_GLOBAL): New.Marius Vollmer1-2/+4
(sysdep_dynl_link): Added `flags' argument. (kw_global, sym_global): New. (scm_dynamic_link): Handle keyword arguments. Pass suitable flags to sysdep_dynl_link. * dynl-dl.c (sysdep_dynl_link): Handle new `flags' argument by conditrionally adding RTLD_GLOBAL to DLOPEN_MODES. * dynl-shl.c (sysdep_dynl_link): Add and ignore new flags argument. * dynl-dld.c (sysdep_dynl_link): Add and ignore new flags argument. * dynl.h (scm_dynamic_link): Added rest argument. * dynl.c (sysdep_dynl_unlink, sysdep_dynl_func): Use const qualifier for char* argument, to match prototypes. Thanks to Mark Elbrecht.
1999-02-06* chars.c (scm_lowers, scm_uppers, scm_charnames, scm_charnums),Jim Blandy1-5/+5
eval.c (s_expression, s_test, s_body, s_bindings, s_variable, s_clauses, s_formals): Variables now const. * eval.c (promsmob): Now const. * macros.c (macrosmob): Now const. * smob.c (scm_newsmob): Smobfuns argument now points to const. (freecell, flob, bigob): Now const. * dynl.c (scm_make_argv_from_stringlist, scm_coerce_rostring), error.c (scm_error, scm_syserror, scm_syserror_msg, scm_num_overflow, scm_out_of_range, scm_wrong_type_arg, scm_memory_error, scm_misc_error, scm_wta), macros.c (scm_make_synt), feature.c (scm_add_feature), filesys.c (scm_input_waiting_p), gc.c (scm_gc_start, scm_igc, scm_must_malloc, scm_must_realloc), gsubr.c (scm_make_gsubr), numbers.c (scm_num2dbl, scm_two_doubles, scm_num2long, scm_num2long_long, scm_num2ulong), options.c (scm_options), posix.c (scm_convert_exec_args, environ_list_to_c), procs.c (scm_make_subr_opt, scm_make_subr), ramap.c (scm_ramapc), read.c (scm_flush_ws), socket.c (scm_sock_fd_to_port, scm_fill_sockaddr, scm_addr_vector), stime.c (setzone, restorezone, bdtime2c), strop.c (scm_i_index), strports.c (scm_mkstrport), symbols.c (scm_intern_obarray_soft, scm_intern_obarray, scm_intern, scm_intern0, scm_sysintern0_no_module_lookup, scm_sysintern, scm_sysintern0, scm_symbol_value0), unif.c (scm_aind, scm_shap2ra): Argument indicating calling subr, error message text, reason for error, symbol name or feature name are now pointer to const. * snarf.h (SCM_PROC, SCM_PROC1): String variables are now const. * procs.c (scm_init_iprocs): iproc argument now points to const. * pairs.c (cxrs): Now const. * chars.h, error.h, feature.h, filesys.h, gc.h, gsubr.h, macros.h, numbers.h, options.h, procs.h, ramap.h, read.h, smob.h, strports.h, symbols.h, unif.h: Update variable declarations and function prototypes for above changes. * dynl.c, dynl-dld.c, dynl-dl.c, dynl-shl.c (sysdep_dynl_link, sysdep_dynl_unlink, sysdep_dynl_func): Arguments FNAME, SUBR, and SYMB now point to const.
1998-10-19* __scm.h, alist.c, async.c, async.h, backtrace.h, chars.c,Jim Blandy1-1/+1
continuations.c, debug.c, debug.h, dynl-dl.c, dynl.c, dynl.h, dynwind.c, dynwind.h, eq.c, error.c, error.h, eval.c, eval.h, feature.c, filesys.c, filesys.h, fports.c, fports.h, gc.c, gc.h, genio.c, genio.h, gh.h, gh_data.c, gsubr.c, gsubr.h, hash.c, hashtab.c, init.c, init.h, ioext.c, ioext.h, kw.c, libguile.h, list.c, list.h, load.c, load.h, mallocs.c, markers.c, mit-pthreads.c, net_db.c, numbers.c, numbers.h, options.c, ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c, procprop.h, procs.c, procs.h, ramap.c, ramap.h, regex-posix.c, regex-posix.h, root.c, root.h, scmsigs.c, scmsigs.h, script.c, script.h, simpos.c, simpos.h, smob.c, smob.h, snarf.h, socket.c, srcprop.c, stackchk.c, stackchk.h, stacks.c, stime.c, stime.h, strings.c, strings.h, strports.c, struct.c, struct.h, symbols.c, symbols.h, tags.h, threads.c, throw.h, unif.c, variable.c, vectors.c, vectors.h, version.h, vports.c, weaks.c: Update copyright years.
1998-03-30* gsubr.c (scm_gsubr_apply): Added dummy return to avoid compilerMikael Djurfeldt1-0/+2
warning. * eval.c, numbers.c, unif.c, srcprop.c: Added a few curly braces to avoid compiler warnings. * dynl-dl.c (sysdep_dynl_func): Only define usymb if needed.
1997-11-28 * iselect.c: #ifdef USE_THREADS around thread-related includes.Tim Pierce1-3/+3
* dynl-dl.c (sysdep_dynl_func): Check both USCORE and DLSYM_ADDS_USCORE to decide whether to add an underscore.
1997-11-22fixed dynl memory leakTim Pierce1-4/+4
1997-11-21Added support for leading dlsym underscore.Tim Pierce1-1/+11
1997-06-16* dynl.c (scm_dynamic_call, scm_dynamic_args_call): Wrap dynamicMarius Vollmer1-9/+10
function call in SCM_DEFER_INTS/SCM_ALLOW_INTS. (scm_dynamic_link, scm_dynamic_unlink, scm_dynamic_func): Always call the sysdep functions with deferred ints. * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c (sysdep_dynl_link, sysdep_dynl_unlink, sysdep_dynl_func): Expect to be called with deferred interrupts and insert SCM_ALLOW_INTS before throwing an error. * dynl.c (scm_dynamic_unlink, scm_dynamic_call): Return SCM_UNSPECIFIED.
1997-05-26* Lots of files: New address for FSF.Jim Blandy1-3/+3
1997-01-20* dynl.c: The dynamic linking and module registration functionsMarius Vollmer1-1/+1
are now defined even when dynamic linking is not available for the host system. Some of their functionality can be done without dynamic linking; when it's really needed, they throw errors.
1997-01-18* dynl.c (scm_dynamic_func): New function to get the address of aMarius Vollmer1-134/+25
function in a dynamic object. (scm_dynamic_call, scm_dynamic_args_call): Accept the values produced by scm_dynamic_func as the thing to call. * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c: Restructured. (scm_register_module_xxx, scm_registered_modules, scm_clear_registered_modules): New functions.
1996-12-08Initial revisionMarius Vollmer1-0/+212