1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00
Commit graph

5705 commits

Author SHA1 Message Date
Marius Vollmer
7ed1380067 Put `-export-dynamic -no-undefined' into LDFLAGS
and add the library `libguile.la' to support linkers which do not
allow unresolved symbols inside shared libraries.
2001-11-02 00:06:18 +00:00
Marius Vollmer
f9e5e096e7 * configure.in: Define AC_LIBTOOL_WIN32_DLL to build clean dlls
on Win32 platforms.
Checking for `ws2_32.dll', `winsock2.h', add `uname.o' and
`dirent.o' and define extra compiler flags necessary to build
clean dlls.
Check for `regcomp()' inside `-lregex'.
2001-11-02 00:05:57 +00:00
Marius Vollmer
fb39eb4933 * check-guile.in: Replaced ln -s' by @LN_S@' to supports
build systems which do not have symbolic links.
2001-11-02 00:05:45 +00:00
Marius Vollmer
8dd6dfdcd2 New files with implementations of dirent and uname for Win32. 2001-11-01 23:23:41 +00:00
Mikael Djurfeldt
d245ce231d * unif.c (scm_uniform_array_read_x, scm_uniform_array_write):
Don't apply scm_uniform_vector_length on arrays.
2001-10-28 11:13:35 +00:00
Gary Houston
a42b5e5b96 * guile.texi, scsh.texi: removed obsolete guile-scsh material
and updated links (I don't know if it should remain in the
	main menu.  It's like slib I think.)
2001-10-27 16:53:35 +00:00
Gary Houston
c2c67382d7 * minor updates to the slib installation notes. 2001-10-27 11:50:59 +00:00
Gary Houston
1ac8e04192 bugs 5 and 6 seem to be fixed. 2001-10-27 11:47:25 +00:00
Dirk Herrmann
2b6b59081a * tests/eval.test: Added tests for promises. 2001-10-26 19:47:57 +00:00
Thien-Thi Nguyen
2ad3278ab9 *** empty log message *** 2001-10-26 12:58:20 +00:00
Thien-Thi Nguyen
6cf0878f9e (7, 8): New. 2001-10-26 12:57:25 +00:00
Thien-Thi Nguyen
d07db248f1 *** empty log message *** 2001-10-25 22:53:07 +00:00
Thien-Thi Nguyen
dc5ab9af95 (6): New. 2001-10-25 22:52:34 +00:00
Thien-Thi Nguyen
f135ca5568 *** empty log message *** 2001-10-25 22:10:49 +00:00
Thien-Thi Nguyen
969182acf5 (5): New. 2001-10-25 22:10:04 +00:00
Thien-Thi Nguyen
a514023d74 *** empty log message *** 2001-10-25 18:14:35 +00:00
Thien-Thi Nguyen
88463d071d Initial revision 2001-10-25 18:13:46 +00:00
Thien-Thi Nguyen
65aec929a6 *** empty log message *** 2001-10-25 17:11:46 +00:00
Thien-Thi Nguyen
23c06383b4 (4): New. 2001-10-25 17:11:13 +00:00
Thien-Thi Nguyen
c95d1a2d80 *** empty log message *** 2001-10-25 16:41:53 +00:00
Thien-Thi Nguyen
7d87115cf8 Expand on file format description.
(1): Update "fixed" field.
(2, 3): New.
2001-10-25 16:38:46 +00:00
Mikael Djurfeldt
1a179b03b0 * lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
  `define-module' form.  This is the recommended way of exporting
  bindings.

* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form.  This is the
recommended way of exporting bindings.

* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.

* slib.scm (array-indexes): New procedure.
(*features*): Extend.  (Probably some of these options should be
set elsewhere.)  (Thanks to Aubrey Jaffer.)

* and-let-star-compat.scm, and-let-star.scm, calling.scm,
  channel.scm, common-list.scm, debug.scm, debugger.scm,
  expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
  null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
  q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
  safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
  syncase.scm, threads.scm: Move module the system directives
  `export', `export-syntax', `re-export' and `re-export-syntax'
  into the `define-module' form.  This is the recommended way of
  exporting bindings.
2001-10-21 09:49:19 +00:00
Dirk Herrmann
b461abe73f * tests/syntax.test: Added test cases for 'cond =>' syntax with
else clause.  Changed some tests and comments related to the
'case' form to reflect recent changes in the implementation.
2001-10-18 21:59:29 +00:00
Dirk Herrmann
8ea4624953 * eval.c (scm_lookupcar, scm_m_letstar, scm_m_do, iqq,
scm_m_define, scm_m_letrec1, scm_m_let, scm_m_expand_body,
scm_macroexp, unmemocopy, scm_eval_args, scm_deval_args,
SCM_CEVAL, scm_map, scm_init_eval):  When building lists, prefer
scm_list_<n> over scm_cons[2]?.

(scm_unmemocar, scm_m_cond, scm_m_letstar, scm_m_letrec1,
scm_m_let, scm_m_atbind, unmemocopy, SCM_CEVAL, SCM_APPLY):  Use
SCM_C[AD][AD]R instead of explicit form.

(scm_m_set_x, scm_m_cond, scm_m_letstar, scm_m_do):  Reordered
comparison parameters.

(scm_m_case, scm_m_cond, scm_m_letstar, scm_m_do, SCM_CEVAL):  Use
!SCM_NULLP instead of SCM_NIMP.

(scm_m_case):  Don't copy the form.  Renamed proc to clause and
minimized its scope.  Renamed x to clauses.  Removed side
effecting operation from macro call.

(scm_m_cond):  Don't copy the form.  Renamed arg1 to clause and
minimized its scope.  Renamed x to clauses.  Minimized the scope
of variable 'len'.  Make sure the else clause is treated specially
even in case of '=>' occurences.  Don't change the else to #t in
order to be able to distinguish this case in the evaluator.  Leave
type checking of the recipient to the evaluator.

(scm_c_improper_memq):  Made the comment somewhat clearer.

(scm_m_lambda):  Renamed proc to formals.  Removed unnecessary
test for SCM_IM_LET at the place of the formal parameters.
Simplified the formal parameter checking.

(scm_m_letstar):  Added Comment.  Renamed proc to bindings.
Renamed arg1 to binding and minimized its scope.  Eliminated
unnecessary consing.

(scm_m_do):  Renamed proc to bindings.  Minimized the scope of
variable 'len'.

(build_binding_list):  New static function.

(unmemocopy):  Don't use SCM_TYP7 on pairs (it's unclean).
Further, split up the 'letrec' unmemoizing code to the
corresponding parts for 'do', 'let' and 'letrec', adding comments
to each form.  Cleanup the handling of the do form (This removes
some *real* code :-).

(SCM_CEVAL):  Removed side effecting operation from macro call.
Handle the 'else clause of the 'cond form specially - the symbol
'else is not replaced with #t any more.
2001-10-18 21:38:04 +00:00
Mikael Djurfeldt
39819fa9e4 * boot-9.scm (process-define-module): New options: :export-syntax,
:re-export-syntax
2001-10-17 12:02:13 +00:00
Gary Houston
8186c4f536 * version.c (scm_version): use sprintf instead of snprintf,
for portability.  thanks to Bill Schottstaedt.
2001-10-14 21:28:23 +00:00
Gary Houston
4f522b6f5c * configure.in: include sys/types.h when testing uint32_t.
thanks to Bill Schottstaedt.
2001-10-14 21:21:20 +00:00
Marius Vollmer
dba1190aed Added Michael Carmack. Removed "Chris Cramer" since he is already
listed as "Christopher".
2001-10-14 20:15:07 +00:00
Marius Vollmer
f84c3705f2 *** empty log message *** 2001-10-14 20:08:20 +00:00
Marius Vollmer
4874dfc849 Do not use an absolute path for <unistd.h> when checking for return
type of usleep.  Thanks to Michael Carmack.
2001-10-14 20:08:08 +00:00
Mikael Djurfeldt
89759084ab * read.c (scm_lreadr): When user-defined hash procedure returns
SCM_UNSPECIFIED: Fall back to standard handling instead of raising
an exception.  (This prevents parsing of uniform vectors from
interfering with parsing of numbers.)

* arrays.scm (read:uniform-vector): Return *unspecified* instead
of raising an exception if hash extend character isn't followed by
the array list. (This prevents parsing of uniform vectors from
interfering with parsing of numbers.)
2001-10-14 16:05:04 +00:00
Dirk Herrmann
ea6c2147b7 * tests/syntax.test: Added test cases for 'lambda' syntax. 2001-10-13 23:59:27 +00:00
Dirk Herrmann
27a226665e * tests/syntax.test: Added test cases for 'case' syntax. 2001-10-13 17:02:01 +00:00
Marius Vollmer
a8e8c20438 Thank Ken Raeburn and Chris Cramer. Removed Jim and Maciej from
maintainer list.
2001-10-13 15:43:38 +00:00
Marius Vollmer
9c7ce56302 *** empty log message *** 2001-10-13 15:42:52 +00:00
Marius Vollmer
143883dd3f (EXTRA_libguile_la_SOURCES): Added "mkstemp.c". 2001-10-13 15:42:07 +00:00
Marius Vollmer
4110fa69b0 (display_backtrace_file_and_line): Only use scm_basename when POSIX
support is compiled in.  Thanks to Chris Cramer.
2001-10-13 15:41:40 +00:00
Marius Vollmer
311f67823d (scm_m_atbind): First try to find the variable without defining it
locally; when it has not been found, define it locally.
2001-10-13 15:41:12 +00:00
Marius Vollmer
dc187f33fd (module_variable): Pass over variables that exist but are unbound. 2001-10-13 15:40:29 +00:00
Marius Vollmer
3756da52d9 Set NO_PREPRO_MAGIC when defining our version of PTRDIFF_MIN. Thanks
to Ken Raeburn.
2001-10-13 15:39:53 +00:00
Dirk Herrmann
1fe5e088ff * numbers.c (mem2uinteger): Return number read so far when coming
across a hexdigit after having read a # or if not reading a hex
value.  This will enable the calling code to correctly handle
forms like 1e2.  (The background is, that the exponent markers d,
e and f are also hexdigits.)  Thanks to Mikael Djurfeldt for
providing this patch.

(mem2complex):  Fix erroneous double-negation.  Now, numbers like
1-i will be read correctly.
2001-10-13 12:39:26 +00:00
Dirk Herrmann
b7d9b1cf5a * tests/numbers.test: Added a test case that checks if valid
number strings are transformed correctly by string->number.
2001-10-13 12:29:44 +00:00
Mikael Djurfeldt
aa5e5d63eb * debug.c (scm_mem_to_proc): Fixed typo in previous change. 2001-10-12 09:02:03 +00:00
Mikael Djurfeldt
68665a9708 * validate.h (SCM_VALIDATE_DOUBLE_DEF_COPY): New macro. 2001-10-12 08:55:05 +00:00
Dirk Herrmann
d5cf5324a3 * print.c (scm_print_state_vtable, print_state_pool):
Initialize.  These variables are now registered as gc roots.

(scm_current_pstate):  Update documentation.

(scm_current_pstate, scm_make_print_state, scm_free_print_state,
scm_prin1, scm_init_print):  print_state_pool is registered as a
gc root and thus does not need to be protected by a surrounding
pair any more.

(make_print_state):  The car of print_state_pool no longer holds
the scm_print_state_vtable.

(scm_current_pstate, scm_make_print_state, print_circref,
scm_iprin1, scm_prin1, scm_iprlist):  Prefer !SCM_<foo> over
SCM_N<foo>.

(scm_prin1):  When building lists, prefer scm_list_<n> over
scm_cons[2]?.

(scm_iprlist):  Removed a redundant SCM_IMP test.

(scm_simple_format):  Use SCM_EQ_P to compare SCM values.
2001-10-11 23:20:52 +00:00
Dirk Herrmann
37c56aecf8 * debug.c (scm_make_iloc): Prefer !SCM_<foo> over SCM_N<foo>.
(scm_memcons, scm_mem_to_proc):  When building lists, prefer
scm_list_<n> over scm_cons[2]?.

(scm_mem_to_proc):  Prefer SCM_CONSP over SCM_NIMP.

(scm_procedure_name):  Use SCM_CADR instead of explicit form.

(debugobj_print):  Coerce scm_intprint arg 1 to long, not int.
Thanks to Rob Browning for the patch (see log entry 2001-09-21) -
for some reason his patch didn't make it into the cvs.
2001-10-11 22:26:25 +00:00
Dirk Herrmann
79d34f68e7 * numbers.c (mem2decimal_from_point): Cleaned up the parsing a
little bit - should even be somewhat more accurate now.
2001-10-09 20:56:36 +00:00
Rob Browning
d918965272 * gc.c: support ia64 register backing store.
(SCM_MARK_BACKING_STORE): new macro.
2001-10-09 03:33:16 +00:00
Rob Browning
766c5eaf49 * continuations.h: support ia64 register backing store.
(struct scm_t_contregs): add ia64 register backing store.
2001-10-09 03:33:06 +00:00
Rob Browning
193297d8b5 * continuations.c: support ia64 register backing store.
(continuation_mark): mark ia64 register backing store.
(continuation_free): free ia64 register backing store.
(scm_make_continuation): capture ia64 register backing store.
(copy_stack_and_call): copy ia64 register backing store.
2001-10-09 03:32:20 +00:00