1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-30 06:50:31 +02:00
guile/module
Andy Wingo 7382f23e58 add1 and sub1 instructions
* libguile/vm-i-scheme.c: Add add1 and sub1 instructions.
* module/language/tree-il/compile-glil.scm: Compile 1+ and 1- to add1
  and sub1.

* module/language/tree-il/primitives.scm (define-primitive-expander):
  Add support for `if' statements in the consequent.
  (+, -): Compile (- x 1), (+ x 1), and (+ 1 x) to 1- or 1+ as
  appropriate.
  (1-): Remove this one. Seems we forgot 1+ before, but we weren't
  compiling it nicely anyway.

* test-suite/tests/tree-il.test ("void"): Fix expected compilation of (+
  (void) 1) to allow for add1.
2009-08-05 11:55:42 +02:00
..
ice-9 fix gensym creation in psyntax 2009-07-24 12:06:19 +02:00
language add1 and sub1 instructions 2009-08-05 11:55:42 +02:00
oop Change Guile license to LGPLv3+ 2009-06-17 00:22:09 +01:00
rnrs Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
scripts Add `(system base message)', a simple warning framework. 2009-07-31 00:49:22 +02:00
srfi Complete changing license to LGPLv3+ 2009-06-17 22:30:26 +01:00
system Add `(system base message)', a simple warning framework. 2009-07-31 00:49:22 +02:00
Makefile.am Add `(system base message)', a simple warning framework. 2009-07-31 00:49:22 +02:00