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

5705 commits

Author SHA1 Message Date
Neil Jerram
028321d473 * Add two files that I seem to have omitted in the move from guile-doc to guile-core.
(guile-tut.texi and ChangeLog-guile-doc-tutorial)
2001-03-23 15:24:38 +00:00
Neil Jerram
780ee65e3b * Automatic docstring updates.
* Commit utilities and tracking files for automatic docstring updates.
2001-03-23 15:05:40 +00:00
Dirk Herrmann
be54b15d85 * Replace function scm_makstr with new function scm_allocate_string. 2001-03-22 12:52:03 +00:00
Keisuke Nishida
3b9e23a7b6 * time.scm (time): Reimplemented as a procedure call.
(Thanks to Marius Vollmer)
2001-03-21 02:25:48 +00:00
Keisuke Nishida
c40eb5944b * safe-r5rs.scm (list): Export. 2001-03-21 02:10:51 +00:00
Martin Grabmüller
13c2013d00 * scheme-options.texi (Evaluator options): Added evaluator
options, corrected docs for evaluator trap options.

	* scheme-evaluation.texi (Scheme Read): New docs for read-options,
	read-enable, read-disable and read-set! and cross references to
	option nodes.
	(Evaluator Options): New docs for eval-options, eval-enable,
	eval-disable and eval-set!, traps, trap-enable, trap-disable and
	trap-set! and cross references to option nodes.
	(Evaluator Behaviour): Renamed node from `Evaluator options' to
	avoid name clash.

	* scheme-io.texi (String Ports): Added docs for SRFI-6 procedures.
	(Void Ports): Corrected introductory comment.
2001-03-20 11:51:26 +00:00
Gary Houston
66301f9ab8 * check-guile.in: 16 documentation tests were failing if "make
check" was run before Guile had been installed with the current
	--prefix.  made various changes to the script so that it runs
	without a cd to the test-suite directory.  For the -i option,
	don't point GUILE_LOAD_PATH to the current directory, but let it
	use it's own scheme library.

	* tests/r4rs.test: use test-file-name to locate r4rs.test,
	not data-file-name.

	* guile-test: define tmp-dir, the location where r4rs.test will
	create it's temporary files.
	(data-file-name): use tmp-dir.  this must be under build-dir,
	not src-dir.
2001-03-19 22:46:21 +00:00
Gary Houston
a492830514 *** empty log message *** 2001-03-19 12:39:36 +00:00
Gary Houston
fb11ef91dc * check-guile.in: rename $parent to $srcdir. if it's equal to "."
set it to `pwd`.
2001-03-19 12:38:40 +00:00
Gary Houston
51cfd7da2c * check-guile.in: use @srcdir@ instead of @test_suite_dir@. use
the current directory (build dir) not srcdir to find guile
	executable.  otherwise "make check" doesn't work with a separate
	build directory.  create the test log in
	$build_dir/check-guile.log instead of in srcdir/test-suite
	directory.
	* configure.in: don't define or substitute test_suite_dir.

	* guile-test: use #!/bogus-path/..., not #!/home/dirk/... in the
	first line.
2001-03-18 23:17:32 +00:00
Gary Houston
6d163216bd * posix.c (scm_tmpnam): check that return value from tmpnam is not
NULL.  rewrote the docstring.
	(scm_mkstemp): new procedure implementing "mkstemp!".
	* posix.h: declare scm_mkstemp.

	* net_db.c: declare h_errno if configure didn't define HAVE_H_ERRNO.
	normally it would be found in netdb.h.
2001-03-18 20:29:58 +00:00
Gary Houston
789ecc0581 * net_db.c: define h_errno if configure didn't define HAVE_H_ERRNO.
normally it would be found in netdb.h.
2001-03-18 11:54:25 +00:00
Gary Houston
e9e225e5ac * configure.in: don't append threads.doc to EXTRA_DOT_DOC_FILES,
since EXTRA_DOT_DOC_FILES is redefined later.  define
	EXTRA_DOT_X_FILES and hand it to AC_SUBST.
	* sort.c (scm_sort): move sortvec variable to avoid a compiler
	warning	when HAVE_ARRAYS is not defined.  move len too.
	* Makefile.am (DOT_X_FILES): remove net_db.x, posix.x, socket.x.
	(EXTRA_DOT_X_FILES): let configure set the value.
	(DOT_DOC_FILES): remove net_db.doc, posix.doc, socket.doc.
2001-03-17 21:20:20 +00:00
Gary Houston
c6c79933b5 * gc.c (scm_must_malloc): changed the comment explaining when
scm_must variants of malloc/free etc., should be used, based on
	explanation from Dirk Herrmann.
	* fports.c (scm_fport_buffer_add): use FUNC_NAME instead of a local
	string with procedure name.  use scm_must_malloc instead of malloc.
	(scm_setvbuf, scm_fdes_to_port, fport_close): use scm_must variants
	of malloc/free.
	* ports.c (scm_add_to_port_table, scm_remove_from_port_table,
	scm_ungetc): use scm_must variants of malloc/realloc/free.
	(scm_add_to_port_table, scm_ungetc): define FUNC_NAME.
2001-03-17 16:59:48 +00:00
Keisuke Nishida
cf7a5ee536 ** New module (ice-9 history) 2001-03-17 15:34:46 +00:00
Keisuke Nishida
870777d7c7 Simple value history support. 2001-03-17 15:32:17 +00:00
Dirk Herrmann
b3fcac341b * __scm.h (SCM_ASSERT, SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,
SCM_WTA_DISPATCH_2, SCM_WTA_DISPATCH_n):  Don't call scm_wta, call
scm_wrong_type_arg instead.

(SCM_WNA):  Deprecated.

* error.[ch] (scm_wta):  Deprecated.

* numbers.c (s_i_log):  Minor comment fix.

* read.c (scm_lreadr), unif.c (scm_aind, scm_shap2ra,
scm_make_shared_array, scm_transpose_array, scm_enclose_array,
scm_array_in_bounds_p): Don't use SCM_ASSERT to check for
wrong-num-args or misc errors.

* unif.c (scm_make_shared_array, scm_transpose_array,
scm_enclose_array, scm_array_in_bounds_p, scm_array_set_x):
Validate the rest argument (note: this is only done when guile is
built with SCM_DEBUG_REST_ARGUMENT=1)

(scm_array_in_bounds_p, scm_uniform_vector_ref, scm_array_set_x):
Replace calls to scm_wrong_num_args by SCM_WRONG_NUM_ARGS.

* validate.h (SCM_FUNC_NAME, SCM_VALIDATE_NUMBER_COPY,
SCM_VALIDATE_NUMBER_DEF_COPY):  Deprecated.
2001-03-17 13:34:21 +00:00
Dirk Herrmann
68baa7e7f8 * validate.h (SCM_WRONG_NUM_ARGS): Call scm_error_num_args_subr
instead of scm_wrong_num_args.

* coop-threads.c:  Don't include libguile/strings.h.  (Was only
needed for former implementation of SCM_WRONG_NUM_ARGS.)

* debug.c (scm_m_start_stack):  Don't use SCM_ASSERT to check for
wrong-num-args errors.
2001-03-17 12:20:36 +00:00
Dirk Herrmann
9f40cd879d * Added function scm_error_num_args_subr. 2001-03-17 11:32:56 +00:00
Keisuke Nishida
0c0ffe090a ** New module (ice-9 time) 2001-03-17 10:04:23 +00:00
Keisuke Nishida
5e38caf196 * time.scm: New file. 2001-03-17 10:01:01 +00:00
Dirk Herrmann
656dfde1bc * Removed old (unused and uninstalled) file oldprint.scm. 2001-03-17 02:53:09 +00:00
Martin Grabmüller
fcaedf9936 * scheme-data.texi (Arithmetic): Documented the arithmetic
procedures.
	(Integer Operations): Added documentation.
	(Comparison): Added documentation.
	(Complex): Added documentation.
	(Symbols and Variables): Comment out `builtin-bindings', which is
	removed according to NEWS.
	(Pairs): Added documentation.
	* scheme-io.texi: Added R5RS index entries for all R5RS
	procedures.
	(File Ports): New docs for `call-with-input-file',
	`call-with-output-file', `with-input-from-file',
	`with-output-to-file', `with-error-to-file'.
	* scheme-control.texi, scheme-utility.texi,
	* scheme-procedures.texi: Added R5RS index entries for all R5RS
	procedures.
	* scheme-evaluation.texi (Fly Evaluation): Added documentation for
	`apply'.  Added R5RS index entries for all R5RS procedures.
	* scheme-data.texi: Added R5RS index entries for all R5RS
	procedures.  Removed R5RS index entries for `ass{q,v,occ}-set!'.
	Removed explicit entries into the function entries.  They are
	automagic.
	(Vectors): Added documentation for `make-vector', `vector-ref' and
	`vector-set!'.
2001-03-16 17:00:21 +00:00
Martin Grabmüller
5352393c55 * list.c (scm_list, scm_cons_star, scm_null_p, scm_list_p),
(scm_length, scm_append, scm_reverse, scm_list_ref),
	(scm_memq, scm_memv, scm_member, scm_delv_x, scm_delete_x),
	(scm_delq, scm_delv, scm_delete, scm_delq1_x, scm_delv1_x),
	(scm_delete1_x), gc.c (scm_map_free_list),
	(scm_free_list_length), hash.c (scm_hashq, scm_hashv),
	(scm_hash), hashtab.c (scm_hashq_ref, scm_hashq_set_x),
	(scm_hashq_remove_x, scm_hashv_ref, scm_hashv_set_x),
	(scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x),
	(scm_hash_remove_x), ports.c (scm_pt_size, scm_pt_member), print.c
	(scm_current_pstate), scmsigs.c (scm_usleep), goops.c
	(scm_get_keyword, scm_sys_compute_slots): Added texinfo markup.

	* weaks.c (scm_weak_vector_p, scm_weak_key_hash_table_p),
	(scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
	rdelim.c (scm_read_delimited_x), strop.c (scm_string_index),
	symbols.c (scm_symbol_interned_p), numbers.c
	(scm_string_to_number), ports.c (scm_port_p): Corrected texinfo
	markup.
2001-03-16 10:00:17 +00:00
Martin Grabmüller
1543613f4b * modules: New directory.
* modules/module-layout.text: New file.
2001-03-16 08:37:37 +00:00
Keisuke Nishida
8dea8611e3 Deprecated macro SCM_CONST_LONG. 2001-03-16 05:12:02 +00:00
Keisuke Nishida
a9205f0774 * snarf.h (SCM_CONST_LONG): Deprecated.
* tag.c (CONST_INUM): New macro.  Use it to define scm_utag_*.
2001-03-16 05:11:34 +00:00
Marius Vollmer
6d583887bb *** empty log message *** 2001-03-15 20:04:56 +00:00
Marius Vollmer
caf08e652e * numbers.c (scm_num2ulong): Check that a bignum is positive
before looking at the magnitude.  Correctly check for overflow
during conversion.
(scm_num2long_long): Likewise.
(scm_num2ulong_long): New.
(ULONG_LONG_MAX): Define if not already defined.
* numbers.h: (scm_num2ulong_long): New prototype.
2001-03-15 20:04:41 +00:00
Marius Vollmer
5345cf7cae * numbers.c (scm_num2ulong): Check that a bignum is positive
before looking at the magnitude.  Correctly check for overflow
during conversion.
2001-03-15 19:21:51 +00:00
Martin Grabmüller
62e63ba927 Document new procedures
open-input-string
open-output-string
get-output-string
2001-03-15 11:39:01 +00:00
Martin Grabmüller
e87a03fce7 * validate.h (SCM_VALIDATE_OPOUTSTRPORT): New macro.
* strports.h (SCM_STRPORTP, SCM_OPSTRPORTP, SCM_OPINSTRPORTP),
	(SCM_OPOUTSTRPORTP): New predicate macros.
	(scm_open_input_string, scm_open_output_string),
	(scm_get_output_string): New prototypes.

	* strports.c (scm_open_input_string, scm_open_output_string),
	(scm_get_output_string): New procedures (SRFI-6 compliant).
	Made scm_tc16_strport non-static.
2001-03-15 11:24:45 +00:00
Dirk Herrmann
160bb34a53 * Removed unused object parameter from SCM_ASSYNT. 2001-03-15 09:50:20 +00:00
Dirk Herrmann
80dee77b86 * Use const specifier in function signature of gh_ints2scm. 2001-03-15 00:42:10 +00:00
Martin Grabmüller
d3dd80ab5b * gh_data.c (gh_scm2chars, gh_scm2shorts, gh_scm2longs),
(gh_scm2floats, gh_scm2doubles): Check for malloc() returning NULL
in various places.
(gh_scm2newstr, gh_symbol2newstr): Change call to
scm_must_malloc() to malloc(), because user-free()able memory is
allocated.
* gc.c: Added declaration of `scm_debug_check_freelist'.
2001-03-14 10:02:12 +00:00
Martin Grabmüller
26a3038db8 * ports.c (scm_port_mode): Changed `mode' array size to 4,
avoiding buffer overflow.
2001-03-13 08:02:02 +00:00
Keisuke Nishida
fe78b6c096 (scm_object_to_string): Takes an optional argument. 2001-03-13 05:59:42 +00:00
Keisuke Nishida
f7fd6a7389 * guile-c.el (guile-c-window-configuration): New variable.
(guile-c-edit-docstring, guile-c-edit-finish):
	Save/restore window-configuration.
2001-03-13 05:49:19 +00:00
Keisuke Nishida
1a92274c8e Use FUNC_NAME. 2001-03-13 02:14:12 +00:00
Keisuke Nishida
b97c6762de Add check-guile. 2001-03-13 02:11:20 +00:00
Keisuke Nishida
1f3908c46a * strports.c (scm_object_to_string): New procedure.
(scm_strprint_obj): Deprecated.
2001-03-13 02:09:57 +00:00
Keisuke Nishida
468bd77ef5 * guile-c.el (guile-c-deprecate-region): New command. 2001-03-13 01:56:47 +00:00
Mikael Djurfeldt
8cdeee7d78 * arrays.scm (make-array): Added quote in front of (). 2001-03-12 15:03:17 +00:00
Dirk Herrmann
e11208ca72 * Cleaned up uses and definition of SCM_ASSYNT. 2001-03-12 14:34:44 +00:00
Keisuke Nishida
d69947f744 * common-list.scm (count-if): New procedure. 2001-03-12 12:23:55 +00:00
Martin Grabmüller
67e8151b65 * load.c (scm_primitive_load, scm_primitive_load_path),
(scm_sys_search_load_path): Corrected docstrings (file ->
	filename).

	* eval.c (scm_force): Added texinfo markup to docstring.
	(scm_promise_p): Renamed parameter to `obj' to match docstring.

	* debug-malloc.c: Reinserted #include <stdio.h>.
2001-03-12 07:08:46 +00:00
Keisuke Nishida
e41561b490 *** empty log message *** 2001-03-12 02:46:13 +00:00
Marius Vollmer
c4f810a466 *** empty log message *** 2001-03-12 00:52:43 +00:00
Marius Vollmer
ac3e3f5b7b * intro.texi: Changed to reflect current practice better. Added
stuff about writing Guile Extensions (aka dynamically loaded
shared libraries).
2001-03-12 00:50:08 +00:00
Keisuke Nishida
a51fe2479e Split up. 2001-03-11 23:57:16 +00:00