1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
Commit graph

19988 commits

Author SHA1 Message Date
Andy Wingo
27ffbfb023 Fix crypt-on-glibc test error
* test-suite/tests/posix.test ("crypt"): Allow for the given salt being
  valid.  Thanks to Jonathan Brielmaier for the report and debugging!
2019-02-21 11:13:28 +01:00
Mike Gran
78468baa11 Fix binary output on files created by mkstemp!
Some operating systems require a O_BINARY flag.

* libguile/filesys.c (scm_i_mkstemp): Don't mask out O_BINARY flag
* test-suite/tests/posix.test ("binary mode honored"): new test
2019-02-09 16:59:38 -08:00
Mike Gran
1437b76777 Avoid leaking a file descriptor in test-unwind
* test-suite/standalone/test-unwind.c (check_ports): explicitly close temp file
2019-02-09 16:39:19 -08:00
Mike Gran
139c702fc8 Fix strftime compile with null threads
* libguile/stime.c (scm_strftime): use correct pthread lock function
2019-02-09 16:20:13 -08:00
Mike Gran
1ba5d6f47a Remove redefinition of when & unless in snarf-check-and-output-texi
* module/scripts/snarf-check-and-output-texi.scm (when, unless): removed
2019-02-09 09:54:55 -08:00
Mike Gran
552f007e91 Don't mutate read-only string in ports test
* test-suite/tests/ports.test ("valid wide mode string"): modified
2019-02-09 09:44:28 -08:00
Andy Wingo
667e511dc3 Fix crypt-on-glibc test error
* test-suite/tests/posix.test ("crypt"): Allow for the given salt being
  valid.  Thanks to Jonathan Brielmaier for the report and debugging!
2019-02-01 18:00:51 +01:00
Ludovic Courtès
45e4ace660 Do not warn the user when 'madvise' returns ENOSYS.
* libguile/vm.c (return_unused_stack_to_os): Avoid 'perror' calls when
'madvise' returns ENOSYS.
2018-12-16 11:34:14 +01:00
Daniel Llorens
901bfef592 Fix tests for SRFI-19 date->string ~N 2018-12-12 08:02:23 +01:00
Daniel Llorens
f74cfce4f1 Support ~N in SRFI-19 string->date
* module/srfi/srfi-19.scm (fractional-integer-reader,
  make-fractional-integer-reader): From reference implementation.
  (reader-directives): Handle #\N, from reference implementation.
* test-suite/tests/srfi-19: Add tests for string->date ~N.
* doc/ref/srfi-modules.texi (string->date): Add line for ~N.
2018-12-11 22:44:34 +01:00
Mark H Weaver
8e86dd93a0 Update (ice-9 match) to include selected bug fixes from upstream.
Fixes <https://bugs.gnu.org/22925> and other bugs.

* module/ice-9/match.upstream.scm: Apply selected fixes from the
upstream match.scm in Chibi-Scheme.
* test-suite/tests/match.test.upstream: Add more tests from upstream.
2018-11-11 23:14:18 -05:00
Mark H Weaver
f24bdb78a3 Fix spelling of ellipsis in (ice-9 match).
* module/ice-9/match.upstream.scm: Change several occurrences
of 'ellipse' and 'ellipses' to 'ellipsis', to more closely match
match.scm from Chibi-Scheme.
2018-11-11 23:13:49 -05:00
Andy Wingo
0d81c5c337 Beginnings of port of x86 to new design 2018-11-04 12:18:51 +01:00
Andy Wingo
c51c93708a Make _rvs array static-const 2018-11-04 12:18:38 +01:00
Andy Wingo
9bc0158238 Inline private.h into jit.c 2018-11-04 10:49:08 +01:00
Andy Wingo
447fccfed6 Remove needless PUBLIC/HIDDEN definitions 2018-10-31 22:05:09 +01:00
Andy Wingo
017740cb52 Really finish stdint conversion 2018-10-31 21:54:19 +01:00
Andy Wingo
9e70bdab38 Update gitignore 2018-10-31 21:49:41 +01:00
Andy Wingo
a0714ec410 Finish conversion to stdint types 2018-10-31 21:49:10 +01:00
Andy Wingo
47970773bc "extern"-related cleanup, and further implementation 2018-10-31 21:45:16 +01:00
Andy Wingo
0d78447d85 Trim unneded bits from jit.c 2018-10-31 19:33:26 +01:00
Mikael Djurfeldt
d81253b292 Documentation fixes
* doc/ref/api-control:
* doc/ref/compiler.texi: Language fixes
* doc/ref/compiler ($kfun): Renamed argument clauses -> clause.
2018-10-31 19:14:01 +01:00
Andy Wingo
e81b64d2fc Update call/receive machinery
Update calls and receives to take their arguments all at once, for more
efficient shuffling.
2018-10-31 11:34:23 +01:00
Andy Wingo
17a38ffd9c Add endian.h 2018-10-30 13:54:48 +01:00
Andy Wingo
f3f71941ac Replace jit_int32_t, etc with stdint types 2018-10-30 13:48:57 +01:00
Andy Wingo
d567faf657 Create beginning of stripped-down lightning interface
This file is the beginning of a lightened lightning.
2018-10-30 13:36:09 +01:00
Andy Wingo
90ebba864a Remove unneeded bits of lightning 2018-10-30 12:32:26 +01:00
Andy Wingo
9c1b01fba5 Simplify file names 2018-10-30 12:29:18 +01:00
Andy Wingo
846e7bc443 Remove -sz.c files
The new form of this library will not need them.
2018-10-30 12:21:45 +01:00
Andy Wingo
48993156f6 Rename lightning.c to jit.c 2018-10-30 12:20:05 +01:00
Andy Wingo
796ec6c16d Rename include to jit.h, move all files to jit/
This change is in anticipation of making this lightning fork into an
include-only library.
2018-10-30 12:16:35 +01:00
Andy Wingo
a5263b6618 Remove autotools 2018-10-30 11:48:23 +01:00
Andy Wingo
8215433144 Remove bits of .gitignore no longer needed 2018-10-30 11:47:57 +01:00
Andy Wingo
beac56d7ec Remove TODO 2018-10-30 11:47:49 +01:00
Andy Wingo
4ca2f6ef2a Archive lightning ChangeLog 2018-10-30 11:42:08 +01:00
Andy Wingo
59064a1949 Move lightning.texi up to root, and remove Makefile.am 2018-10-30 11:35:53 +01:00
Andy Wingo
414f530c1d Inline body.texi and version.texi into lightning.texi 2018-10-30 11:35:01 +01:00
Andy Wingo
423d048b25 Remove example .c files from documentation 2018-10-30 11:33:58 +01:00
Andy Wingo
d90a545a58 Strip "get-jit-size" feature from lightning.
* libguile/lightning/Makefile.am:
* libguile/lightning/configure.ac:
* libguile/lightning/size.c: Remove devel-only "get-jit-size" feature.
2018-10-30 11:22:35 +01:00
Andy Wingo
549dc50cfd Update .gitignore 2018-10-30 11:16:01 +01:00
Andy Wingo
3c76115aec Update version.texi 2018-10-30 10:48:00 +01:00
Mikael Djurfeldt
1f6786db06 Another language fix
* doc/ref/vm.texi: Fix bad sentence.
2018-10-29 20:52:03 +01:00
Mikael Djurfeldt
52398d1db4 Language fix
* doc/ref/vm.texi: Fix bad sentence.
2018-10-29 16:00:44 +01:00
Mikael Djurfeldt
d9af6706e8 Bootstrap optimization
* bootstrap/Makefile.am: Build both eval.go and psyntax-pp.go before
  the rest of the .go files so that they are handled by a fast macro
  expander. This saves time for a parallel build.
2018-10-28 13:36:19 +01:00
Mikael Djurfeldt
1bbce71501 Add texinfo dependency to README
* README: Add texinfo dependency.
2018-10-25 12:35:04 +02:00
Mark H Weaver
9f285187fe SRFI-19: Minor refactor of leap second table lookups.
* module/srfi/srfi-19.scm (leap-second-delta): Replace with ...
(utc->tai): ... this.
(leap-second-neg-delta): Replace with ...
(tai->utc): ... this.
(current-time-tai, priv:time-tai->time-utc!, priv:time-utc->time-tai!)
(time-tai->julian-day, time-monotonic->julian-day): Adapt accordingly.
2018-10-24 01:14:26 -04:00
Mark H Weaver
ac1fa8dba4 SRFI-19: time-utc->date: Support non-integer nanoseconds values.
* module/srfi/srfi-19.scm (time-utc->date): Use 'floor-remainder'
instead of 'modulo'.
2018-10-24 01:14:26 -04:00
Mark H Weaver
c9d903b6e4 SRFI-19: Check for incompatible types in time comparisons.
Fixes <https://bugs.gnu.org/26163>.
Reported by Zefram <zefram@fysh.org>.

* module/srfi/srfi-19.scm (time-compare-check): New procedure.
(time=?): Use 'time-compare-check' to check the arguments and raise an
error in case of mismatched types.  Previously, mismatched types would
cause time=? to return #f.
(time>?, time<?, time>=?, time<=?, time-difference!): Use
'time-compare-check' to check the arguments.
2018-10-21 19:42:38 -04:00
Mark H Weaver
437e1aa036 SRFI-19: Fix normalization of seconds and nanoseconds in time records.
Fixes <https://bugs.gnu.org/26162>.
Reported by Zefram <zefram@fysh.org>.

* module/srfi/srfi-19.scm (time-normalize!): Rewrite.
* test-suite/tests/srfi-19.test: Add tests.
2018-10-21 19:25:45 -04:00
Mikael Djurfeldt
bb0860a0e5 Spelling fixes
* doc/ref/data-rep.texi: Spelling
* doc/ref/vm.texi: Spelling
2018-10-21 14:54:38 +02:00