bpt/guile.git
20 years ago(File System): In stat:dev and stat:mode, clarify that both are numbers.
Kevin Ryde [Fri, 12 Sep 2003 23:57:03 +0000 (23:57 +0000)]
(File System): In stat:dev and stat:mode, clarify that both are numbers.

20 years ago(Reading): In port-column, port-line,
Kevin Ryde [Fri, 12 Sep 2003 23:55:03 +0000 (23:55 +0000)]
(Reading): In port-column, port-line,
set-port-column! and set-port-line!, port parameter must be given,
there's no default to current input.

20 years ago*** empty log message ***
Kevin Ryde [Fri, 12 Sep 2003 23:47:35 +0000 (23:47 +0000)]
*** empty log message ***

20 years ago(file-exists?): Use stat rather than access?, so as to
Kevin Ryde [Fri, 12 Sep 2003 23:35:54 +0000 (23:35 +0000)]
(file-exists?): Use stat rather than access?, so as to
follow the effective UID/GID not the real ID.  file-exists? is
normally be used as a prelude to opening or some other operation, and
it's the effective ID which will apply there.  Emacs file-exists-p
uses stat, presumably for the the same reason.

20 years ago*** empty log message ***
Marius Vollmer [Fri, 12 Sep 2003 15:43:04 +0000 (15:43 +0000)]
*** empty log message ***

20 years ago(SCM_FENCE): Use __memory_barrier with the Intel compiler on IA64.
Marius Vollmer [Fri, 12 Sep 2003 15:42:29 +0000 (15:42 +0000)]
(SCM_FENCE): Use __memory_barrier with the Intel compiler on IA64.

20 years ago*** empty log message ***
Marius Vollmer [Fri, 12 Sep 2003 15:16:56 +0000 (15:16 +0000)]
*** empty log message ***

20 years ago(make-autoload-interface): Use a proper hashtable as
Marius Vollmer [Fri, 12 Sep 2003 15:16:42 +0000 (15:16 +0000)]
(make-autoload-interface): Use a proper hashtable as
the obarray, not an empty vector.
(make-module): Always construct a hashtable for the obarray, even
for empty ones.

20 years ago(format:error): Use 'format:format' instead of
Marius Vollmer [Fri, 12 Sep 2003 15:14:25 +0000 (15:14 +0000)]
(format:error): Use 'format:format' instead of
'format' since the latter will lock the mutex again that we have
already locked.
(format:format-work): Flag multiple '#' as an error.

20 years ago(scm_tc16_hashtable): Added "extern" declaration.
Marius Vollmer [Fri, 12 Sep 2003 15:11:59 +0000 (15:11 +0000)]
(scm_tc16_hashtable): Added "extern" declaration.

20 years ago(scm_module_reverse_lookup): Check that the obarray really is a
Marius Vollmer [Fri, 12 Sep 2003 15:11:09 +0000 (15:11 +0000)]
(scm_module_reverse_lookup): Check that the obarray really is a
hashtable and do nothing if not.

20 years ago*** empty log message ***
Marius Vollmer [Fri, 12 Sep 2003 14:14:05 +0000 (14:14 +0000)]
*** empty log message ***

20 years agoUse "extern inline" only with GCC. Use "static
Marius Vollmer [Fri, 12 Sep 2003 14:13:48 +0000 (14:13 +0000)]
Use "extern inline" only with GCC.  Use "static
inline" else.

20 years ago * numbers.h (SCM_INEXACTP, SCM_REALP, SCM_COMPLEXP): Removed uses
Dirk Herrmann [Sat, 6 Sep 2003 09:17:29 +0000 (09:17 +0000)]
* numbers.h (SCM_INEXACTP, SCM_REALP, SCM_COMPLEXP): Removed uses
of SCM_SLOPPY_INEXACTP, SCM_SLOPPY_REALP and SCM_SLOPPY_COMPLEXP.

* numbers.h, deprecated.h (SCM_SLOPPY_INEXACTP, SCM_SLOPPY_REALP,
SCM_SLOPPY_COMPLEXP): Deprecated and moved from numbers.h to
deprecated.h.

20 years ago * eq.c (scm_eqv_p, scm_equal_p): Removed uses of
Dirk Herrmann [Sat, 6 Sep 2003 08:50:26 +0000 (08:50 +0000)]
* eq.c (scm_eqv_p, scm_equal_p): Removed uses of
SCM_SLOPPY_INEXACTP, SCM_SLOPPY_REALP and SCM_SLOPPY_COMPLEXP.

* eq.c (scm_eqv_p, scm_equal_p): Reordered comparisons from
0.0==some_expression to some_expression==0.0.  The latter is
better readable.  The former is preferred by some people, since it
leads to a compiler error when confusing == with =.  However, when
using gcc, a warning will be issued if in an if-statement an
assigment appears.  Since many Guile developers are using gcc,
such errors will not remain unnoticed anyway.  We can therefore
focus on better readability.

20 years ago * tags.h: Added description of Guile's type system. Removed some
Dirk Herrmann [Thu, 4 Sep 2003 20:47:41 +0000 (20:47 +0000)]
* tags.h: Added description of Guile's type system.  Removed some
old and misleading comments.

20 years ago * unit.c (scm_cvref): Eliminate unnecessary uses of SCM_NIMP,
Dirk Herrmann [Thu, 4 Sep 2003 20:14:02 +0000 (20:14 +0000)]
* unit.c (scm_cvref): Eliminate unnecessary uses of SCM_NIMP,
SCM_SLOPPY_REALP and SCM_SLOPPY_COMPLEXP.

20 years ago * numbers.h (SCM_MAKINUM): Define in terms of scm_tc2_int.
Dirk Herrmann [Thu, 4 Sep 2003 20:04:30 +0000 (20:04 +0000)]
* numbers.h (SCM_MAKINUM): Define in terms of scm_tc2_int.

(SCM_INEXACTP, SCM_REALP, SCM_COMPLEXP): Define in terms of the
respective SLOPPY macro.

20 years ago * eq.c (scm_equal_p): Use SCM_TYP7 to check if an object is of
Dirk Herrmann [Thu, 4 Sep 2003 19:21:21 +0000 (19:21 +0000)]
* eq.c (scm_equal_p): Use SCM_TYP7 to check if an object is of
type string, not SCM_TYP7S.

20 years ago*** empty log message ***
Kevin Ryde [Wed, 3 Sep 2003 00:03:20 +0000 (00:03 +0000)]
*** empty log message ***

20 years ago(scm_strptime): Add comment about glibc strptime %s and
Kevin Ryde [Wed, 3 Sep 2003 00:01:17 +0000 (00:01 +0000)]
(scm_strptime): Add comment about glibc strptime %s and
current timezone requiring SCM_DEFER_INTS.

20 years ago(Symbol Primitives): In gensym, cross reference
Kevin Ryde [Tue, 2 Sep 2003 23:57:49 +0000 (23:57 +0000)]
(Symbol Primitives): In gensym, cross reference
uninterned symbols, use @w{} on " g" prefix to avoid any chance of a
line break obscuring it.

20 years ago(Keyword Primitives): Add examples to
Kevin Ryde [Tue, 2 Sep 2003 23:55:16 +0000 (23:55 +0000)]
(Keyword Primitives): Add examples to
make-keyword-from-dash-symbol and keyword-dash-symbol.  Add
scm_c_make_keyword.

20 years ago*** empty log message ***
Kevin Ryde [Tue, 2 Sep 2003 23:03:34 +0000 (23:03 +0000)]
*** empty log message ***

20 years ago(scm_lognot): Correction to docstring, ones-complement not 2s-complement.
Kevin Ryde [Tue, 2 Sep 2003 23:00:28 +0000 (23:00 +0000)]
(scm_lognot): Correction to docstring, ones-complement not 2s-complement.

20 years agoRewrite enhanced editing logic - sexp-track.el.
Neil Jerram [Sun, 31 Aug 2003 22:59:39 +0000 (22:59 +0000)]
Rewrite enhanced editing logic - sexp-track.el.

20 years agoMake -s switch optional.
Neil Jerram [Sat, 30 Aug 2003 21:22:45 +0000 (21:22 +0000)]
Make -s switch optional.

20 years ago*** empty log message ***
Kevin Ryde [Sat, 30 Aug 2003 00:07:49 +0000 (00:07 +0000)]
*** empty log message ***

20 years ago(scm_lognot): Rewrite using ~ and mpz_com, for directness
Kevin Ryde [Sat, 30 Aug 2003 00:04:42 +0000 (00:04 +0000)]
(scm_lognot): Rewrite using ~ and mpz_com, for directness
and to have non-integer types rejected as per other logical funcs.

20 years agoCorrection to a comment in:
Kevin Ryde [Sat, 30 Aug 2003 00:02:44 +0000 (00:02 +0000)]
Correction to a comment in:
(list-copy): New tests.

20 years ago(lognot): Add tests.
Kevin Ryde [Sat, 30 Aug 2003 00:00:58 +0000 (00:00 +0000)]
(lognot): Add tests.

20 years ago(Catch): Add scm_internal_catch.
Kevin Ryde [Fri, 29 Aug 2003 23:49:49 +0000 (23:49 +0000)]
(Catch): Add scm_internal_catch.
(Lazy Catch): Add scm_internal_lazy_catch.

20 years ago(Arithmetic): Use a table for scheme to C libm equivalences, add C99 trunc.
Kevin Ryde [Fri, 29 Aug 2003 23:43:12 +0000 (23:43 +0000)]
(Arithmetic): Use a table for scheme to C libm equivalences, add C99 trunc.

20 years ago(Lambda): Note ". rest" list argument is always newly created.
Kevin Ryde [Fri, 29 Aug 2003 23:40:47 +0000 (23:40 +0000)]
(Lambda): Note ". rest" list argument is always newly created.

20 years ago(Remembering During Operations): Note
Kevin Ryde [Fri, 29 Aug 2003 23:32:21 +0000 (23:32 +0000)]
(Remembering During Operations): Note
scm_remember_upto_here_1 applies only to C automatic variables.

20 years ago(SRFI-1 Association Lists): In alist-delete and
Kevin Ryde [Fri, 29 Aug 2003 23:30:00 +0000 (23:30 +0000)]
(SRFI-1 Association Lists): In alist-delete and
alist-delete!, note argument order for the equality calls per SRFI-1
spec.

20 years ago(Multiple Values): In values, show args as "arg1
Kevin Ryde [Fri, 29 Aug 2003 23:22:30 +0000 (23:22 +0000)]
(Multiple Values): In values, show args as "arg1
... argN".  In scm_values, note args is a list and returned object
shares structure with it.

20 years ago(Ports and File Descriptors): In pipe PIPE_BUF, use
Kevin Ryde [Fri, 29 Aug 2003 23:16:19 +0000 (23:16 +0000)]
(Ports and File Descriptors): In pipe PIPE_BUF, use
@defvar, reword a bit for clarity, cross reference glibc.

20 years ago(Network Sockets and Communication): In socket, use
Kevin Ryde [Fri, 29 Aug 2003 23:13:48 +0000 (23:13 +0000)]
(Network Sockets and Communication): In socket, use
@defvar for protocol variables, cross reference for getprotobyname,
note it's usually connect and accept that establishes communication.

20 years ago(Network Sockets and Communication): In socketpair,
Kevin Ryde [Fri, 29 Aug 2003 23:09:39 +0000 (23:09 +0000)]
(Network Sockets and Communication): In socketpair,
clarify the return is a pair with ports in car and cdr, note
connection is full duplex, refer to socket for parameters, refer to
PF_UNIX rather than AF_UNIX.

20 years ago(Append/Reverse): Merge append and append!,
Kevin Ryde [Fri, 29 Aug 2003 23:06:25 +0000 (23:06 +0000)]
(Append/Reverse): Merge append and append!,
shown parameters as lst1 ... lstN, describe list argument for
scm_append and scm_append_x and note that it's unmodified.

20 years agoMove @contents to usual place after title page, and
Kevin Ryde [Fri, 29 Aug 2003 23:02:36 +0000 (23:02 +0000)]
Move @contents to usual place after title page, and
after first menu since that looks nice in html.

20 years ago(Hash Table Reference): Add hashx- case
Kevin Ryde [Fri, 29 Aug 2003 23:01:17 +0000 (23:01 +0000)]
(Hash Table Reference): Add hashx- case
insensitive string example, add cross references to symbol-hash,
string-hash, string-hash-ci, and char-set-hash.

20 years ago*** empty log message ***
Kevin Ryde [Thu, 28 Aug 2003 00:13:06 +0000 (00:13 +0000)]
*** empty log message ***

20 years ago(scm_remember_upto_here_1): Revise comments on the asm form.
Kevin Ryde [Wed, 27 Aug 2003 23:34:53 +0000 (23:34 +0000)]
(scm_remember_upto_here_1): Revise comments on the asm form.

20 years ago*** empty log message ***
Kevin Ryde [Mon, 25 Aug 2003 23:18:12 +0000 (23:18 +0000)]
*** empty log message ***

20 years ago(How guile-snarf works): Need @@ for texinfo in example.
Kevin Ryde [Mon, 25 Aug 2003 23:02:16 +0000 (23:02 +0000)]
(How guile-snarf works): Need @@ for texinfo in example.

20 years ago*** empty log message ***
Kevin Ryde [Mon, 25 Aug 2003 23:00:05 +0000 (23:00 +0000)]
*** empty log message ***

20 years ago(Scientific): Add two-argument atan.
Kevin Ryde [Mon, 25 Aug 2003 22:26:37 +0000 (22:26 +0000)]
(Scientific): Add two-argument atan.

20 years agoAdd srfi-19 date-week-number fix.
Kevin Ryde [Fri, 22 Aug 2003 23:32:55 +0000 (23:32 +0000)]
Add srfi-19 date-week-number fix.

20 years ago*** empty log message ***
Kevin Ryde [Fri, 22 Aug 2003 23:26:07 +0000 (23:26 +0000)]
*** empty log message ***

20 years ago(scm_system): Remove SCM_DEFER_INTS, system() should be
Kevin Ryde [Fri, 22 Aug 2003 23:25:02 +0000 (23:25 +0000)]
(scm_system): Remove SCM_DEFER_INTS, system() should be
thread safe, and could take a long time too.

20 years agoAdd a copyright year.
Kevin Ryde [Fri, 22 Aug 2003 23:23:17 +0000 (23:23 +0000)]
Add a copyright year.

20 years agoAdd new "while" proper break and continue.
Kevin Ryde [Fri, 22 Aug 2003 23:17:50 +0000 (23:17 +0000)]
Add new "while" proper break and continue.
Add srfi-1 list-copy of improper lists.

20 years ago*** empty log message ***
Kevin Ryde [Fri, 22 Aug 2003 23:14:11 +0000 (23:14 +0000)]
*** empty log message ***

20 years ago(list-copy): New tests.
Kevin Ryde [Fri, 22 Aug 2003 22:57:46 +0000 (22:57 +0000)]
(list-copy): New tests.

20 years ago*** empty log message ***
Kevin Ryde [Fri, 22 Aug 2003 22:37:52 +0000 (22:37 +0000)]
*** empty log message ***

20 years ago(list-copy): New function, derived
Kevin Ryde [Fri, 22 Aug 2003 22:36:18 +0000 (22:36 +0000)]
(list-copy): New function, derived
from core list-copy but allowing improper lists, per SRFI-1 spec.

20 years ago(date-week-number): Add tests.
Kevin Ryde [Fri, 22 Aug 2003 22:30:52 +0000 (22:30 +0000)]
(date-week-number): Add tests.

20 years agoAdd a copyright year.
Kevin Ryde [Fri, 22 Aug 2003 22:29:29 +0000 (22:29 +0000)]
Add a copyright year.

20 years ago(date-week-number): Correction, day of week starting
Kevin Ryde [Fri, 22 Aug 2003 22:28:53 +0000 (22:28 +0000)]
(date-week-number): Correction, day of week starting
week applied was off by one.

20 years ago*** empty log message ***
Kevin Ryde [Fri, 22 Aug 2003 01:24:59 +0000 (01:24 +0000)]
*** empty log message ***

20 years ago(-): Exercise bignum - inum.
Kevin Ryde [Fri, 22 Aug 2003 01:23:14 +0000 (01:23 +0000)]
(-): Exercise bignum - inum.

20 years ago*** empty log message ***
Kevin Ryde [Fri, 22 Aug 2003 01:19:24 +0000 (01:19 +0000)]
*** empty log message ***

20 years ago(scm_difference): Correction to bignum - negative inum.
Kevin Ryde [Fri, 22 Aug 2003 01:17:48 +0000 (01:17 +0000)]
(scm_difference): Correction to bignum - negative inum.

20 years agoMisc. file rationalization.
Neil Jerram [Thu, 21 Aug 2003 18:34:43 +0000 (18:34 +0000)]
Misc. file rationalization.

20 years agoReorg to remove guile-init.el.
Neil Jerram [Thu, 21 Aug 2003 18:13:59 +0000 (18:13 +0000)]
Reorg to remove guile-init.el.

20 years agoImport Mikael's Emacs interface code (guileint-1.5.2) into Guile CVS.
Neil Jerram [Wed, 20 Aug 2003 19:00:44 +0000 (19:00 +0000)]
Import Mikael's Emacs interface code (guileint-1.5.2) into Guile CVS.

20 years ago*** empty log message ***
Kevin Ryde [Sun, 17 Aug 2003 00:40:59 +0000 (00:40 +0000)]
*** empty log message ***

20 years ago(while): Exercise break and continue from
Kevin Ryde [Sun, 17 Aug 2003 00:40:33 +0000 (00:40 +0000)]
(while): Exercise break and continue from
recursive nested loops.

20 years ago * boot-9.scm (while): Use a new key dynamically for each loop, so
Kevin Ryde [Sun, 17 Aug 2003 00:36:04 +0000 (00:36 +0000)]
* boot-9.scm (while): Use a new key dynamically for each loop, so
break and continue associate to their loop even when recursing.

20 years ago(Hash Table Reference): Collect up groups of
Kevin Ryde [Sun, 17 Aug 2003 00:28:51 +0000 (00:28 +0000)]
(Hash Table Reference): Collect up groups of
functions to avoid duplication.  Revise notes on hashx functions and
on vector implementation.  In make-hash-table, size is now optional.
Add hash-map and hash-for-each.

20 years ago*** empty log message ***
Kevin Ryde [Tue, 12 Aug 2003 21:48:57 +0000 (21:48 +0000)]
*** empty log message ***

20 years ago(while do): Update `while' for code rewrite, in
Kevin Ryde [Tue, 12 Aug 2003 21:48:27 +0000 (21:48 +0000)]
(while do): Update `while' for code rewrite, in
particular describe break and continue.

20 years ago*** empty log message ***
Kevin Ryde [Tue, 12 Aug 2003 21:43:34 +0000 (21:43 +0000)]
*** empty log message ***

20 years agoAdd a copyright year.
Kevin Ryde [Tue, 12 Aug 2003 21:39:56 +0000 (21:39 +0000)]
Add a copyright year.

20 years ago(while): New tests.
Kevin Ryde [Tue, 12 Aug 2003 21:39:30 +0000 (21:39 +0000)]
(while): New tests.

20 years ago(while): Rewrite, continue as proper escape, break
Kevin Ryde [Tue, 12 Aug 2003 21:38:21 +0000 (21:38 +0000)]
(while): Rewrite, continue as proper escape, break
without return value, break and continue new for each while form,
don't depend on bindings in expansion environment.

20 years ago(open-process): Close input-fdes, output-fdes and
Kevin Ryde [Tue, 12 Aug 2003 21:18:23 +0000 (21:18 +0000)]
(open-process): Close input-fdes, output-fdes and
error-fdes after duping them to 0, 1 and 2.

20 years ago(scm_remember_upto_here_1, scm_remember_upto_here_2): Undefine
Kevin Ryde [Tue, 12 Aug 2003 21:09:10 +0000 (21:09 +0000)]
(scm_remember_upto_here_1, scm_remember_upto_here_2): Undefine
macros while defining functions.

20 years ago(scm_remember_upto_here_1, scm_remember_upto_here_2) [__GNUC__]:
Kevin Ryde [Tue, 12 Aug 2003 21:08:34 +0000 (21:08 +0000)]
(scm_remember_upto_here_1, scm_remember_upto_here_2) [__GNUC__]:
Use volatile asm macros rather than a function call.

20 years ago(scm_system): In docstring, refer to status:exit-val rather than
Kevin Ryde [Tue, 12 Aug 2003 20:24:52 +0000 (20:24 +0000)]
(scm_system): In docstring, refer to status:exit-val rather than
"functions above".

20 years ago(getenv): Use <stdlib.h> for prototype.
Kevin Ryde [Tue, 12 Aug 2003 20:23:35 +0000 (20:23 +0000)]
(getenv): Use <stdlib.h> for prototype.

20 years ago * tests/numbers.test: Eliminated misuses of expect-fail. It
Dirk Herrmann [Sun, 10 Aug 2003 13:19:54 +0000 (13:19 +0000)]
* tests/numbers.test: Eliminated misuses of expect-fail.  It
should only be used in cases, where guile has a known bug.  It
should not be used in cases where an expression is expected to
return #f as its correct result.

20 years agoAdd source-properties versus set-source-properties! fix.
Kevin Ryde [Fri, 8 Aug 2003 23:28:11 +0000 (23:28 +0000)]
Add source-properties versus set-source-properties! fix.

20 years ago*** empty log message ***
Kevin Ryde [Fri, 8 Aug 2003 23:07:07 +0000 (23:07 +0000)]
*** empty log message ***

20 years ago * tests/srcprop.test: New file.
Kevin Ryde [Fri, 8 Aug 2003 23:05:30 +0000 (23:05 +0000)]
* tests/srcprop.test: New file.
* Makefile.am (SCM_TESTS): Add it.

20 years agoNew file.
Kevin Ryde [Fri, 8 Aug 2003 23:04:55 +0000 (23:04 +0000)]
New file.

20 years ago*** empty log message ***
Kevin Ryde [Fri, 8 Aug 2003 22:58:24 +0000 (22:58 +0000)]
*** empty log message ***

20 years ago(scm_source_properties): Return plist from hash if it's a
Kevin Ryde [Fri, 8 Aug 2003 22:57:28 +0000 (22:57 +0000)]
(scm_source_properties): Return plist from hash if it's a
list set by source-properties! rather than an SRCPROPS object,

20 years ago*** empty log message ***
Kevin Ryde [Fri, 8 Aug 2003 22:20:46 +0000 (22:20 +0000)]
*** empty log message ***

20 years ago(Memory Blocks): Add index entries for deprecated scm_must_malloc and friends.
Kevin Ryde [Fri, 8 Aug 2003 22:08:25 +0000 (22:08 +0000)]
(Memory Blocks): Add index entries for deprecated scm_must_malloc and friends.

20 years ago*** empty log message ***
Kevin Ryde [Mon, 28 Jul 2003 23:59:47 +0000 (23:59 +0000)]
*** empty log message ***

20 years ago(length+): Rewrite using scm_ilength.
Kevin Ryde [Mon, 28 Jul 2003 23:54:39 +0000 (23:54 +0000)]
(length+): Rewrite using scm_ilength.

20 years ago(length+): New tests.
Kevin Ryde [Mon, 28 Jul 2003 23:51:41 +0000 (23:51 +0000)]
(length+): New tests.

20 years agoCheck cond-expand srfi-34.
Kevin Ryde [Mon, 28 Jul 2003 23:47:47 +0000 (23:47 +0000)]
Check cond-expand srfi-34.

20 years agoAdd cond-expand-provide srfi-34.
Kevin Ryde [Mon, 28 Jul 2003 23:46:48 +0000 (23:46 +0000)]
Add cond-expand-provide srfi-34.

20 years ago(concatenate, concatenate!): New tests.
Kevin Ryde [Mon, 28 Jul 2003 23:45:31 +0000 (23:45 +0000)]
(concatenate, concatenate!): New tests.

20 years ago(concatenate, concatenate!): Use scm_append and scm_append_x.
Kevin Ryde [Mon, 28 Jul 2003 23:43:51 +0000 (23:43 +0000)]
(concatenate, concatenate!): Use scm_append and scm_append_x.

20 years ago(List Constructors): Remove scm_cons_star, since it's not very helpful.
Kevin Ryde [Mon, 28 Jul 2003 23:31:26 +0000 (23:31 +0000)]
(List Constructors): Remove scm_cons_star, since it's not very helpful.