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

585 commits

Author SHA1 Message Date
Greg J. Badros
0f202d3f36 *** empty log message *** 2000-03-01 21:18:35 +00:00
Greg J. Badros
ed11b876c8 * streams.scm: Doc patch from Richard Kim, using MIT Scheme as
source of the numerous very short changes.
2000-03-01 20:21:24 +00:00
Greg J. Badros
92540145dd *** empty log message *** 2000-02-14 02:04:20 +00:00
Greg J. Badros
e3d8af60c4 * slib.scm: Rename software-type to slib:software-type and make it
public.

* r4rs.scm: Added documentation; largely cut and pasted from R4RS
info pages.
2000-02-14 02:04:14 +00:00
Greg J. Badros
1669305496 * common-list.scm: Added documentation; largely cut and pasted
from slib docs.
2000-02-14 01:49:48 +00:00
Mikael Djurfeldt
b1c7c8f1ec *** empty log message *** 2000-02-11 04:48:18 +00:00
Mikael Djurfeldt
1af9072d73 * format.scm (format): Reintroduce (define format format:format)
so that the binding in the public interface of the module will be OK.
2000-02-11 04:48:07 +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
Greg J. Badros
078e909286 *** empty log message *** 2000-01-20 21:01:13 +00:00
Greg J. Badros
14469b7c69 * format.scm: Use (variable-set! (builtin-variable 'format)) to
re-define format to be format:format (instead of just define,
which interacts poorly with the module system).  Thanks to Shuji
Narazaki for this change.
2000-01-20 20:58:30 +00:00
Greg J. Badros
7965d98fd6 *** empty log message *** 2000-01-11 18:52:55 +00:00
Greg J. Badros
8641dd9e73 * boot-9.scm expect.scm, syncase.scm: Switch to new style
`simple-format' message strings: substitute ~A for %s, and ~S for
%S.

* boot-9.scm:  Added (define format simple-format) to expose that
primitive via the simpler name until format.scm is loaded.
2000-01-11 18:52:25 +00:00
Marius Vollmer
f73d2411a5 *** empty log message *** 2000-01-10 00:38:02 +00:00
Marius Vollmer
352d134ce5 * boot-9.scm (try-using-libtool-name): Do not bother to look
inside libtool ".la" file, dynamic-link does this for us now.
2000-01-10 00:33:39 +00:00
Gary Houston
f353a9e232 * slib.scm (library-vicinity, home-vicinity,
scheme-implementation-type, scheme-implemenation-version):
	use define-public to export from the module.
1999-12-15 18:12:44 +00:00
Greg J. Badros
e18a3a4d23 *** empty log message *** 1999-12-15 16:35:38 +00:00
Greg J. Badros
901f6de0a1 Search lots of different places, just to be safe, for now. 1999-12-15 16:35:07 +00:00
Greg J. Badros
e1442b1173 * doc.scm: Use `%library-dir', not the quickly defuncted
`library-dir' that I added before realizing the former existed.
Thanks Brad Knotwell!
1999-12-15 16:32:36 +00:00
Greg J. Badros
62b8227439 *** empty log message *** 1999-12-13 03:47:14 +00:00
Greg J. Badros
75948d1b31 * Makefile.am, doc.scm: Added doc.scm. 1999-12-13 03:19:11 +00:00
Greg J. Badros
5622c63001 *** empty log message *** 1999-12-13 02:57:30 +00:00
Greg J. Badros
ea4bcd7b54 * popen.scm, slib.scm: Added some docstrings for procedures that
were primitives that I encountered in posix.texi.
1999-12-13 02:54:56 +00:00
Gary Houston
b4ca4db3e0 New file. 1999-11-19 18:22:46 +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
Jim Blandy
0cbedb5b2b *** empty log message *** 1999-10-05 22:36:14 +00:00
Jim Blandy
0c1221ab9c *** empty log message *** 1999-10-05 20:49:29 +00:00
Jim Blandy
b04657c251 * Makefile.in: Deleted from CVS repository. Run the autogen.sh
script to create generated files like this one.
1999-10-05 19:08:25 +00:00
Jim Blandy
7b7148d8ef Revert back to text generated by automake 1.4. 1999-10-02 22:57:38 +00:00
Greg J. Badros
155265386a *** empty log message *** 1999-09-27 23:35:33 +00:00
Gary Houston
52cfc69be6 support new configure options: --disable-posix, --disable-net
and --disable-regex.
1999-09-26 16:00:36 +00:00
Mikael Djurfeldt
09cbffcde1 *** empty log message *** 1999-09-16 23:45:11 +00:00
Mikael Djurfeldt
e385639ebb * debugger.scm (read-and-dispatch-commands): Handle other throws
than 'exit-debugger.
1999-09-16 23:44:54 +00:00
Mikael Djurfeldt
8087b6be5a * boot-9.scm (before-signal-stack): New fluid.
(top-repl): Set before-signal-stack in the signal handler.
1999-09-16 23:44:33 +00:00
Mikael Djurfeldt
4c59297c68 *** empty log message *** 1999-09-16 22:42:36 +00:00
Mikael Djurfeldt
318a34eeb6 * debugger.scm (eval-handler): Handle unhandled exceptions. 1999-09-16 22:42:11 +00:00
Mikael Djurfeldt
b50408e5db *** empty log message *** 1999-09-16 21:26:46 +00:00
Mikael Djurfeldt
8b8fd2e3ce * debugger.scm ("p"): New alias for "evaluate";
Mark module with :no-backtrace.
("position"): New command.
(source-position, display-position): New procedures.
(display-source): Display position of expression, if available.
(catch-user-errors): Return #f on error.  (Commands are expected
to return a valid state.)
(read-and-dispatch-command): Bugfix: Return old state on error.
1999-09-16 21:26:27 +00:00
Jim Blandy
bbfba54575 *** empty log message *** 1999-09-16 20:10:31 +00:00
Jim Blandy
f564140129 * regex.scm (regexp-substitute/global): Handle the end of the
match list and an empty match list identically.  (Thanks to Greg
Badros.)
1999-09-16 20:09:46 +00:00
Mikael Djurfeldt
5eb548fc54 *** empty log message *** 1999-09-15 15:22:58 +00:00
Mikael Djurfeldt
2834f3fe11 * debugger.scm ("evaluate"): Replaced `write-line' with calls to
`write' and `newline' since write-line doesn't write but displays.
1999-09-15 15:21:25 +00:00
Mikael Djurfeldt
0aaa8b8658 Regenerated 1999-09-12 15:25:35 +00:00
Mikael Djurfeldt
0fdcbcaad5 *** empty log message *** 1999-09-12 14:56:02 +00:00
Mikael Djurfeldt
c129a9b4cd * debugger.scm ("evaluate"): Newline after no env announcement. 1999-09-12 14:55:44 +00:00
Mikael Djurfeldt
30772a346b Fixed typo 1999-09-12 11:42:10 +00:00
Mikael Djurfeldt
b15359ab4b Reverted the recent set backtrace width change. 1999-09-12 11:40:31 +00:00
Mikael Djurfeldt
03ce8ed182 *** empty log message *** 1999-09-12 11:06:47 +00:00
Mikael Djurfeldt
0eaf5d77da * debug.scm, emacs.scm: Updated copyrigth notices. 1999-09-12 11:06:25 +00:00