1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00
Commit graph

80 commits

Author SHA1 Message Date
Keisuke Nishida
ffdeebc3a9 * readline.c: Add #include <stdio.h> 2001-03-09 23:31:55 +00:00
Dirk Herrmann
379b35daaa * Fixed readline default input/output port parameter handling.
* Removed redundant SCM_N?IMP tests.
2000-11-24 10:38:57 +00:00
Dirk Herrmann
08b5e6c316 * Don't uses anything deprecated any more. 2000-11-24 10:24:04 +00:00
Mikael Djurfeldt
2604745154 Fix 2000-06-19 00:48:35 +00:00
Mikael Djurfeldt
b71099ba05 * readline.c (sigwinch_enable_restart, scm_init_readline):
Re-enable restart for SIGWINCH signal.
2000-06-19 00:42:39 +00:00
Mikael Djurfeldt
48552b1dcf * readline.c (scm_readline): Added parenthesis around && within
||.
Fixed up prototype for `reentry_barrier'.
Conditionally #include <unistd.h>.  (Needed for `dup'.)
2000-06-14 15:03:01 +00:00
Mikael Djurfeldt
62947883ed * readline.c: Always provide scm_init_readline, also if readline
support is not included.  Otherwise, a strange dynamic loading
error will occur.  (It would be better not to install
libguilereadline at all.)
2000-06-06 12:44:17 +00:00
Gary Houston
fbf68f8b6c * readline.c: include libguile.h, not libguile/libguile.h. 2000-05-01 22:12:43 +00:00
Mikael Djurfeldt
a059974535 * Makefile.am (DEFS): Added. automake adds -I options to DEFS,
and we don't want that.
(INCLUDES): Removed all -I options except for the root source
directory and the root build directory.

* *.*: Change includes so that they always use the "prefixes"
libguile/, qt/, guile-readline/, or libltdl/.
(Thanks to Tim Mooney.)
2000-04-21 14:16:44 +00:00
Dirk Herrmann
f60d011a05 Fix handling of SCM value with regard to strict typing. 2000-04-04 10:46:08 +00:00
Michael Livshin
89e00824a0 * *.[hc]: add Emacs magic at the end of file, to ensure GNU
indentation style.
2000-03-19 19:01:16 +00:00
Mikael Djurfeldt
bc858b80ca * readline.c (current_input_getc): Don't pass int values through
SCM variables.
2000-03-12 16:02:46 +00:00
Mikael Djurfeldt
b74b1a6387 Reverted recent change to scm_mutex_init: now backward compatible
again.
2000-03-12 14:26:59 +00:00
Mikael Djurfeldt
053f9faad7 * readline.c (match_paren): Bugfix: First arg to select is not
number of descriptors but the number of the highest descriptor +
1.

* readline.c (scm_init_readline): Added new arg to scm_init_mutex.
2000-03-12 00:35:00 +00:00
Greg J. Badros
3ef7e3a14a Added a comment re: a warning. 2000-03-09 21:53:59 +00:00
Greg J. Badros
1c537018aa * readline.c: scm_validate.h renamed to validate.h. 2000-03-09 16:00:42 +00:00
Greg J. Badros
aba2031abc * readline.c (match_paren): Use SELECT_TYPE, not fd_set, for type
of readset.
2000-03-08 18:43:47 +00:00
Greg J. Badros
c1bfcf602b * scm_validate.h: Added SCM_NUM2LONG_DEF macro. Make
SCM_OUT_OF_RANGE use SCM_MAKINUM, not scm_long2num.  Added
SCM_COERCE_ROSTRING macro.  Added SCM_VALIDATE_NONEMPTYLIST
macro.  Fix SCM_VALIDATE_STRINGORSUBSTR macro to not use SLOPPY
variants.

* ports.c (scm_port_closed_p): Validate that the arg is a PORT,
then return whether it's an open port (was validating that it was
an open port -- this was a bug I introduced back in December, but
my careful reading of diffs caught it).

* numbers.c: Recombine the two conditional-compilation paths for
all the log* primitives -- they were split based on #ifndef
scm_long2num;  factored out a SCM_LOGOP_RETURN macro, and fixed
some bugs and inconsistencies in the two sets of implementations.
(scm_lognot) Fixed *atrocious* re-use of a SCM as an integer!

* ioext.c: Use SCM_ASSERT_RANGE in a couple places, and
SCM_VALIDATE_INUM_COPY once where it should've been used.

* fluids.c (scm_internal_with_fluids): Use
SCM_VALIDATE_LIST_COPYLEN.

* filesys.c: Use SCM_NUM2LONG instead of SCM_VALIDATE_INUM_COPY;
this is questionable as it relaxes type safety, but other changes
were useful and all SCM_NUM2LONG's should probably be
revisited. Use SCM_OUT_OF_RANGE, SCM_WRONG_TYPE_ARG.

* evalext.c: line-break change on 1 line.

* eval.c (nconc2last): Takes a non-empty list as its first
argument, not just a list.

* dynl.c: Use new SCM_COERCE_ROSTRING macro.
2000-01-12 01:51:18 +00:00
Mikael Djurfeldt
576cdec4d6 * readline.c (match_paren): Changed return type to int (this is
the definition in readline 4) and modified code layout according
to GNU coding standards.
2000-01-09 17:01:34 +00:00
Greg J. Badros
cbaee92a8b * readline.c: Whitespace changes -- added space after
SCM_VALIDATE_* macros to match GNU coding standards.
2000-01-05 19:20:06 +00:00
Greg J. Badros
b916d81378 Replace GUILE_PROC w/ SCM_DEFINE. 2000-01-05 19:06:35 +00:00
Greg J. Badros
eb156192af * readline.c: Include libguile/scm_validate.h 1999-12-13 21:58:13 +00:00
Greg J. Badros
f48e47b95c * readline.c: Updated to use GUILE_PROC, SCM_VALIDATE, and have
(now empty) docstrings.
1999-12-13 03:57:29 +00:00
Gary Houston
5c11cc9deb * configure.in: check for hstrerror.
* socket.c (scm_htons, scm_ntohs, scm_htonl, scm_ntohl): new
	functions for network data conversion.

	* numbers.c (scm_num2long, scm_num2longlong):
	throw out-of-range instead of wrong-type-arg if appropriate.
	(scm_iint2str): handle -2^31 correctly.
	(scm_num2long): handle -2^31 bignum correctly.
	(scm_num2long_long): rewrite the bigdig case: basically copied
	from scm_num2long.
	numbers.h: (SCM_BITSPERLONGLONG): deleted.

	* unif.c (rapr1): use sprintf instead of intprint for unsigned
	longs: intprint can't cope with large values.

	* numbers.c (scm_num2ulong): check more consistently that the
	input is not negative.  if it is, throw out-of-range instead of
	wrong-type-arg.

	* ramap.c (scm_array_fill_int): don't limit fill to INUM for
	uvect, ivect or llvect.
	Check that fill doesn't overflow short uniform array.

	* __scm.h: add another long to the definition of long_long and
	ulong_long.

	* unif.c (scm_raprin1): use 'l' instead of "long_long" in the
	print representation of llvect.  read can't handle more than
	one character.
	(scm_dimensions_to_uniform_array): make "fill" an optional argument
	instead of a rest argument.

	* tags.h (scm_tc7_llvect): wasn't defined anywhere, so use the free
	tag 29 for now.

	* __scm.h: don't mention LONGLONGS.

	* unif.c, numbers.c, eq.c, gc.c, print.c, eval.c, ramap.c:
	replace LONGLONGS with HAVE_LONG_LONGS as set by configure.

	* net_db.c (scm_inet_aton): throw errors using the misc-error key
	instead of system-error.  inet_aton doesn't set errno.
	system-error isn't right in gethost either, since it's throwing
	the value of h_errno instead of errno. so:
	(scm_host_not_found_key, scm_try_again_key,
	scm_no_recovery_key, scm_no_data_key): new error keys.
	(scm_resolv_error): new procedure, use the new keys.
	(scm_gethost): call scm_resolv_error not scm_syserror_msg.

	* error.c: (various): use scm_cons instead of scm_listify
	to build short lists.

	* boot-9.scm (read-hash-extend to set up arrays): add 'l' for
	long_long uniform vectors.

	* networking.scm (sethostent, setnetent, setprotoent, setservent):
	take an optional argument STAYOPEN.  default is #f.

	* readline.c (scm_init_readline): set rl_readline_name to Guile,
	to allow conditionals in  .inputrc.
1999-11-18 22:36:28 +00:00
Marius Vollmer
f98e165e15 * readline.c (scm_readline): Export it to Scheme as "%readline". 1999-09-11 15:19:57 +00:00
Mikael Djurfeldt
28c12e2a6c Fix 1999-08-29 21:07:04 +00:00
Mikael Djurfeldt
2e3d59875a The following change makes it possible for applications to have
their own version of scm_readline.
* readline.c, readline.h (rl_cleanup_after_signal,
rl_free_line_state): Made global.
(scm_readline_init_ports): New function.
(scm_readline): Use scm_readline_init_ports.
(Thanks to Anders Holst.)
1999-08-29 18:02:19 +00:00
Jim Blandy
c6e23ea25f Update FSF address in copyright notices. 1999-08-06 07:26:07 +00:00
Mikael Djurfeldt
739b3bf1b8 * readline.c (handle_error): Put a cosmetic newline on
rl_outstream on error before closing it.

* readline.c: #include "libguile/_scm.h" (so that we get the
configuration information) and fix other includes so that they'll
work on a system where guile is not yet installed.
1999-07-24 11:40:11 +00:00
Marius Vollmer
c374ab69c1 * Checked everything into CVS. 1999-07-23 21:43:58 +00:00