r199685 - in /branches/melt-branch/gcc: ChangeL...
bstarynk@gcc.gnu.org
bstarynk@gcc.gnu.org
Wed Jun 5 08:42:00 GMT 2013
Author: bstarynk
Date: Wed Jun 5 08:42:57 2013
New Revision: 199685
URL: http://gcc.gnu.org/viewcvs?rev=199685&root=gcc&view=rev
Log:
2013-06-04 Basile Starynkevitch <basile@starynkevitch.net>
{{Adding ability to call hooks in MELT expressions}}
* melt-runtime.c (meltgc_add_out_cident): Common special
characters are mangled with two lowercase letters.
* melt/warmelt-base.melt (symbol_cname): New function.
* melt/warmelt-macro.melt (class_source_hook_call): New class with
shook_called field.
(expand_hook): New function.
(macroexpand_1): Add :doc string, and call expand_hook when needed.
(mexpand_defhook): Check the length of the name to fit in
MELT_HOOKNAME_LEN chars.
* melt/warmelt-normal.melt (class_nrep_hook_call): New class with
nhook_called & nhook_outs fields.
(normexp_symbol): On failure, abort when bootstrapping with more debug outputs.
(normexp_hook_call): Incomplete stub method for normal_exp on
class_source_hook_call.
* testsuite/melt/thookcall.melt: New test case.
Added:
branches/melt-branch/gcc/testsuite/melt/thookcall.melt
Modified:
branches/melt-branch/gcc/ChangeLog.MELT
branches/melt-branch/gcc/melt-runtime.c
branches/melt-branch/gcc/melt/warmelt-base.melt
branches/melt-branch/gcc/melt/warmelt-macro.melt
branches/melt-branch/gcc/melt/warmelt-normal.melt
More information about the Gcc-cvs
mailing list