[PATCH] doc: Fix typo in PEG example.

2023-11-09 Thread Maxim Cournoyer
* doc/ref/api-peg.texi (PEG API Reference): Fix typo in PEG example. --- doc/ref/api-peg.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ref/api-peg.texi b/doc/ref/api-peg.texi index 82e2758b4..86eb02c28 100644 --- a/doc/ref/api-peg.texi +++ b/doc/ref/api-peg.texi @@

[PATCH] module: Add some docstrings to (system base compile).

2023-11-09 Thread Maxim Cournoyer
* module/system/base/compile.scm (next-pass): Add doc. (compute-compiler, read-and-compile, compile): Likewise. --- module/system/base/compile.scm | 11 +++ 1 file changed, 11 insertions(+) diff --git a/module/system/base/compile.scm b/module/system/base/compile.scm index a33d012bd..f591

[PATCH] scripts: scan-api: Make executable and add proper shebang.

2023-11-09 Thread Maxim Cournoyer
* module/scripts/scan-api.scm: Invoke 'main' from shebang. (main): Strip $0 from ARGS. --- module/scripts/scan-api.scm | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) mode change 100644 => 100755 module/scripts/scan-api.scm diff --git a/module/scripts/scan-api.scm b/module/script

[PATCH 2/2] ice-9: Fix 'include' when used in compilation contexts.

2023-11-09 Thread Maxim Cournoyer
Fix bug #66046. Introduce a 'compilation-source-file-name' fluid that captures the pre-canonicalized file name used when compiling a file, before it gets modified in fport_canonicalize_filename. That reference that can then used directly by 'include', avoiding problems. * module/ice-9/boot-9.scm

[PATCH 1/2] tests: Add new compile-file tests.

2023-11-09 Thread Maxim Cournoyer
Add a test for bug #66046. To run just the compiler tests: ./meta/guile -L test-suite -L . test-suite/tests/compiler.test * test-suite/tests/compiler.test (with-temporary-directory): New syntax. (delete-file-recursively): New procedure. ("compile-file: relative include works") ("compile-file: