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

6630 commits

Author SHA1 Message Date
Marius Vollmer
bb00edfa92 (top-repl): Use 2 as the limit when saving the stack.
(error-catching-loop): use call-with-blocked-asyncs and
call-with-unblocked-asyncs instead of mask-signals and unmask-signals.
2002-10-09 22:47:34 +00:00
Marius Vollmer
be2588b87d (SCM_ASYNC_TICK): Do without the scm_active_asyncs abbrev. 2002-10-09 22:45:07 +00:00
Marius Vollmer
e292f7aac8 * async.h (scm_call_with_blocked_asyncs,
scm_call_with_unblocked_asyncs, scm_c_call_with_blocked_asyncs,
scm_c_call_with_unblocked_asyncs): New prototypes.
(scm_mask_signals, scm_unmask_signals): Deprecated.
(scm_mask_ints): Turned into a macro.

* async.c (scm_mask_ints): Removed.
(scm_run_asyncs): Do not set scm_mask_ints while running an async.
this should not be necessary.
(scm_async_click): Test block_asyncs instead of scm_mask_ints.
(scm_mask_signals, scm_unmask_signals): Deprecated.  Emit
deprecation warning and check for errornous use.  Set block_asyncs
instead of scm_mask_ints.
(increase_block, decrease_block, scm_call_with_blocked_asyncs,
scm_call_with_unblocked_asyncs, scm_c_call_with_blocked_asyncs,
scm_c_call_with_unblocked_asyncs): New.
2002-10-09 22:44:02 +00:00
Marius Vollmer
8ee25fb9f8 * root.h (scm_root_state): Added 'block_async' slot.
(scm_active_asyncs): Removed abbrev.
* root.c (scm_make_root): Initialize 'block_asyncs' slot.
2002-10-09 22:37:29 +00:00
Marius Vollmer
de46f022e4 (scm_compile_shell_switches): Do not set scm_mask_ints. Asyncs are
enabled by default.
2002-10-09 22:26:37 +00:00
Rob Browning
aae9a22bfb * Makefile.am (srfiinclude_HEADERS, srfiincludedir): install the
srfi headers into guile/srfi/.
2002-10-09 21:56:00 +00:00
Rob Browning
6ea383bbe8 * upstream/Makefile.am (ltdl.h.diff): remove
SCM_INSERTED_DLSYMLIST_STRUCT_DECL during diff computation.
(ltdl.c.diff): remove SCM_INSERTED_DLSYMLIST_STRUCT_DECL during
diff computation.
2002-10-09 21:16:31 +00:00
Rob Browning
c11a6400fa * raw-ltdl.h: add SCM_INSERTED_DLSYMLIST_STRUCT_DECL so we can
insert our own struct name here.
2002-10-09 21:16:24 +00:00
Rob Browning
a798ac8c42 * guile-ltdl.h: add scm_lt_dlsymlist typedef.
(scm_lt_dlpreload_default): new function.  Replaces
scm_lt_dlset_preloaded_symbols which depended on global that
libtool automagically defines in binaries, not libs.
2002-10-09 21:16:18 +00:00
Rob Browning
8b1da91cd5 * guile-ltdl.c (scm_lt_dlpreload_default): new function. Replaces
scm_lt_dlset_preloaded_symbols which depended on global that
libtool automagically defines in binaries, not libs.  Now the call
in guile.c has to pass us that magic value.
(SCM_INSERTED_DLSYMLIST_STRUCT_DECL): used to add a struct name in
the lt_dlsymlist typedef -- we use such a crazy name so we can
remove this in the upstream diff computation.
2002-10-09 21:16:12 +00:00
Rob Browning
76cf0fbd0a *** empty log message *** 2002-10-09 21:16:05 +00:00
Rob Browning
c9cfbf5beb * guile.c (main): change to call scm_lt_dlpreload_default and pass
in lt_preloaded_symbols, a value libtool automagically adds to the
binary.
2002-10-09 21:15:59 +00:00
Neil Jerram
9768e0a96e Use scm_num2int rather than SCM_INUM in soft port extension. 2002-10-09 19:34:55 +00:00
Neil Jerram
34010f5694 Extend soft ports to use input-waiting thunks. 2002-10-09 19:07:23 +00:00
Marius Vollmer
6689417748 *** empty log message *** 2002-10-07 16:38:04 +00:00
Marius Vollmer
b6506f4520 * scheme-scheduling.texi (Asyncs): Updated.
* posix.texi (sigaction): Updated.
2002-10-07 16:34:28 +00:00
Rob Browning
60aa332f83 *** empty log message *** 2002-10-05 20:34:24 +00:00
Marius Vollmer
9310d6f29e *** empty log message *** 2002-10-05 13:07:28 +00:00
Marius Vollmer
a7d3641dc2 (root_mark): Mark active_asyncs slot. 2002-10-05 13:07:06 +00:00
Marius Vollmer
f6b44bd99f * async.c (scm_async_click): Set the cdr of a executed handler
cell to SCM_BOOL_F, not SCM_EOL.
(scm_i_queue_async_cell): Queue the cell at the end of the list,
and only if the handler procedure is not already present.
(scm_system_async_mark_for_thread): Initialize cdr of handler cell
with SCM_BOOL_F.
* scmsigs.c (scm_sigaction_for_thread): Likewise.
2002-10-05 13:06:58 +00:00
Marius Vollmer
5e405a6055 *** empty log message *** 2002-10-05 11:57:41 +00:00
Marius Vollmer
f4e093308a (end-multiline): Use '*function-name*' instead of nonexisting 'name'. 2002-10-05 11:57:35 +00:00
Marius Vollmer
d2d414843b (ltdl.h.diff, ltdl.c.diff): Create them in '.' not in 'upstream' since
we are already in upstream.
2002-10-05 11:55:56 +00:00
Marius Vollmer
47f2f62523 Make sure that $autoheader is always set. When we would use the plain
"autoconf", $autoheader would end up empty and libguile/scmconfig.h.in
would not be updated.
2002-10-05 11:52:07 +00:00
Rob Browning
bdcccc1806 * configure.in: turn on -Werror by default. We're now clean. I'd
like to stay that way.  If we want, we can turn it off by default
when we make the stable release, but I caught a lot of bugs this
way.  Accomodate libguile-ltdl -- therea are some ltdl things that
are commented out now INCLTDL and LIBLTDL.  I think we may not
need them anymore, but I'll leave them until we're sure.  We also
killed off the libltdl dir and related options including the
AC_CONFIG_SUBDIRS.  I also added some explicit tests for some
headers and functions that weren't listed but were in
scmconfig.h.in. though this may have been unnecessary.
2002-10-05 04:57:09 +00:00
Rob Browning
39eef5091d * autogen.sh: remove support for libltdl sub-configure.
(ac_version): widen support check to any 2.5?  autoconf version.
2.54 is out now.
2002-10-05 04:55:57 +00:00
Rob Browning
1c09a4c30f * Makefile.am (SUBDIRS): remove libltdl. 2002-10-05 04:55:51 +00:00
Rob Browning
1360a142de *** empty log message *** 2002-10-05 04:55:43 +00:00
Rob Browning
823b49519f * guile.c (main): switch to scm_lt_dlset_preloaded_symbols; 2002-10-05 04:55:28 +00:00
Rob Browning
66d4f5ccaa * dynl.c (sysdep_dynl_link): switch to scm_lt_dlhandle,
scm_lt_dlopenext, and scm_lt_dlerror.
(sysdep_dynl_unlink): switch to scm_lt_dlhandle, scm_lt_dlclose,
and scm_lt_dlerror.
(sysdep_dynl_func): switch to scm_lt_dlhandle, scm_lt_dlsym,
and scm_lt_dlerror.
(sysdep_dynl_init): switch to scm_lt_dlinit();
2002-10-05 04:55:22 +00:00
Rob Browning
45cf70fa41 * Makefile.am (libguile_la_LIBADD): switch to use
libguile-ltdl.la.
2002-10-05 04:55:16 +00:00
Rob Browning
aa5af3d1be * ChangeLog: moved from ../libltdl. 2002-10-05 04:54:50 +00:00
Rob Browning
cf736a072d * raw-ltdl.h: guile's modified version of the upstream ltdl.h. 2002-10-05 04:52:02 +00:00
Rob Browning
344d7170d7 * raw-ltdl.c: guile's modified version of the upstream ltdl.c.
* raw-ltdl.c: Remove custom realloc. (#define rpl_realloc
realloc).  You can't define realloc like this unless you also
define malloc.  This is a quick hack for now; we may want
something cleaner later.
(memcpy): coerce ptrs to (char *) before copying characters
through them -- I can't recall for sure, but I believe this was
causing an overrun error at times.
(realloc): commented out -- as mentioned above, you can't define
your own malloc unless you know enough about the malloc in use to
be able to tell how big the src ptr is.  The disabled code
incorrectly used the *destination* ptr to decide how much to copy.
This sometimes results in out-of-bound accesses which cause
segfaults.
(tryall_dlopen_module): check to be sure (dirname_len > 0) before
testing first character against '/'.
(try_dlopen): check for feof(file) in read loop -- otherwise
infloop?
(scm_lt_dlopenext): remove unused variable file_found.
(LT_EOS_CHAR): moved here from guile-ltdl.h.
2002-10-05 04:51:55 +00:00
Rob Browning
ac7cc4628d * guile-ltdl.h: main header file for guile's internal
libguile-ltdl.

* raw-ltdl.c: Remove custom realloc. (#define rpl_realloc
realloc).  You can't define realloc like this unless you also
define malloc.  This is a quick hack for now; we may want
something cleaner later.
(memcpy): coerce ptrs to (char *) before copying characters
through them -- I can't recall for sure, but I believe this was
causing an overrun error at times.
(realloc): commented out -- as mentioned above, you can't define
your own malloc unless you know enough about the malloc in use to
be able to tell how big the src ptr is.  The disabled code
incorrectly used the *destination* ptr to decide how much to copy.
This sometimes results in out-of-bound accesses which cause
segfaults.
(tryall_dlopen_module): check to be sure (dirname_len > 0) before
testing first character against '/'.
(try_dlopen): check for feof(file) in read loop -- otherwise
infloop?
(scm_lt_dlopenext): remove unused variable file_found.
(LT_EOS_CHAR): moved here from guile-ltdl.h.
2002-10-05 04:51:36 +00:00
Rob Browning
c29fbdf231 * guile-ltdl.c: main source file for libguile-ltdl -- #includes
raw-ltdl.c and raw-ldtl.h directly.  See README.
2002-10-05 04:51:30 +00:00
Rob Browning
f64d164b1b * guile-ltdl.c: main source file for libguile-ltdl -- #includes
raw-ltdl.c and raw-ldtl.h directly.  See README.

* README: moved from ../libltdl.
2002-10-05 04:51:24 +00:00
Rob Browning
46229a272f * Makefile.am: build new libguile-ltdl.
* upstream/Makefile.am: new file.
2002-10-05 04:51:19 +00:00
Rob Browning
250aecfecf * ChangeLog: moved from ../libltdl. 2002-10-05 04:51:12 +00:00
Rob Browning
f4b028e3d8 * COPYING.LIB: moved from ../libltdl. 2002-10-05 04:51:06 +00:00
Rob Browning
b6b42411cf * upstream/ltdl.h: upstream source. 2002-10-05 04:46:57 +00:00
Rob Browning
d15601668c * upstream/ltdl.c: upstream source. 2002-10-05 04:46:51 +00:00
Rob Browning
a834f6d508 * upstream/Makefile.am: new file. 2002-10-05 04:46:44 +00:00
Rob Browning
7971b3b82d *** empty log message *** 2002-10-05 04:45:15 +00:00
Rob Browning
ac48c7193e *** empty log message *** 2002-10-05 04:33:35 +00:00
Rob Browning
20bf9a3cfe * numbers.c (s_scm_integer_expt): (expt 0 1) should be 1. 2002-10-05 04:27:35 +00:00
Rob Browning
9bc548798d *** empty log message *** 2002-10-05 04:21:04 +00:00
Rob Browning
46f2c0f148 * tests/numbers.test ("expt"): add tests. 2002-10-05 04:12:23 +00:00
Rob Browning
201e7da791 * summarize-guile-TODO (as-leaf): make #\: a char-set. 2002-10-05 04:11:51 +00:00
Rob Browning
0ad7cc4f97 * boot-9.scm (expt): switch if sense and use negative? rather than
>= 0.
2002-10-05 04:10:48 +00:00