1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 05:20:16 +02:00
Commit graph

6023 commits

Author SHA1 Message Date
Marius Vollmer
ed618cc9c1 Made `usleep()' avalable on MinGW. 2001-11-02 00:16:57 +00:00
Marius Vollmer
4f68365d03 Remove unnecessary dirent includes and defines. Include
local `win32-uname.h' for MinGW.  Extern declaration of
`mkstemp()' for systems where it does not exists.  Make
`getlogin()' available on M$-Windows.
2001-11-02 00:16:46 +00:00
Marius Vollmer
e2c801663c Disable extern declaration of `h_errno' for __CYGWIN__,
too.
Put `scm_return_entry()' into HAVE_GETSERVENT conditional.
2001-11-02 00:16:28 +00:00
Marius Vollmer
5507e7260b Include `process.h' is possible. 2001-11-02 00:16:19 +00:00
Marius Vollmer
d7db9f60c2 Make sure to define __SCM_IMPORT__ for shared library
build on Win32.  Disable preloaded symbols on Win2 platforms.
2001-11-02 00:15:53 +00:00
Marius Vollmer
ec65f5dadc * fports.c: Include io.h' is possible. Put *fp' into referring
statement block in `scm_fport_buffer_add()'.
Some corrections in `getflags()'.

* ioext.c, ports.c: Include `io.h' is possible.
2001-11-02 00:15:41 +00:00
Marius Vollmer
c01a6af52f * __scm.h, alist.h, arbiters.h, async.h, backtrace.h, boolean.h,
chars.h, continuations.h, coop-defs.h, coop-threads.h,
debug-malloc.h, debug.h, deprecation.h, dynl.h, dynwind.h,
environments.h, eq.h, error.h, eval.h, evalext.h, extensions.h,
feature.h, filesys.h, fluids.h, fports.h, gc.h, gdb_interface.h,
gdbint.h, gh.h, goops.h, gsubr.h, guardians.h, hash.h, hashtab.h,
hooks.h, init.h, ioext.h, iselect.h, keywords.h, lang.h, list.h,
load.h, macros.h, mallocs.h, modules.h, net_db.h, numbers.h,
objects.h, objprop.h, options.h, pairs.h, ports.h, posix.h, print.h,
procprop.h, procs.h, properties.h, ramap.h, random.h, rdelim.h,
read.h, regex-posix.h, root.h, rw.h, scmsigs.h, script.h, simpos.h,
smob.h, socket.h, sort.h, srcprop.h, stackchk.h, stacks.h, stime.h,
strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
tags.h, threads.h, throw.h, unif.h, values.h, variable.h, vectors.h,
vports.h, weaks.h:
Prefixed each each exported symbol with SCM_API.

* gdb_interface.h (GDB_INTERFACE): Also support __CYGWIN__.
2001-11-02 00:09:41 +00:00
Marius Vollmer
bb1180ef26 `__libc_ia64_register_backing_store_base'
is meant to be a `unsigned long *'.
2001-11-02 00:09:28 +00:00
Marius Vollmer
b8b17bfd31 Include io.h' is possible. Put *fp' into referring
statement block in `scm_fport_buffer_add()'.
Some corrections in `getflags()'.
2001-11-02 00:09:14 +00:00
Marius Vollmer
e0c73a1cb6 Include `direct.h' if possible. Use local
`win32-dirent.h' for the native M$-Windows port.  Define S_IS*()
macros for M$-Windows.  Implementation of `fstat_Win32()' which is
able to differentiate between sockets and other file descriptors.
Use this function as wrapper in `scm_fstat()'.  Fixed typo in
`scm_dirname()'.
2001-11-02 00:09:02 +00:00
Marius Vollmer
87855fa2c4 * __scm.h, alist.h, arbiters.h, async.h, backtrace.h, boolean.h,
chars.h, continuations.h, coop-defs.h, coop-threads.h,
debug-malloc.h, debug.h, deprecation.h, dynl.h, dynwind.h,
environments.h, eq.h, error.h, eval.h, evalext.h, extensions.h,
feature.h, filesys.h, fluids.h, fports.h, gc.h, gdb_interface.h,
gdbint.h, gh.h, goops.h, gsubr.h, guardians.h, hash.h, hashtab.h,
hooks.h, init.h, ioext.h, iselect.h, keywords.h, lang.h, list.h,
load.h, macros.h, mallocs.h, modules.h, net_db.h, numbers.h,
objects.h, objprop.h, options.h, pairs.h, ports.h, posix.h, print.h,
procprop.h, procs.h, properties.h, ramap.h, random.h, rdelim.h,
read.h, regex-posix.h, root.h, rw.h, scmsigs.h, script.h, simpos.h,
smob.h, socket.h, sort.h, srcprop.h, stackchk.h, stacks.h, stime.h,
strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
tags.h, threads.h, throw.h, unif.h, values.h, variable.h, vectors.h,
vports.h, weaks.h:
Prefixed each each exported symbol with SCM_API.

* continuations.c: Added comment about the use of the extern
declarations of {get,set}context() functions used in the ia64 port.

* continuations.h, gc.c: `__libc_ia64_register_backing_store_base'
is meant to be a `unsigned long *'.
2001-11-02 00:08:41 +00:00
Marius Vollmer
e4e933734c Prefixed each each exported symbol with SCM_API. 2001-11-02 00:08:10 +00:00
Marius Vollmer
1174045c9a * __scm.h: Defined SCM_API. This macro gets prepended to all
function and data definitions which should be exported or imported
in the resulting dynamic link library in the Win32 port.

* __scm.h, alist.h, arbiters.h, async.h, backtrace.h, boolean.h,
chars.h, continuations.h, coop-defs.h, coop-threads.h,
debug-malloc.h, debug.h, deprecation.h, dynl.h, dynwind.h,
environments.h, eq.h, error.h, eval.h, evalext.h, extensions.h,
feature.h, filesys.h, fluids.h, fports.h, gc.h, gdb_interface.h,
gdbint.h, gh.h, goops.h, gsubr.h, guardians.h, hash.h, hashtab.h,
hooks.h, init.h, ioext.h, iselect.h, keywords.h, lang.h, list.h,
load.h, macros.h, mallocs.h, modules.h, net_db.h, numbers.h,
objects.h, objprop.h, options.h, pairs.h, ports.h, posix.h, print.h,
procprop.h, procs.h, properties.h, ramap.h, random.h, rdelim.h,
read.h, regex-posix.h, root.h, rw.h, scmsigs.h, script.h, simpos.h,
smob.h, socket.h, sort.h, srcprop.h, stackchk.h, stacks.h, stime.h,
strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
tags.h, threads.h, throw.h, unif.h, values.h, variable.h, vectors.h,
vports.h, weaks.h:
Prefixed each each exported symbol with SCM_API.
2001-11-02 00:07:21 +00:00
Marius Vollmer
94b1762d32 Add win32-uname.c, win32-uname.h, win32-dirent.c
and win32-dirent.h to extra source and header files.  These
include the uname() and the POSIX dirent interface implementation
for M$-Windows.  Put `-no-undefined' into LDFLAGS to support
linkers which do not allow unresolved symbols inside shared
libraries.  Corrected `guile_filter_doc_snarfage$(EXEEXT)'
dependency.
2001-11-02 00:07:11 +00:00
Marius Vollmer
257b6d408d *** empty log message *** 2001-11-02 00:06:57 +00:00
Marius Vollmer
7500c31618 Defintion of SCM_RL_API. Prefixed each exported
symbol with SCM_RL_API.
2001-11-02 00:06:49 +00:00
Marius Vollmer
5e90b6ac04 Include io.h' and exclude sys/time.h' for MinGW. 2001-11-02 00:06:34 +00:00
Marius Vollmer
78f8126600 Define AC_LIBTOOL_WIN32_DLL to build clean dlls
on Win32 platforms.
Define extra compiler flags necessary to build clean dlls.
2001-11-02 00:06:26 +00:00
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