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

2 commits

Author SHA1 Message Date
Andy Wingo
f930af2737 Move implementation of hooks to Scheme module
* module/ice-9/hooks.scm: New file.
* am/bootstrap.am: Add new file.
* module/ice-9/deprecated.scm: Add trampolines to (ice-9 hooks).
* module/ice-9/scm-style-repl.scm:
* module/ice-9/session.scm:
* module/ice-9/top-repl.scm:
* module/scripts/scan-api.scm:
* guile-readline/ice-9/readline.scm:
* benchmark-suite/benchmark-suite/lib.scm:
* module/system/repl/command.scm:
* module/system/repl/common.scm:
* module/system/repl/debug.scm:
* module/system/repl/error-handling.scm:
* module/system/repl/hooks.scm:
* module/system/repl/reader.scm:
* module/system/repl/repl.scm:
* module/ice-9/history.scm:
* test-suite/tests/hooks.test: Use the new module.
* module/oop/goops.scm: Remove <hook> class definition.
* libguile/vm.c:
* libguile/init.c:
* libguile/Makefile.am:
* libguile.h: Remove hooks.h includes.
* libguile/hooks.c:
* libguile/hooks.h: Remove.
* libguile/deprecated.h:
* libguile/deprecated.c: Add deprecation shims for C API.
2025-06-16 13:11:28 +02:00
Andy Wingo
4b96e2509e Move REPL-related hooks to their own module
* guile-readline/ice-9/readline.scm: Import hooks and reader modules.
(activate-readline): Install via set-repl-reader!.
* module/ice-9/boot-9.scm (abort-hook, before-backtrace-hook)
(after-backtrace-hook): Move to (ice-9 scm-style-repl).
(before-error-hook, after-error-hook, before-read-hook)
(after-read-hook, before-eval-hook, after-eval-hook)
(before-print-hook, after-print-hook, exit-hook): Move to (system repl
hooks).
(repl-reader): Move to (system repl reader).
* module/system/repl/hooks.scm:
* module/system/repl/reader.scm: New files.
* am/bootstrap.am (SOURCES): Add the new files.
* module/system/repl/repl.scm:
* module/system/repl/server.scm:
* module/system/vm/inspect.scm:
* module/system/repl/error-handling.scm:
* module/system/repl/debug.scm:
* module/system/repl/common.scm:
* module/system/repl/command.scm:
* module/ice-9/top-repl.scm:
* module/ice-9/scm-style-repl.scm:
* module/ice-9/history.scm:
* module/ice-9/deprecated.scm: Adapt to import new modules.
2025-06-16 11:45:42 +02:00