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

20710 commits

Author SHA1 Message Date
Jim Blandy
538c267ac6 *** empty log message *** 1997-02-03 20:34:34 +00:00
Gary Houston
063e05bed8 * ioext.c, ioext.h: remove obsolete _sys_ from 9 procedure names.
*	* posix.c (scm_fork): Scheme name changed from fork to primitive-fork,
	to avoid clash with various scsh forks.
1997-01-31 04:36:24 +00:00
Mikael Djurfeldt
ad31050811 The following two changes (ramap.c, throw.c) are motivated by the
apparent unportability of forward declarations of static arrays of
the form `static foo bar[];'.

* ramap.c (scm_array_fill_x): Moved above scm_array_fill_int.
(ra_rpsubrs, ra_asubrs): Moved to the top of array code.

* throw.c (scm_throw): Moved above scm_ithrow.

* options.h: Removed the extern declarations of scm_yes_sym and
scm_no_sym since these are static.
1997-01-30 20:25:09 +00:00
Mark Galassi
87f2fb7223 small manual stuff 1997-01-28 14:46:20 +00:00
Gary Houston
1e531c3aee * boot-9.scm (read-line!, read-delimited!, read-delimited,
read-line): new	procedures, see libguile/ChangeLog.
1997-01-25 18:24:54 +00:00
Gary Houston
1146b6cda2 * ports.c: add SCM_PROC declarations for pt-size and pt-member.
* Makefile.am: remove AWK=@AWK@.
	Add a rule for generating errnos.list.
	(CLEANFILES): put errnos.list here instead of in DISTCLEANFILES.

	* configure.in: add AC_SUBST(AWK) and AC_SUBST(ERRNO_EXTRACT).
	don't extract errnos, just set a variable (avoids the
	need to recompile error.c just because configure is run.)

	* unif.h: update prototypes.
	* unif.c (scm_uniform_array_read,write): change the offset and
	length arguments to start and end, for consistency.

	* __scm.h: uncomment SCM_ARG6 and SCM_ARG7, I needed SCM_ARG6.

	* ioext.h: update prototypes.
*	* ioext.c (scm_read_delimited_x): replaces scm_read_line and
	scm_read_line_x, it's a more general procedure using an
	interface from scsh.  read-line and read-line! are now defined
	in boot-9.scm.
*  	Note that the new read-line trims the terminator
	by default, previously it was appended to the returned string.  An
	optional argument specifies how to process the terminator (scsh
	compatible).  For the old behaviour: (read-line port 'concat).
	scm_read_line, scm_read_line_x: deleted.  (read-line port 'split)
	returns a pair, but is converted to multiple values if the scsh
	module is loaded.

	socket.h: update prototypes.
	* socket.c (scm_recvfrom): for consistency with other procedures,
	take start and end as separate optional arguments.
*	(scm_recv, scm_recvfrom): don't allow the second argument
	to be a size, only a buffer.  Change the scheme names to
	recv! and recvfrom!.  Don't return the buffer.

	* ioext.h, posix.h: move prototypes too.
	* ioext.c, posix.c (scm_read_line, scm_read_line_x, scm_write_line:
	moved back from posix.c to ioext.c.  Also move #includes of "genio.h"
	"read.h" and "unif.h".
	* ioext.c: include "chars.h"
1997-01-25 18:23:49 +00:00
Mark Galassi
ea00ecbade some updates on gh_ and also incorporated Jim Blandy's essay in the ref manual 1997-01-25 00:01:08 +00:00
Mark Galassi
de74670fe0 little stuff on manual 1997-01-23 16:17:30 +00:00
Marius Vollmer
a063340e82 added lost entries after getting confused about a conflict 1997-01-22 22:35:21 +00:00
Mark Galassi
31e59da8b6 fixed manual problems 1997-01-22 00:31:34 +00:00
Mark Galassi
ad93808a69 added newdoc tree 1997-01-21 15:27:49 +00:00
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