summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* open-file should handle binary mode and coding declarationsmike-port-encodingsMichael Gran2010-06-053-6/+96
| | | | | | | | | | The open-file port should use the binary-friendly ISO-8859-1 encoding when a file is opened using mode "b". Also, it should honor a "coding:" declaration at the top of a file when reading files where it is present. * libguile/fports.c (scm_open_file): modified * test-suite/tests/ports.test: more tests for open-file * doc/ref/api-io.texi (File Ports): more documentation for open-file
* read-line should use port's encoding, not locale's encodingMichael Gran2010-06-051-3/+10
| | | | * libguile/rdelim.c (scm_read_line): modified, use port's encoding
* Simplify scm_i_scan_for_encodingMichael Gran2010-06-051-15/+18
| | | | | | | Note especially that the variable 'i' has two different uses in this function, and they get confused. * libguile/read.c (scm_i_scan_for_encoding): cleanup
* Update `.gitignore' for new Gnulib-generated files.Ludovic Courtès2010-06-051-0/+5
|
* Update Gnulib to v0.0-3966-g9f737c8 for `libunistring' m4 fixes.Ludovic Courtès2010-06-057-51/+99
|
* brown-paper-bag commitAndy Wingo2010-06-021-8/+9
| | | | | * module/system/vm/debug.scm (frame->module): In which our author misunderstands git's index.
* flesh out recursive repl module with local varsAndy Wingo2010-06-021-0/+14
| | | | | | * module/system/vm/debug.scm (frame->module): Actually bind frame-local variables to values in the new anonymous module. Setting settable vars should work too :)
* recursive repl supportAndy Wingo2010-06-023-38/+65
| | | | | | | | | | | | | | | | | | * module/system/repl/common.scm (*repl-level*): New public fluid. (repl-prompt): If *repl-level* is a positive integer, add it to the prompt. * module/system/repl/repl.scm (start-repl): The `lang' argument is now optional, and defaults to (current-language). New kwargs level and welcome; level defaults to 0, or 1+ the existing level, and the welcome is a boolean, true if level is 0. Parameterize *repl-level* during the dynamic extent of this repl. Also, parameterize the-last-stack to #f for the duration of this repl. * module/system/vm/debug.scm (frame->module, debugger-repl): Stubs of a recursive repl implementation. The idea is to be a repl in the lexical context of the error; but it would be nice to be able to operate in the module of the proc too, for example to export bindings. Hmm.
* current-language fluid refactoringAndy Wingo2010-06-022-7/+15
| | | | | | * module/system/base/compile.scm: * module/system/base/language.scm (*current-language*, current-language): Move this fluid and thunk down to (system base language).
* boot-9 top-repl tweakAndy Wingo2010-06-021-2/+1
| | | | | * module/ice-9/boot-9.scm (top-repl): More concisely drill down to start-repl.
* some repl doc updatesAndy Wingo2010-06-022-13/+18
| | | | | | | | * doc/ref/tour.texi (Reporting Bugs): Update instructions for generating a backtrace. * doc/ref/scheme-using.texi: Update examples of Guile prompts, and add an explanation of the prompt format.
* minor NEWS tweaksAndy Wingo2010-06-021-3/+3
| | | | * NEWS: Fix wordings.
* add #:version (6) to rnrs bytevectors and portsAndy Wingo2010-06-023-5/+7
| | | | | | | | * module/rnrs/bytevectors.scm: * module/rnrs/io/ports.scm: Add #:version (6) to these modules. * module/6/rnrs.scm: Add versions to the import specs for bytevectors and ports.
* fix argument tab-completionAndy Wingo2010-06-021-2/+2
| | | | | | * guile-readline/readline.c (scm_init_readline): Space is a word-breaking char too. Fixes tab-completion for args; thanks to Jao for the patch!
* fix procedure namingAndy Wingo2010-06-022-7455/+7694
| | | | | | | | | | | * module/ice-9/psyntax.scm (define-expansion-accessors): New helper, to define accesors for a particular expansion data structure. Use it later to define lambda?, lambda-meta, and set-lambda-meta!. (maybe-name-value): Update to work with the newly defined accessors. (build-global-reference, build-let, build-named-let, build-letrec): Re-enable naming of procedures. * module/ice-9/psyntax-pp.scm: Regenerated.
* Fix `git-version-gen' sed script.release_1-9-11Ludovic Courtès2010-06-012-2/+2
| | | | | | | * cfg.mk (git-version-gen-tag-sed-script): Remove trailing dash in regexp. * configure.ac: Likewise in the second argument to `AC_INIT'.
* Bump version number for 1.9.11.Ludovic Courtès2010-06-011-1/+1
| | | | * GUILE-VERSION (GUILE_MICRO_VERSION): Increment.
* Make `@' visible in the sxml-match documentation.Ludovic Courtès2010-06-011-10/+10
| | | | * doc/ref/sxml-match.texi (sxml-match): Quote `@' in the examples.
* Remove unused symbols.Ludovic Courtès2010-06-011-2/+0
| | | | * libguile/debug.c (scm_sym_procname, scm_sym_dots): Remove.
* NEWS is readyAndy Wingo2010-06-011-4/+0
| | | | * NEWS: Finalize.
* remove docs for removed proceduresAndy Wingo2010-06-011-19/+0
| | | | | * doc/ref/api-procedures.texi (Compiled Procedures): Remove docs for removed procedures.
* more NEWSAndy Wingo2010-06-011-26/+17
| | | | * NEWS: More updates.
* small NEWS updatesAndy Wingo2010-06-011-2/+2
| | | | * NEWS: Some updates.
* r6rs docs in the manualAndy Wingo2010-06-014-1/+135
| | | | | | | | | | * doc/ref/r6rs.texi (R6RS Support): Skeleton of docs on our R6RS support. * doc/ref/guile.texi: * doc/ref/Makefile.am: Add r6rs.texi. * doc/ref/intro.texi: Add a link to r6rs.texi.
* (rnrs bytevectors) falloutAndy Wingo2010-06-011-1/+1
| | | | * module/Makefile.am (RNRS_SOURCES): Fix for (rnrs bytevectors) rename.
* rename (rnrs bytevector) to (rnrs bytevectors)Andy Wingo2010-06-0119-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | * module/rnrs/bytevectors.scm: Rename to (rnrs bytevectors), from (rnrs bytevector), to match the name from the R6RS. * benchmark-suite/benchmarks/bytevectors.bm: * doc/ref/api-data.texi: * doc/ref/api-foreign.texi: * libguile/bytevectors.c: * module/6/rnrs.scm: * module/language/assembly.scm: * module/language/assembly/compile-bytecode.scm: * module/language/assembly/decompile-bytecode.scm: * module/language/glil/compile-assembly.scm: * module/language/tree-il/primitives.scm: * module/srfi/srfi-4.scm: * module/srfi/srfi-4/gnu.scm: * module/system/foreign.scm: * test-suite/standalone/test-ffi: * test-suite/tests/asm-to-bytecode.test: * test-suite/tests/bytevectors.test: * test-suite/tests/foreign.test: * test-suite/tests/r6rs-ports.test: Update all referrers.
* more 1.9.11 NEWS updatesAndy Wingo2010-06-011-0/+92
| | | | * NEWS: More updates.
* Fix `VM_VALIDATE_BYTEVECTOR' macro wrt. trailing semicolons.Ludovic Courtès2010-06-011-5/+10
| | | | | * libguile/vm-i-scheme.c (VM_VALIDATE_BYTEVECTOR): Enclose in "do { } while (0)".
* Fix unaligned accesses by the bytevector instructions.Ludovic Courtès2010-06-012-59/+97
| | | | | | | | | | * libguile/vm-i-scheme.c (ALIGNED_P): New macro. (BV_FIXABLE_INT_REF, BV_INT_REF, BV_FLOAT_REF, BV_FIXABLE_INT_SET, BV_INT_SET, BV_FLOAT_SET): Check the alignment of the pointer instead of checking "i % size == 0". This fixes bus errors on `sparc64-linux-gnu'. * libguile/vm.c: Include <alignof.h>.
* Upgrade manual to GFDLv1.3+.Ludovic Courtès2010-06-012-19/+76
| | | | | | | | * doc/ref/fdl.texi: Upgrade to GFDLv1.3. * doc/ref/guile.texi: Change copying notice to "Version 1.3 or any later version". (GNU Free Documentation License): New node, formerly in `fdl.texi'.
* Ignore `.version'.Ludovic Courtès2010-05-301-0/+1
|
* Have `test-ffi' run all the tests even after a failure.Ludovic Courtès2010-05-301-2/+10
| | | | | | * test-suite/standalone/test-ffi (failed?): New variable. (test): Set `failed?' to #t upon error and display an error message. Have the exit code depend on FAILED?.
* Fix argument and return value alignment in `scm_i_foreign_call'.Ludovic Courtès2010-05-301-16/+21
| | | | | | | | * libguile/foreign.c (scm_i_foreign_call): Fix the computation of ARG_SIZE wrt. alignment. Arrange so that the address ARGS[i] is aligned, rather than checking whether OFF is aligned. Have the RVALUE be at least word-aligned, which fixes calls to `char'-returning functions on `armv5tel-*-linux-gnueabi'.
* Fix parenthesizing of the `ROUND_UP' macro; factorize.Ludovic Courtès2010-05-304-5/+4
| | | | | | | | | | * libguile/_scm.h (ROUND_UP): New macro. * libguile/continuations.c (ROUND_UP): Remove. * libguile/control.c (ROUND_UP): Remove. * libguile/foreign.c (ROUND_UP): Remove.
* Relax the `(version)' test.Ludovic Courtès2010-05-301-6/+7
| | | | | | * test-suite/tests/version.test ("version reporting works"): Test whether `(version)' contains MAJOR.MINOR.MICRO, rather than being equal to it.
* Use Gnulib's `git-version-gen'.Ludovic Courtès2010-05-304-10/+16
| | | | | | | | | | | | | | * GUILE-VERSION (GUILE_VERSION): Remove. * Makefile.am (dist-hook): Depend on `gen-tarball-version'. (BUILT_SOURCES): New variable. ($(top_srcdir)/.version, gen-tarball-version): New targets. * cfg.mk (git-version-gen-tag-sed-script): New variable. * configure.ac: Use `build-aux/git-version-gen' to generate the VERSION argument of `AC_INIT'. Initialize Automake without `check-news'. Define $GUILE_VERSION as an alias for $PACKAGE_VERSION.
* Import Gnulib's `git-version-gen' module.Ludovic Courtès2010-05-304-2/+168
| | | | * m4/gnulib-cache.m4: Add `git-version-gen'.
* Update Gnulib to v0.0-3955-g8ab5996.Ludovic Courtès2010-05-2971-837/+2256
|
* Update `THANKS'.Ludovic Courtès2010-05-281-0/+1
|
* Remove dead code related to `scm_i_terminating'.Ludovic Courtès2010-05-282-18/+1
| | | | | | | * libguile/fports.c (scm_i_terminating): Remove declaration. (fport_flush): Remove code conditional of `scm_i_terminating'. * libguile/gc.c (scm_i_terminating): Remove.
* Fix the visibility of a few of internal symbols.Ludovic Courtès2010-05-287-15/+12
| | | | | | | | | | | * libguile/gc.h (scm_i_gc): Make internal. * libguile/posix.h (scm_i_locale_mutex): Likewise. * libguile/arrays.h (scm_i_tc16_array): Likewise. * libguile/numbers.c (scm_i_num_less_p): Likewise. * libguile/discouraged.h (scm_i_init_discouraged): Likewise. * libguile/continuations.c (scm_i_dummy): Made static. * libguile/gc.c (scm_i_cell_validation_already_running): Likewise. * libguile/discouraged.h (scm_i_init_discouraged): Likewise.
* Quote the first argument to `AC_DEFINE_UNQUOTED'.Ludovic Courtès2010-05-281-2/+2
| | | | * configure.ac: Quote the first argument to `AC_DEFINE_UNQUOTED'.
* Change occurrences of "filesystem" to "file system".Ludovic Courtès2010-05-282-3/+3
| | | | | | | * doc/ref/posix.texi (File System): Change "filesystem" to "file system". * libguile/posix.c (scm_utime): Ditto.
* Use GCC's `malloc' attribute for malloc-like routines.Ludovic Courtès2010-05-282-10/+24
| | | | | | | | * libguile/__scm.h (SCM_MALLOC): New macro. * libguile/gc.h (scm_malloc, scm_calloc, scm_strdup, scm_strndup, scm_gc_malloc_pointerless, scm_gc_calloc, scm_gc_malloc, scm_gc_strdup, scm_gc_strndup): Mark as `SCM_MALLOC'.
* don't fail when HAVE_STAT64 is undefinedVolker Grabsch2010-05-281-1/+1
| | | | | | | * libguile/_scm.h: Check whether `HAVE_STAT64' is defined instead of checking its value. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* don't run the `pthread_attr_getstack' check when cross compilingVolker Grabsch2010-05-281-30/+34
| | | | | | | * configure.ac: Run the `pthread_attr_getstack' test only when building natively. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* add pdcurses to the list of termlibsVolker Grabsch2010-05-281-1/+1
| | | | | | * acinclude.m4 (GUILE_READLINE): Look for pdcurses as found on MinGW. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* Add `scm_t_aligned_cell' internal type.Ludovic Courtès2010-05-282-5/+31
| | | | | | | | * libguile/_scm.h (struct scm_aligned_cell)[__GNUC__]: New type. (union scm_aligned_cell)[!__GNUC__]: New type. (scm_t_aligned_cell): New type. * libguile/vm.c (vm_dispatch_hook): Use it.
* Ignore explicit phase specification for imports in `library' form.Julian Graham2010-05-272-2/+23
| | | | | | | * module/ice-9/r6rs-libraries.scm (library): Unwrap the `for' sub-form during export resolution the same way that `import' does. * test-suite/tests/rnrs-libraries.test ("implicit phasing"): New test prefix and tests.
* Two spaces.No Itisnt2010-05-271-2/+2
|