1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 13:00:26 +02:00
Commit graph

15149 commits

Author SHA1 Message Date
Marius Vollmer
96599e6aaf * dynl.c: The dynamic linking and module registration functions
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-20 19:11:41 +00:00
Gary Houston
3d8d56dfac * init.scm (index, rindex): replace versions in utilities.scm with
primitives.
	load errno.scm.

	* netconst.scm: undefine maybe-define and maybe-define-so after use.
	* errno.scm: new file.

	* fports.c (scm_open_file): pass errno to scm_syserror_msg.
	* filesys.h: update prototypes.  Remove macros: SCM_FD_P, SCM_FD_FLAGS,
	SCM_FD.
	* filesys.c (scm_sys_stat, scm_sys_lstat): pass errno to
	scm_syserror_msg.
*	(scm_sys_read_fd, scm_sys_write_fd, scm_sys_close, scm_sys_lseek,
	scm_sys_dup): deleted: FD capability will be added to other
	procedures.
*	Remove support for the FD object type: scm_tc16_fd, scm_fd_print,
	scm_fd_free, fd_smob, scm_intern_fd.
*	(scm_open): renamed from scm_sys_open.  Return a port instead of
	an FD object.  Make the mode argument optional.
*	(scm_sys_create): deleted, it's just a special case of open.
	(scm_init_filesys): move interning of constants O_CREAT etc.,
	here (were previously using SCM_CONST_LONG macro).
	Add missing constants: O_RDONLY, O_WRONLY, O_RDWR, O_CREAT.
	don't newsmob fd.
	(numerous _sys_ procedures): remove gratuitous _sys_ from names.
	include "fports.h" and <stdio.h>
	(scm_stat, scm_select): don't support FD objects.

	* error.h: adjust scm_syserror_msg prototype.
	* error.c (scm_syserror_msg): take an extra argument for errno.
	Using the global value didn't always work, since it could be
	reset by procedure calls in the message or args arguments.

	* fports.c (scm_setbuf0): call setbuf even if FIONREAD is not defined.
	I don't understand why the check was there (and what about the
	ultrix check?)

	* strop.c (scm_string_copy): allow shared substrings to be copied.

	* unif.h: corresponding change to prototypes.
	* unif.c (scm_uniform_array_read_x, scm_uniform_array_write_x):
	recognize two new optional arguments: offset and length.  Allow
	the port argument to be an integer (file descriptor, for scsh).
	Include <unistd.h> for "read" prototype.
1997-01-18 17:51:33 +00:00
Jim Blandy
3f81f8f238 *** empty log message *** 1997-01-18 16:48:23 +00:00
Marius Vollmer
08f3ac022a *** empty log message *** 1997-01-18 11:51:03 +00:00
Marius Vollmer
9b8d32883e * symbols.c (scm_sysintern): Renamed to
scm_sysintern_no_module_lookup.
(scm_sysintern): New function to take the place of the old
scm_sysintern. It uses the current toplevel lookup closure to give
the symbol its value.  This is a temporary hack to put packages
like gtcltk into their own module.
(scm_can_use_top_level_lookup_closure_var): New variable to tell
us whether `scm_top_level_lookup_closure_var' has been initialized
and is usable.
* eval.c (scm_init_eval): Set it.
1997-01-18 11:49:35 +00:00
Marius Vollmer
80bc78903a * dynl.c (scm_dynamic_func): New function to get the address of a
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.
1997-01-18 11:40:31 +00:00
Marius Vollmer
d914fd5fbf * configure.in: Only define DYNAMIC_LINKING when one of the system
dependent functions is detected.
1997-01-18 11:38:15 +00:00
Marius Vollmer
bb0102f781 *** empty log message *** 1997-01-18 11:30:37 +00:00
Marius Vollmer
d0cbd20cd8 Added dynamic linking of modules. See libguile/DYNAMIC-LINKING.
* boot-9.scm (split-c-module-name, convert-c-registered-modules,
init-dynamic-module, dynamic-maybe-call,
find-and-link-dynamic-module, link-dynamic-module,
try-module-dynamic-link, registered-modules): New definitions for
dynamic linking of modules.
(resolve-module): Try to dynamically link the requested module
after failing to load it as Scheme code.
1997-01-18 11:29:20 +00:00
Jim Blandy
fa3f45cc38 *** empty log message *** 1997-01-17 19:27:57 +00:00
Jim Blandy
e53cfd29f0 *** empty log message *** 1997-01-14 17:55:17 +00:00
Gary Houston
be9edf15fb * Makefile.am: add AWK=@AWK@ (?) 1997-01-13 06:22:51 +00:00
Gary Houston
ee78fbb067 * Makefile.am (EXTRA_DIST): add errnos_cnvt.awk, errnos.default,
errnos_get.c.
Add a rule to generate errnos.c from errnos.
* error.c (scm_init_error): include errnos.c.
* errnos_cnvt.awk: new file, converts the list of errno codes to
C expressions.
* errnos_get.c: new file.
* errnos.default: new file, contains errnos to try if they can't
be extracted from errno.h.
* configure.in: if using GCC, try and extract errno codes from
errno.h.
Added AC_PROG_AWK.
1997-01-13 04:05:27 +00:00
Marius Vollmer
b9e19a2773 *** empty log message *** 1997-01-11 19:01:21 +00:00
Marius Vollmer
1bb9f4dbf6 * configure.in: Replaced AC_PROG_RANLIB with AM_PROG_LIBTOOL.
* Makefile.am: Made libguile into a libtool library.
* PLUGIN/guile.config: Removed "-L ../libguile" from xtra_cflags.
Set libtool_libs to indicate that libguile is a libtool library.
See guile/ChangeLog for details.
* .cvsignore: ignore "*.lo", the libtool library objects.
1997-01-11 19:00:04 +00:00
Marius Vollmer
3890022fba *** empty log message *** 1997-01-11 18:51:00 +00:00
Marius Vollmer
a7a8349dba * ltconfig, ltmain.sh: New files for libtool support. libguile,
rx, gh and gtcltk-lib can now be build as shared libraries.
* Makefile.am (EXTRA_DIST): Added ltconfig and ltmain.sh
1997-01-11 18:50:17 +00:00
Gary Houston
65b376c7f2 * net_db.c (scm_getserv): add missing SCM_ALLOW_INTS.
use htons in getservbyport argument.
1997-01-08 07:49:37 +00:00
Gary Houston
920235cc17 * boot-9.scm (getservbyport, getservbyname): remove stray %. 1997-01-08 07:48:03 +00:00
Jim Blandy
9986a72fbb *** empty log message *** 1997-01-08 01:52:25 +00:00
Jim Blandy
ce71f796b6 * ports.h (SCM_PTOBNUM): Removed extraneous semicolon.
* smob.h: (SCM_PTOBNUM): Removed entirely; this definition is a
duplicate.
1997-01-08 01:51:14 +00:00
Jim Blandy
198befde13 *** empty log message *** 1997-01-08 01:28:55 +00:00
Jim Blandy
332ab3605f * objprop.c (scm_object_property): No need to take the CDR of the
value returned by scm_object_properties, since Aug 20 change.
1997-01-08 01:28:01 +00:00
Jim Blandy
b1646914c4 * lineio.scm (make-line-buffering-input-port): Properly test for
the case of an empty buffer list.  The old code assumed that '()
was false.
1997-01-08 01:27:12 +00:00
Jim Blandy
132e5fac84 * boot-9.scm (and=>): Rename THUNK argument to PROCEDURE, 'cos
that's what it is.
1997-01-08 01:27:01 +00:00
Jim Blandy
01fce0f0ef *** empty log message *** 1997-01-08 00:09:05 +00:00
Jim Blandy
b3310939fc * configure.in: When checking for struct linger, #include
<sys/types.h> as well as <sys/socket.h>.  I've never known
<sys/types.h> to cause any portability problems, and Solaris's
<sys/socket.h> needs it.
* configure: Rebuilt.
1997-01-08 00:08:08 +00:00
Jim Blandy
805df3e8af I think the Sun compiler has chosen a perverse way to interpret
ANSI declarations combined with K&R definitions.  We'll
appease it a little bit.  But when it invades France, we fight.
* print.c (scm_iprlist): Change 'tlr' argument to an int.
* print.h (scm_iprlist): Here too.
* numbers.c (scm_divbigdig): Change definition to match
declaration in numbers.h.
* unif.c (scm_makflo): Change definition to match declaration in
unif.h.
1997-01-07 23:42:35 +00:00
Jim Blandy
ae65f9f937 *** empty log message *** 1997-01-07 23:42:10 +00:00
Jim Blandy
1595aa56c6 * init.c (scm_boot_guile): Don't return the value of
scm_boot_guile_1.  This function doesn't return a value;
scm_boot_guile_1 doesn't return a value (or return at all).
1997-01-07 23:42:01 +00:00
Jim Blandy
fa88817815 * eval.c (unmemocopy): Add a semicolon to appease the Sun
compiler.
1997-01-07 23:41:45 +00:00
Jim Blandy
0b1786d8f2 *** empty log message *** 1997-01-07 23:12:58 +00:00
Jim Blandy
579b5bc1ee * smob.h (SCM_SMOBNUM, SCM_PTOBNUM): Remove extraneous
semicolons.  Only pure luck kept this from being noticed earlier.
1997-01-07 23:12:09 +00:00
Jim Blandy
10a12f9fb4 * simpos.c (SYSTNAME): Add case for AIX; otherwise it won't
compile.  I have a feeling this function is a bad idea anyway ---
one should always test for features, not systems.
1997-01-07 23:11:51 +00:00
Mikael Djurfeldt
239294dafd * socket.c (scm_recvfrom): Added missing semicolon. 1997-01-07 13:08:17 +00:00
Jim Blandy
251ca7ab83 Add notes about updating version numbers after the release, and
avoid sticky tag troubles.
1997-01-07 00:51:00 +00:00
Jim Blandy
271a1aac23 Rearrange for inclusion in snapshots. 1997-01-07 00:50:00 +00:00
Jim Blandy
f7b4773769 Start new section for post-1.0 changes. 1997-01-07 00:49:26 +00:00
Jim Blandy
c00aa3ec76 Bump version number for post-1.0 snapshots: 1.1a. 1997-01-07 00:49:05 +00:00
Jim Blandy
af8e756ec2 *** empty log message *** 1997-01-07 00:48:16 +00:00
Jim Blandy
d096089a8e *** empty log message *** 1997-01-06 23:04:56 +00:00
Gary Houston
678b85324a * socket.c (scm_recvfrom): allow buff_or_size to be a list containing
the buffer and start and end positions for SCSH networking
implementation.
1997-01-06 20:58:37 +00:00
Jim Blandy
d8bb5a39ed *** empty log message *** 1997-01-06 04:01:12 +00:00
Jim Blandy
d6b51f8d50 * configure.in: Revert previous change to this file; the problem
is due to transient automake weirdness.
* configure: Rebuilt.
1997-01-06 00:35:30 +00:00
Mikael Djurfeldt
33cf699f6e * * boot-9.scm (use-modules): New macro (from Marius Vollmer).
(use-modules <module name> ...) Put the the modules named by
	<module name> ... on the use list of the current module.
1997-01-05 23:38:10 +00:00
Jim Blandy
01cf384076 *** empty log message *** 1997-01-05 23:24:28 +00:00
Jim Blandy
7a8188539f *** empty log message *** 1997-01-05 22:01:56 +00:00
Jim Blandy
2c19444693 * configure.in: Call AM_PROG_INSTALL; the automake manual says we
need this if we install scripts, like guile-snarf.
* configure: Rebuilt.
1997-01-05 22:01:37 +00:00
Jim Blandy
16050117fd * boot-9.scm (error-catching-loop): Remove message saying that
typing "$" will put you in the debugger.  This isn't implemented
yet.
1997-01-05 22:00:43 +00:00
Jim Blandy
4b521edbfe * GUILE-VERSION: Updated version number.
* NEWS: Added comments for all the user-visible changes marked in
the ChangeLogs.
* README: Updated for release.
1997-01-05 21:59:40 +00:00