1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 22:31:12 +02:00
guile/module/language
Andy Wingo 747022e4cb prompt as part of guile's primitive language
* libguile/control.h:
* libguile/control.c: Remove scm_atcontrol and scm_atprompt.
  (scm_c_make_prompt): Remove handler arg, as the handler is inline.
  (scm_abort): New primitive, exported to Scheme as `abort'. The
  compiler will also recognize calls to `abort', but this is the base
  case.
  (scm_init_control): Remove scm_register_control, just have this
  function, which adds `abort' to the `(guile)' module.

* libguile/eval.c (eval): Add SCM_M_PROMPT case.

* libguile/init.c (scm_i_init_guile): Change scm_register_control call
  into a nice orderly scm_init_control call.

* libguile/memoize.h: (scm_sym_at_prompt, SCM_M_PROMPT):
* libguile/memoize.c (MAKMEMO_PROMPT, scm_m_at_prompt, unmemoize): Add
  prompt support to the memoizer.

* libguile/vm-i-system.c (prompt): Fix to not expect a handler on the
  stack.

* module/ice-9/boot-9.scm (prompt): Add definition in terms of @prompt.

* module/ice-9/control.scm: Simplify, and don't play with the compiler
  here, now that prompt and abort are primitive.

* module/ice-9/eval.scm (primitive-eval): Add a prompt case.

* module/language/tree-il/primitives.scm
  (*interesting-primitive-names*): Add @prompt and prompt.
2010-02-19 22:44:24 +01:00
..
assembly fix prompt disassembly bug 2010-02-19 22:35:00 +01:00
brainfuck Revert "implement #:predicate" and remove predicate from <lambda-case> 2009-11-15 21:02:26 +01:00
bytecode language-readers receive environment as an arg 2009-10-16 13:39:24 +02:00
ecmascript Revert "implement #:predicate" and remove predicate from <lambda-case> 2009-11-15 21:02:26 +01:00
elisp Change the Elisp compiler from GPLv2+ to LGPLv3+. 2009-12-15 19:10:48 +01:00
glil prompt handlers are always inline 2010-02-19 15:30:34 +01:00
objcode allocate free variables inline to closures 2010-01-09 16:43:26 +01:00
scheme compilation enviroments are always modules; simplifications & refactorings 2009-10-16 15:33:32 +02:00
tree-il prompt as part of guile's primitive language 2010-02-19 22:44:24 +01:00
value Change Guile license to LGPLv3+ 2009-06-17 00:22:09 +01:00
assembly.scm object->assembly shouldn't presume existence of %nil 2010-01-17 13:41:14 -08:00
glil.scm prompt handlers are always inline 2010-02-19 15:30:34 +01:00
objcode.scm Change Guile license to LGPLv3+ 2009-06-17 00:22:09 +01:00
tree-il.scm add <dynref> and <dynset> to tree-il 2010-02-19 12:10:12 +01:00