Stefan Jahn [Fri, 30 May 2003 09:39:34 +0000 (09:39 +0000)]
2003-05-30 Stefan Jahn <stefan@lkcc.org>
* configure.in: Checking for unsetenv().
2003-05-30 Stefan Jahn <stefan@lkcc.org>
* posix.c (s_scm_putenv): Use the new HAVE_UNSETENV
appropriately for mingw32 hosts.
* numbers.h: Defining copysign(), isnan() and finite() to
be prefixed by a single '_' for mingw32 hosts.
Kevin Ryde [Fri, 30 May 2003 00:28:04 +0000 (00:28 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 30 May 2003 00:24:33 +0000 (00:24 +0000)]
(max, min): Add tests involving NaNs.
Kevin Ryde [Fri, 30 May 2003 00:23:11 +0000 (00:23 +0000)]
(z_negative_one): New variable.
(scm_init_numbers): Initialize it.
(scm_logcount): Use it and mpz_hamdist to count zeros for negatives.
Kevin Ryde [Fri, 30 May 2003 00:17:01 +0000 (00:17 +0000)]
(Default Ports): Remove duplicate descriptions of
set-current-output-port and set-current-error-port.
Kevin Ryde [Fri, 30 May 2003 00:13:33 +0000 (00:13 +0000)]
Add substring-move-left! and substring-move-right!.
Stefan Jahn [Thu, 29 May 2003 14:39:13 +0000 (14:39 +0000)]
2003-05-29 Stefan Jahn <stefan@lkcc.org>
* configure.in: Removed -lm check and added a cached check for
__libc_stack_end to get it building for mingw32 hosts.
2003-05-29 Stefan Jahn <stefan@lkcc.org>
* win32-dirent.c: Use malloc() instead of scm_malloc().
* stime.c (s_scm_strftime): Add a type cast to avoid compiler
warning.
* posix.c (s_scm_putenv): Disable use of unsetenv() for the
mingw32 build.
* modules.c (s_scm_module_import_interface): Renamed local
variable interface to _interface. Seems like 'interface'
is a special compiler directive for the mingw32 compiler.
* mkstemp.c: Provide prototype to avoid compiler warning.
* load.c (s_scm_search_path): Fixed absolute and relative
path detections for native Windows platforms.
* gc.h, threads.h: Export some more symbols using SCM_API
(necessary to build on mingw32).
* gc-freelist.c ("s_scm_map_free_list",
"s_scm_gc_set_debug_check_freelist_x"): Fixed use of FUNC_NAME.
* fports.c (fport_fill_input): Disable use of
fport_wait_for_input() on Win32 platforms.
* filesys.c (s_scm_basename): Fixed __MINGW32__ code.
* Makefile.am: Modified some rules for cross compiling.
2003-05-29 Stefan Jahn <stefan@lkcc.org>
* raw-ltdl.c: Some more modifications for mingw32 platforms.
2003-05-29 Stefan Jahn <stefan@lkcc.org>
* Makefile.am (libguile_srfi_srfi_1_la_LDFLAGS,
libguile_srfi_srfi_4_la_LDFLAGS,
libguile_srfi_srfi_13_14__la_LDFLAGS): Added the -no-undefined
option for the mingw32 build.
2003-05-29 Stefan Jahn <stefan@lkcc.org>
* standalone/Makefile.am: Setup to build on mingw32.
Dirk Herrmann [Tue, 27 May 2003 18:33:19 +0000 (18:33 +0000)]
* benchmark-suite/lib.scm: Fix some typos in the documentation.
* doc/ref/scheme-compound.texi: Clarified that vectors need to
be quoted.
* doc/tutorial/guile-tut.texi: Fix example, where a vector
constant is used without quoting.
* ice-9/boot-9.scm (make-autoload-interface): Added missing
quote around vector constant.
* test-suite/tests/elisp.test: Added missing quote around vector
constants.
Kevin Ryde [Mon, 26 May 2003 01:00:59 +0000 (01:00 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 26 May 2003 01:00:22 +0000 (01:00 +0000)]
(Locales): Clarify setlocale a bit, list all categories,
cross reference to libc.
Dirk Herrmann [Sun, 25 May 2003 07:50:23 +0000 (07:50 +0000)]
* libguile/eval.c (SCM_CEVAL): In case of an application, all checks
for a proper function object and the correct number of arguments are
now performed in the application part of SCM_CEVAL.
(scm_badformalsp): Removed.
* test-suite/tests/r5rs_pitfall.test: Test 2.1 now passes.
Dirk Herrmann [Sun, 25 May 2003 05:13:17 +0000 (05:13 +0000)]
* deprecated.c (scm_read_and_eval_x): Fixed C99-ism.
Kevin Ryde [Sat, 24 May 2003 01:58:54 +0000 (01:58 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 23 May 2003 23:51:27 +0000 (23:51 +0000)]
ChangeLog'ed 2003-05-12, forgot to commit until now:
(Complex): Show z argument in prototypes.
Kevin Ryde [Fri, 23 May 2003 23:46:20 +0000 (23:46 +0000)]
(The Scheme shell (scsh)): Add index entries.
Kevin Ryde [Fri, 23 May 2003 23:44:25 +0000 (23:44 +0000)]
Add index entries lambda, optargs, syncase.
Kevin Ryde [Fri, 23 May 2003 23:43:18 +0000 (23:43 +0000)]
Revert this change:
(SRFI-13 Miscellaneous): In string-replace, start1 and end1 are not optional.
Kevin Ryde [Fri, 23 May 2003 21:35:30 +0000 (21:35 +0000)]
(SRFI-13 Miscellaneous): In string-replace, start1 and end1 are not optional.
Mikael Djurfeldt [Thu, 22 May 2003 10:22:20 +0000 (10:22 +0000)]
(NUM2INTEGRAL): Avoid warning about conditional
always being false by inserting preprocessor conditional. (Thanks
to Bruce Korb.)
Mikael Djurfeldt [Thu, 22 May 2003 09:16:52 +0000 (09:16 +0000)]
*** empty log message ***
Mikael Djurfeldt [Thu, 22 May 2003 09:16:33 +0000 (09:16 +0000)]
* __scm.h (SCM_STACK_PTR): New macro. (Cast argument through
(void *) in order to avoid an aliasing warning; thanks to Bruce
Korb.)
* stackchk.h (SCM_STACK_OVERFLOW_P): Use SCM_STACK_PTR.
* threads.c (suspend, launch_thread, scm_threads_mark_stacks): Use
SCM_STACK_PTR.
* threads.c (scm_threads_mark_stacks): Bugfix: Changed
thread->base --> t->base.
* eval.c (SCM_CEVAL): Don't cast argument of SCM_STACK_OVERFLOW_P.
Kevin Ryde [Thu, 22 May 2003 01:37:37 +0000 (01:37 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 22 May 2003 01:35:46 +0000 (01:35 +0000)]
(SRFI-2): Rewrite and-let*, describing plain
expression clauses and improving the examples.
Marius Vollmer [Tue, 20 May 2003 19:59:52 +0000 (19:59 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 20 May 2003 19:59:38 +0000 (19:59 +0000)]
(scm_subr_entry, SCM_SUBR_DOC, scm_make_subr,
scm_make_subr_with_generic, scm_make_subr_opt,
scm_call_catching_errors, scm_make_smob_type_mfpe, scm_set_smob_mfpe,
scm_strprint_obj, scm_read_0str, scm_eval_0str, SCM_CHARS, SCM_UCHARS,
SCM_LENGTH): Re-added from the release_1_6 branch. Some have been
slightly rewritten. (scm_i_object_chars, scm_i_object_length): New,
to support SCM_CHARS, SCM_UCHARS, and SCM_LENTH.
Marius Vollmer [Tue, 20 May 2003 19:14:38 +0000 (19:14 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 20 May 2003 19:14:20 +0000 (19:14 +0000)]
(scm_makstr, scm_makfromstr, scm_variable_set_name_hint,
scm_builtin_variable, scm_internal_with_fluids, scm_make_gsubr,
scm_make_gsubr_with_generic, scm_create_hook, SCM_LIST0, SCM_LIST1,
SCM_LIST2, SCM_LIST3, SCM_LIST4, SCM_LIST5, SCM_LIST6, SCM_LIST7,
SCM_LIST8, SCM_LIST9, scm_listify, scm_sloppy_memq, scm_sloppy_memv,
scm_sloppy_member, scm_read_and_eval_x): Re-added from release_1_6
branch.
Marius Vollmer [Tue, 20 May 2003 19:11:16 +0000 (19:11 +0000)]
(list*): Added.
Dirk Herrmann [Mon, 19 May 2003 20:15:08 +0000 (20:15 +0000)]
* eval.c (scm_m_do, unmemocopy, SCM_CEVAL): Reversed order of
names and inits in the memoized code of do.
Mikael Djurfeldt [Mon, 19 May 2003 09:57:01 +0000 (09:57 +0000)]
(yyget_lineno, yyget_in, yyget_out, yyget_leng,
yyget_text, yyset_lineno, yyset_in, yyset_out, yyget_debug,
yyset_debug, yylex_destroy): Added prototypes (otherwise we'll get
a compilation error if error-on-warning is enabled).
Kevin Ryde [Mon, 19 May 2003 01:52:22 +0000 (01:52 +0000)]
*** empty log message ***
Kevin Ryde [Sun, 18 May 2003 22:00:21 +0000 (22:00 +0000)]
(Cross building Guile): Remove --with-cc-for-build in favour of CC_FOR_BUILD.
Marius Vollmer [Sat, 17 May 2003 18:10:09 +0000 (18:10 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 17 May 2003 18:09:31 +0000 (18:09 +0000)]
(socket): Use PF_ instead of AF_ prefix.
Marius Vollmer [Sat, 17 May 2003 00:09:41 +0000 (00:09 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 17 May 2003 00:06:30 +0000 (00:06 +0000)]
Gobble up complete lines after a '#'. This
removes preprocessor directives from the snarfage that might
otherwise confuse us. These directives appear when compiling with
"-g3", for example.
Kevin Ryde [Fri, 16 May 2003 23:42:18 +0000 (23:42 +0000)]
Remove note about removal of substring-move-left! and
substring-move-right!, they're staying.
Kevin Ryde [Fri, 16 May 2003 23:40:16 +0000 (23:40 +0000)]
Add SRFI-1 delete and delete! argument order fixed.
Kevin Ryde [Fri, 16 May 2003 00:07:26 +0000 (00:07 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 16 May 2003 00:01:41 +0000 (00:01 +0000)]
(--with-cc-for-build): Remove this option, CC_FOR_BUILD
variable is more or less standard, and is adequate for the task.
Kevin Ryde [Thu, 15 May 2003 23:45:17 +0000 (23:45 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 15 May 2003 23:39:56 +0000 (23:39 +0000)]
Use @copying, show copyright and permissions at start of info and html.
Kevin Ryde [Thu, 15 May 2003 23:35:32 +0000 (23:35 +0000)]
(SRFI-1 Deleting): Rewrite delete and
delete-duplicates, adding behaviour details specified by srfi-1.
Han-Wen Nienhuys [Thu, 15 May 2003 23:02:48 +0000 (23:02 +0000)]
add my surname
Han-Wen Nienhuys [Thu, 15 May 2003 22:48:20 +0000 (22:48 +0000)]
(scm_finish_srcprop): use
scm_gc_register_collectable_memory()
(scm_make_srcprops): idem.
Han-Wen Nienhuys [Wed, 14 May 2003 11:01:23 +0000 (11:01 +0000)]
(scm_gc_register_collectable_memory): avoid
wrap-around for scm_mtrigger
(scm_gc_register_collectable_memory): abort on overflowing
scm_mallocated().
Kevin Ryde [Mon, 12 May 2003 23:52:53 +0000 (23:52 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 12 May 2003 23:52:17 +0000 (23:52 +0000)]
(=, <, max, min): Add tests of bignum/inf combinations.
Kevin Ryde [Mon, 12 May 2003 23:33:48 +0000 (23:33 +0000)]
Add indexing of srfi numbers, and a couple of procedures not otherwise indexed.
Kevin Ryde [Mon, 12 May 2003 23:22:31 +0000 (23:22 +0000)]
Typo in my last message.
Kevin Ryde [Mon, 12 May 2003 23:21:37 +0000 (23:21 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 12 May 2003 23:16:43 +0000 (23:16 +0000)]
(xmpz_cmp_d): New macro, handling infs if gmp doesn't.
(scm_num_eq_p, scm_less_p, scm_max, scm_min): Use it.
Kevin Ryde [Mon, 12 May 2003 23:05:50 +0000 (23:05 +0000)]
(delete, delete!): Test predicate call arg order.
Kevin Ryde [Mon, 12 May 2003 23:04:23 +0000 (23:04 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 12 May 2003 23:02:01 +0000 (23:02 +0000)]
(delete): Fix predicate arg order to match srfi-1 spec.
Mikael Djurfeldt [Mon, 12 May 2003 20:46:52 +0000 (20:46 +0000)]
* backtrace.c (scm_display_error_message): Introduced fancy
printing with max level 7 and length 10. (Purpose: avoid printing
gigantic objects in error messages.)
* print.c, print.h (scm_i_port_with_print_state): New function.
* print.c (scm_iprin1, scm_printer_apply,
scm_port_with_print_state): Use scm_i_port_with_print_state.
(scm_simple_format): Modified not to destroy print states.
(print_state_mutex): New mutex.
(scm_make_print_state, scm_free_print_state, scm_prin1):
Lock/unlock print_state_mutex.
Mikael Djurfeldt [Mon, 12 May 2003 16:29:45 +0000 (16:29 +0000)]
(SCM_GC8MARKP, SCM_SETGC8MARK, SCM_CLRGC8MARK):
Use current names in definitions.
Kevin Ryde [Sun, 11 May 2003 23:12:45 +0000 (23:12 +0000)]
*** empty log message ***
Kevin Ryde [Sun, 11 May 2003 23:12:18 +0000 (23:12 +0000)]
(CC_FOR_BUILD): Use AC_ARG_VAR.
Kevin Ryde [Sun, 11 May 2003 23:03:57 +0000 (23:03 +0000)]
(SCM_SINGLES): Use AC_CHECK_SIZEOF(float), to
eliminated guess-yes when cross compiling.
Kevin Ryde [Sun, 11 May 2003 22:40:25 +0000 (22:40 +0000)]
*** empty log message ***
Kevin Ryde [Sun, 11 May 2003 22:37:40 +0000 (22:37 +0000)]
(Handling Errors): Fix regexp error key, should
be `regular-expression-syntax'.
Kevin Ryde [Sun, 11 May 2003 22:31:31 +0000 (22:31 +0000)]
(Loading Readline Support, Readline Options):
Index entries for readline functions.
Kevin Ryde [Sun, 11 May 2003 22:26:43 +0000 (22:26 +0000)]
(Guile License): Refer to COPYING.LIB.
Kevin Ryde [Sun, 11 May 2003 22:25:16 +0000 (22:25 +0000)]
*** empty log message ***
Kevin Ryde [Sun, 11 May 2003 22:10:23 +0000 (22:10 +0000)]
(SCM_I_GSC_STACK_GROWS_UP): Fix missing comma in AC_TRY_RUN.
Kevin Ryde [Sat, 10 May 2003 03:59:06 +0000 (03:59 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 10 May 2003 03:58:37 +0000 (03:58 +0000)]
(m): New macro.
Kevin Ryde [Sat, 10 May 2003 01:23:53 +0000 (01:23 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 10 May 2003 01:18:29 +0000 (01:18 +0000)]
(Handling Errors): Index entries for error keys.
Kevin Ryde [Sat, 10 May 2003 01:11:58 +0000 (01:11 +0000)]
(Bitwise Operations): Note negatives are treated as
infinite precision twos complement. Revise `ash' to emphasise this
for right shifts of negatives. Describe integer-length behaviour on
negatives. Add `...' to logand, logior, logxor since they take
multiple parameters.
Kevin Ryde [Sat, 10 May 2003 00:39:32 +0000 (00:39 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 10 May 2003 00:38:24 +0000 (00:38 +0000)]
(file-commentary, find-documentation-in-file): Use
call-with-input-file, to close ports when done.
Kevin Ryde [Sat, 10 May 2003 00:29:48 +0000 (00:29 +0000)]
(Reals and Rationals): Fix typo @result{#f}, and
put @result outside @code.
Kevin Ryde [Sat, 10 May 2003 00:23:50 +0000 (00:23 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 10 May 2003 00:23:00 +0000 (00:23 +0000)]
(gcd): Exercise bignum/inum with a bignum not
fitting a ulong.
Kevin Ryde [Sat, 10 May 2003 00:20:05 +0000 (00:20 +0000)]
(scm_gcd): In bignum/inum, don't pass yy==0 to mpz_gcd_ui
since we're only using the ulong return value, and x might not fit.
Kevin Ryde [Sat, 10 May 2003 00:10:40 +0000 (00:10 +0000)]
(integer-length): Exercise some negatives, in
particular -2^n which is ...11100..00.
Kevin Ryde [Sat, 10 May 2003 00:07:34 +0000 (00:07 +0000)]
(=, <): Add tests involving NaNs.
Kevin Ryde [Sat, 10 May 2003 00:05:51 +0000 (00:05 +0000)]
(scm_integer_length): On negative bignums, adjust
mpz_sizeinbase to account for it looking at absolute value where we
want ones-complement.
Kevin Ryde [Fri, 9 May 2003 23:20:03 +0000 (23:20 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 9 May 2003 23:14:35 +0000 (23:14 +0000)]
(scm_num_eq_p, scm_less_p): Don't pass NaN to mpz_cmp_d.
Kevin Ryde [Fri, 9 May 2003 23:09:30 +0000 (23:09 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 9 May 2003 23:08:57 +0000 (23:08 +0000)]
(Handling Errors): Revise C support section to
get index entries, and clarify parameters. Remove scm_regex_error, no
longer exists and wasn't available to applications.
Kevin Ryde [Fri, 9 May 2003 22:43:00 +0000 (22:43 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 9 May 2003 22:42:00 +0000 (22:42 +0000)]
* tests/srfi-1.test: New file, exercising take and drop.
* Makefile.am (SCM_TESTS): Add it.
Kevin Ryde [Fri, 9 May 2003 22:41:06 +0000 (22:41 +0000)]
New file, exercising take and drop.
Kevin Ryde [Fri, 9 May 2003 22:38:54 +0000 (22:38 +0000)]
(take): Make this an alias for list-head.
(drop): Make this an alias for list-tail.
Kevin Ryde [Thu, 8 May 2003 01:06:59 +0000 (01:06 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 8 May 2003 01:03:51 +0000 (01:03 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 8 May 2003 01:03:25 +0000 (01:03 +0000)]
(Bitwise Operations): Fix lognot to ones-complement.
Kevin Ryde [Thu, 8 May 2003 00:44:27 +0000 (00:44 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 8 May 2003 00:41:16 +0000 (00:41 +0000)]
* slib.texi (JACAL): Fix @ref title.
Add index entries, use @file and @code variously.
Dirk Herrmann [Tue, 6 May 2003 20:17:26 +0000 (20:17 +0000)]
* eval.c, eval.h, read.c, read.h (scm_sym_dot): Moved from eval to
read. This will allow to make the definition in read.c static.
Dirk Herrmann [Tue, 6 May 2003 20:05:04 +0000 (20:05 +0000)]
* eval.c, eval.h, evalext.c, evalext.h (scm_m_undefine): Moved
from evalext to eval. This will allow to make some of the
definitions in eval.c static.
Kevin Ryde [Tue, 6 May 2003 00:37:57 +0000 (00:37 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 6 May 2003 00:30:38 +0000 (00:30 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 5 May 2003 23:09:48 +0000 (23:09 +0000)]
(C level thread interface): Use @deftypefn
not @deftypefun, to get function names (not types) indexed.
Kevin Ryde [Mon, 5 May 2003 23:04:02 +0000 (23:04 +0000)]
(logcount): New tests, exercising some negatives.
Kevin Ryde [Mon, 5 May 2003 23:01:30 +0000 (23:01 +0000)]
(scm_logcount): Use mpz_com, not mpz_neg.