diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-05 08:42:57 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-05 08:42:57 +0000 |
commit | f1c2d8da9fabf337e2543106a43542a5bb3d6b47 (patch) | |
tree | 5cb6890a53897312bdd587b0d56a803e87ca88cd /gcc/melt/generated/warmelt-outobj.c | |
parent | 85cb310baf6ce233baa65d6196770406a6d2e641 (diff) | |
download | gcc-f1c2d8da9fabf337e2543106a43542a5bb3d6b47.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@199685 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/melt/generated/warmelt-outobj.c')
0 files changed, 0 insertions, 0 deletions