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

383 commits

Author SHA1 Message Date
Mikael Djurfeldt
0a9e521f29 *** empty log message *** 2000-06-19 10:05:54 +00:00
Mikael Djurfeldt
341f78c976 *** empty log message *** 2000-06-12 11:58:48 +00:00
Mikael Djurfeldt
aa4bb95d6a *** empty log message *** 2000-05-30 14:14:11 +00:00
Dirk Herrmann
e11f8b42f2 * The name property of hooks is deprecated. 2000-05-26 16:31:22 +00:00
Dirk Herrmann
894a712b28 * Un-deprecated the *FIXABLE macros.
* Deprecated SCM_UNPACK_CAR.
* Updated NEWS and RELEASE.
2000-05-25 13:53:49 +00:00
Mikael Djurfeldt
820920e6a3 *** empty log message *** 2000-04-21 23:15:27 +00:00
Mikael Djurfeldt
e415cb0666 *** empty log message *** 2000-04-21 14:12:45 +00:00
Mikael Djurfeldt
9764c29b8c *** empty log message *** 2000-04-21 00:27:52 +00:00
Mikael Djurfeldt
a0128ebefa *** empty log message *** 2000-04-16 02:04:25 +00:00
Mikael Djurfeldt
7c1e0b12a3 *** empty log message *** 2000-04-15 19:34:09 +00:00
Mikael Djurfeldt
91163914cf *** empty log message *** 2000-03-29 11:02:44 +00:00
Mikael Djurfeldt
f8a72ca4c9 *** empty log message *** 2000-03-12 18:41:47 +00:00
Gary Houston
1a35eadceb mention a stdout port buffer change from a while ago. 2000-03-12 16:32:19 +00:00
Mikael Djurfeldt
2afe9d0e3e *** empty log message *** 2000-03-12 14:28:25 +00:00
Mikael Djurfeldt
f3b5e18566 *** empty log message *** 2000-03-12 01:48:48 +00:00
Mikael Djurfeldt
810e1aecca *** empty log message *** 2000-03-12 00:57:16 +00:00
Mikael Djurfeldt
0af43c4aa5 *** empty log message *** 2000-03-12 00:55:12 +00:00
Gary Houston
bd9e24b301 * strings.h: don't use SCM_P. don't include <string.h>.
* error.c, gh_data.c, ports.c, script.c, strop.c: include <string.h>.

	* strings.c (scm_string_ref): make the 2nd argument compulsory.
	previously it defaulted to zero for no good reason that I can see.
	use a local variable for SCM_INUM (k).  replace
	SCM_VALIDATE_INUM_DEF with SCM_VALIDATE_INUM_COPY.

	(scm_makfromstr): cosmetic changes.

	(scm_string): Accept only chars in the list, not strings, for
	conformance to R5RS (particularly for list->string, which is
	supposed to be the inverse of string->list.)  remove
	SCM_DEFER_INTS/SCM_ALLOW_INTS, which is unnecessary since
	scm_makstr handles the cell allocation.  when reporting wrong-type
	arg, don't report the position as 1.

	* posix.c (scm_init_posix): intern PIPE_BUF if it's defined.

	* boot-9.scm (find-and-link-dynamic-module): pass strings, not symbols,
	to string-append.
2000-01-31 18:29:56 +00:00
Gary Houston
28d77376bc * filesys.c (scm_select, retrieve_select_type, get_element,
fill_select_type, set_element): modified so that Scheme
	"select" tests port buffers for the ability to provide input
	or accept output.  Previously only the underlying file descriptors
	were checked.  Rewrote the docstring.

	* expect.scm (expect): don't call char-ready? before expect-select,
	since select now checks port buffers itself.  don't bother to check
	the time first either, since expect-select does it.
2000-01-29 18:04:38 +00:00
Gary Houston
dc91415623 * configure.in: needs to have --disable-networking, not
--disable-net.
2000-01-14 23:14:33 +00:00
Mikael Djurfeldt
899a7b3c06 *** empty log message *** 2000-01-12 01:54:23 +00:00
Marius Vollmer
e723f8de40 Grammar fix. 2000-01-11 20:35:05 +00:00
Greg J. Badros
7f15e6359b *** empty log message *** 2000-01-11 19:33:39 +00:00
Marius Vollmer
5c1e4bff32 Added blurb about libltdl support. 2000-01-09 21:50:39 +00:00
Gary Houston
38c1d3c4d5 * configure.in: check whether localtime caches TZ. copied from
Emacs 20.5.
	* acconfig.h: add LOCALTIME_CACHE.

	* These changes should make it unnecessary to call tzset from
	Scheme after modifying the TZ environment variable, even if the
	system date facilities cache the value.
	* stime.c (setzone, scm_localtime): added comments.
	(tzset): don't define a noop tzset macro if HAVE_TZSET not defined.
	(setzone): don't call tzset.
	(restorezone): call tzset only if HAVE_TZSET is defined.
	(scm_tzset): don't define if HAVE_TZSET not defined.  Change the
	doc string to indicate that this procedure isn't likely to do
	anything useful.
	(scm_localtime, scm_strftime, scm_mktime): call tzset if
	LOCALTIME_CACHE is defined.
2000-01-09 20:50:03 +00:00
Gary Houston
f25f761dac * eval.c: define scm_unbound_variable_key ('unbound-variable).
scm_lookupcar1: throw an error with key 'unbound-variable instead
	of 'misc-error when an unbound variable is encountered.

	* filesys.c (scm_mkdir, scm_rmdir, scm_getcwd, scm_select,
	scm_symlink, scm_readlink, scm_lstat),
	posix.c (scm_setpgid, scm_setsid, scm_ctermid, scm_tcgetpgrp,
	scm_tcsetpgrp, scm_uname, scm_setlocale, scm_mknod, scm_nice,
	scm_sync),
	simpos.c (scm_system),
	stime.c (scm_times, scm_strptime):
	move the HAVE_XXX feature tests out of the procedure bodies.
	don't use SCM_SYSMISSING.
	scm_validate.h (SCM_SYSMISSING): removed.
	error.h, error.c (scm_sysmissing): comment that this is deprecated.
	see ChangeLog entry for 1999-12-28.
2000-01-09 13:41:53 +00:00
Greg J. Badros
3a596d3c6b *** empty log message *** 1999-12-13 03:57:55 +00:00
Greg J. Badros
62b8227439 *** empty log message *** 1999-12-13 03:47:14 +00:00
Gary Houston
60d0643dbf * ports.c (scm_port_closed_p): new procedure, implements
"port-closed?" suggested by Bernard Urban.
	ports.h: added prototype, removed the SCM_P macros.
1999-12-04 22:59:10 +00:00
Gary Houston
afe5177e7f * acconfig.h: add HAVE_ARRAYS.
* configure.in: add --disable-arrays option, probably temporary.

	* the following changes allow guile to be built with the array
	"module" omitted.  some of this stuff is just tc7 type support,
	which wouldn't be needed if uniform array types were converted
	to smobs.

	* tag.c (scm_utag_bvect ... scm_utag_cvect): don't define unless
	HAVE_ARRAYS.
	(scm_tag): don't check array types unless HAVE_ARRAYS.

	* sort.c (scm_restricted_vector_sort_x, scm_sorted_p):
	remove the unused array types.
	* (scm_stable_sort, scm_sort): don't support vectors if not
	HAVE_ARRAYS.  a bit excessive.

	* random.c (vector_scale, vector_sum_squares,
	scm_random_solid_sphere_x, scm_random_hollow_sphere_x,
	scm_random_normal_vector_x): don't define unless HAVE_ARRAYS.

	* gh_data.c (makvect, gh_chars2byvect, gh_shorts2svect,
	gh_longs2ivect,	gh_ulongs2uvect, gh_floats2fvect, gh_doubles2dvect,
	gh_uniform_vector_length, gh_uniform_vector_ref):
	don't define unless HAVE_ARRAYS.
	(gh_scm2chars, gh_scm2shorts, gh_scm2longs, gh_scm2floats,
	gh_scm2doubles):
	don't check vector types if not HAVE_ARRAYS.

	* eq.c (scm_equal_p), eval.c (SCM_CEVAL), print.c (scm_iprin1),
	gc.c (scm_gc_mark, scm_gc_sweep), objects.c (scm_class_of):
	don't support the array types unless HAVE_ARRAYS is defined.

	* tags.h: make nine tc7 types conditional on HAVE_ARRAYS.

	* read.c (scm_lreadr): don't check for #* unless HAVE_ARRAYS is
	defined (this should use read-hash-extend).

	* ramap.c, unif.c: don't check whether ARRAYS is defined.

	* vectors.c (scm_vector_set_length_x): moved here from unif.c.  call
	scm_uniform_element_size if HAVE_ARRAYS.
	vectors.h: prototype too.

	* unif.c (scm_uniform_element_size): new procedure.

	* init.c (scm_boot_guile_1): don't call scm_init_ramap or
	scm_init_unif unless HAVE_ARRAYS is defined.

	* __scm.h: don't define ARRAYS.

	* Makefile.am (EXTRA_libguile_la_SOURCES): unif.c and ramap.c
	moved here from	libguile_la_SOURCES.


	* Makefile.am (ice9_sources): add arrays.scm.

	* boot-9.scm: load arrays.scm if 'array is provided.

	* arrays.scm: new file with stuff from boot-9.scm.
1999-11-19 18:16:19 +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
Gary Houston
7dcb364d3b * Move the responsibility for resetting port buffers from the
caller of the ptob seek procedure to the implementation.  This
	gives more control in general to the ptob seek: in particular the
	change of 1999-10-20 can be made to work without breaking seek on
	string ports.  There's a comment in NEWS about upgrading port
	types.

	* ports.c (scm_seek): don't reset the port buffers here.

	* fports.c (fport_seek): reset the buffers, except for the
	0 SEEK_CUR case.

	* strports.c (st_end_input): (bug fix): decrement pt->read_pos by
	offset.  check that it's not less than read_buf.
	(st_seek): reset the buffers first, unless it's the 0 SEEK_CUR
	case and currently reading.
1999-10-24 11:25:31 +00:00
Gary Houston
a2349a2860 notes 1999-10-18 20:57:47 +00:00
Mikael Djurfeldt
9770d235a3 *** empty log message *** 1999-10-08 11:51:03 +00:00
Mikael Djurfeldt
0573ddaea3 *** empty log message *** 1999-10-08 10:46:38 +00:00
Jim Blandy
ce35866271 *** empty log message *** 1999-10-05 23:17:56 +00:00
Jim Blandy
80f2710274 *** empty log message *** 1999-10-05 19:00:38 +00:00
Greg J. Badros
38a15cfd38 * NEWS: More complete description for --enable-debug-freelist. 1999-10-02 22:55:36 +00:00
Greg J. Badros
e1b0d0acc8 *** empty log message *** 1999-09-28 00:39:35 +00:00
Gary Houston
52cfc69be6 support new configure options: --disable-posix, --disable-net
and --disable-regex.
1999-09-26 16:00:36 +00:00
Jim Blandy
cc36e791ad Start a new version. 1999-09-25 18:13:01 +00:00
Jim Blandy
5d195868f9 Add explanation of licensing issues to the description of the
readline interface.
1999-09-23 05:36:00 +00:00
Mikael Djurfeldt
240ed66f84 *** empty log message *** 1999-09-19 14:37:31 +00:00
Mikael Djurfeldt
daf516d661 *** empty log message *** 1999-09-19 14:35:53 +00:00
Mikael Djurfeldt
86a4d62e37 *** empty log message *** 1999-09-16 00:34:21 +00:00
Mikael Djurfeldt
26405bc156 *** empty log message *** 1999-09-15 17:47:13 +00:00
Mikael Djurfeldt
ece4116847 *** empty log message *** 1999-09-13 14:58:33 +00:00
Mikael Djurfeldt
0fdcbcaad5 *** empty log message *** 1999-09-12 14:56:02 +00:00
Jim Blandy
340a877098 *** empty log message *** 1999-09-12 03:52:11 +00:00
Jim Blandy
25b0654ec7 *** empty log message *** 1999-09-11 17:38:10 +00:00