1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-08 05:00:17 +02:00
Commit graph

11174 commits

Author SHA1 Message Date
Marius Vollmer
2eb78d0670 (scm_setgroups): Check that the gid list is not too long. Thanks to
Paul Jarc!
2003-09-15 12:36:57 +00:00
Dirk Herrmann
22f2cf2d9a * tags.h: Reduced the number of short instructions from 14 to 13.
The typecode of the former 14th short instruction is now used to
	represent long instructions.  Changed some comments to reflect
	this fact.

	(SCM_MAKISYM): ISYMs get a new tc7 code, namely the one that was
	previously used by SCM_IM_DEFINE.

	(SCM_IM_DEFINE): Turned into a long instruction.

	* eval.c (unmemocopy, SCM_CEVAL): Treat SCM_IM_DEFINE as a long
	instruction.

	* eval.c (SCM_CEVAL): Since characters and iflags have now a tc7
	code that is separate from all instructions, one level of dispatch
	for long instructions can be eliminated.

	* print.c (scm_isymnames): Removed some commented code.
2003-09-14 08:07:10 +00:00
Kevin Ryde
89990cc656 *** empty log message *** 2003-09-13 00:39:44 +00:00
Kevin Ryde
85600a0f78 (SRFI-19): Rewrite, adding descriptions of all
functions, and a bit of an introduction.
2003-09-13 00:39:16 +00:00
Kevin Ryde
9f5e5b5601 *** empty log message *** 2003-09-13 00:18:46 +00:00
Kevin Ryde
c537e01bce (Append/Reverse): Merge reverse and reverse!,
describe newtail parameter for reverse!, remove confusing caveat about
head becoming tail for reverse!.
2003-09-13 00:12:08 +00:00
Kevin Ryde
eee36f2105 (Reading): Add scm_c_read.
(Writing): Add scm_c_write.
2003-09-13 00:09:14 +00:00
Kevin Ryde
57066448c2 (SRFI-1 Constructors): Add list-copy. 2003-09-13 00:01:48 +00:00
Kevin Ryde
957f9f622d (Network Address Conversion): Under IPv4, describe
numeric representation in Guile, add INADDR_LOOPBACK and
INADDR_BROADCAST, add commented-out INADDR_NONE.
2003-09-12 23:59:30 +00:00
Kevin Ryde
5c3917e7f5 (File System): In stat:dev and stat:mode, clarify that both are numbers. 2003-09-12 23:57:03 +00:00
Kevin Ryde
eaa032c389 (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.
2003-09-12 23:55:03 +00:00
Kevin Ryde
f45fd5e126 *** empty log message *** 2003-09-12 23:50:23 +00:00
Kevin Ryde
e4e92cf0af (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.
2003-09-12 23:49:08 +00:00
Kevin Ryde
7743d628c6 *** empty log message *** 2003-09-12 23:47:35 +00:00
Kevin Ryde
833fc2f186 (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.
2003-09-12 23:35:54 +00:00
Marius Vollmer
97a61c5f91 *** empty log message *** 2003-09-12 15:43:04 +00:00
Marius Vollmer
189b66ba87 (SCM_FENCE): Use __memory_barrier with the Intel compiler on IA64. 2003-09-12 15:42:29 +00:00
Marius Vollmer
e721987c47 *** empty log message *** 2003-09-12 15:32:46 +00:00
Marius Vollmer
deddb10425 * continuations.h: Include <ucontext.h> on IA64 instead of
<sys/ucontext.h>.
* continuations.c (scm_make_continuation): Use ia64_getcontext
instead of getcontext on IA64.
2003-09-12 15:32:15 +00:00
Marius Vollmer
50e0ba57da *** empty log message *** 2003-09-12 15:16:56 +00:00
Marius Vollmer
eb84efa171 (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.
2003-09-12 15:16:42 +00:00
Marius Vollmer
8da867bfc6 (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.
2003-09-12 15:14:25 +00:00
Marius Vollmer
cdc5f67652 (scm_tc16_hashtable): Added "extern" declaration. 2003-09-12 15:11:59 +00:00
Marius Vollmer
6dc1cd1eec (scm_module_reverse_lookup): Check that the obarray really is a
hashtable and do nothing if not.
2003-09-12 15:11:09 +00:00
Marius Vollmer
62f548e16c *** empty log message *** 2003-09-12 14:14:05 +00:00
Marius Vollmer
2b2c6fca20 Use "extern inline" only with GCC. Use "static
inline" else.
2003-09-12 14:13:48 +00:00
Dirk Herrmann
0d5e348022 * 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.
2003-09-06 09:17:29 +00:00
Dirk Herrmann
6b412e9171 * 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.
2003-09-06 08:50:26 +00:00
Dirk Herrmann
7e3b25bf51 * tags.h: Added description of Guile's type system. Removed some
old and misleading comments.
2003-09-04 20:47:41 +00:00
Dirk Herrmann
3ea39242b8 * unit.c (scm_cvref): Eliminate unnecessary uses of SCM_NIMP,
SCM_SLOPPY_REALP and SCM_SLOPPY_COMPLEXP.
2003-09-04 20:14:02 +00:00
Dirk Herrmann
5d7d39ff5d * 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.
2003-09-04 20:04:30 +00:00
Dirk Herrmann
baa84a205c * eq.c (scm_equal_p): Use SCM_TYP7 to check if an object is of
type string, not SCM_TYP7S.
2003-09-04 19:21:21 +00:00
Kevin Ryde
53bb87824d *** empty log message *** 2003-09-03 00:03:20 +00:00
Kevin Ryde
03b79aa32a (scm_strptime): Add comment about glibc strptime %s and
current timezone requiring SCM_DEFER_INTS.
2003-09-03 00:01:17 +00:00
Kevin Ryde
90a5894d05 (Symbol Primitives): In gensym, cross reference
uninterned symbols, use @w{} on " g" prefix to avoid any chance of a
line break obscuring it.
2003-09-02 23:57:49 +00:00
Kevin Ryde
2886a77502 (Keyword Primitives): Add examples to
make-keyword-from-dash-symbol and keyword-dash-symbol.  Add
scm_c_make_keyword.
2003-09-02 23:55:16 +00:00
Kevin Ryde
ba15f500e3 *** empty log message *** 2003-09-02 23:03:34 +00:00
Kevin Ryde
434a0e3312 *** empty log message *** 2003-09-02 23:02:22 +00:00
Kevin Ryde
147e47c884 (scm_lognot): Correction to docstring, ones-complement not 2s-complement. 2003-09-02 23:01:38 +00:00
Kevin Ryde
4d814788fc (scm_lognot): Correction to docstring, ones-complement not 2s-complement. 2003-09-02 23:00:28 +00:00
Neil Jerram
4559123bee Rewrite enhanced editing logic - sexp-track.el. 2003-08-31 22:59:39 +00:00
Neil Jerram
defdc4b4ee Make -s switch optional. 2003-08-30 21:22:45 +00:00
Neil Jerram
a9cd13ca7c Thank Aaron VanDevender. 2003-08-30 19:51:08 +00:00
Neil Jerram
5bc125ead8 Doc for load-extension contributed by Aaron VanDevender. 2003-08-30 19:49:59 +00:00
Kevin Ryde
0f008a157a *** empty log message *** 2003-08-30 00:07:49 +00:00
Kevin Ryde
f9811f9f2e (scm_lognot): Rewrite using ~ and mpz_com, for directness
and to have non-integer types rejected as per other logical funcs.
2003-08-30 00:04:42 +00:00
Kevin Ryde
813729f6fa Correction to a comment in:
(list-copy): New tests.
2003-08-30 00:02:44 +00:00
Kevin Ryde
1ec2dd6fd2 (lognot): Add tests. 2003-08-30 00:00:58 +00:00
Kevin Ryde
53872505f0 (Catch): Add scm_internal_catch.
(Lazy Catch): Add scm_internal_lazy_catch.
2003-08-29 23:49:49 +00:00
Kevin Ryde
39d27c83ba (Arithmetic): Use a table for scheme to C libm equivalences, add C99 trunc. 2003-08-29 23:43:12 +00:00