From 2f2f27ccf0fa2f98605e32ed366a3d970c8befd0 Mon Sep 17 00:00:00 2001 From: Ian Piumarta Date: Wed, 22 Mar 2023 18:12:07 +0900 Subject: [PATCH] Record function definitions in program.last map. --- src/ccmeta.leg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ccmeta.leg b/src/ccmeta.leg index b3ce888..a3f3f82 100644 --- a/src/ccmeta.leg +++ b/src/ccmeta.leg @@ -3,7 +3,7 @@ # Copyright (c) 2016-2021 Ian Piumarta and other contributors (see AUTHORS) # All rights reserved (see LICENSE) # -# Last edited: 2023-03-22 18:09:27 by piumarta on zora-10.local +# Last edited: 2023-03-22 18:11:54 by piumarta on zora-10.local %{ /* compile: leg -o ccmeta.c ccmeta.leg @@ -392,6 +392,7 @@ oop new_C_functionDef(oop specifiers, oop declarator, oop declarationList, oop c map_set(object, declarators_symbol, declarator); map_set(object, declarationL_symbol,declarationList); map_set(object, compoundS_symbol, compoundStatement); + map_set(program, last_symbol, object); return object; }