projects
/
fur
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set the environment to the same variable name
[fur]
/
templates
/
program.c
diff --git
a/templates/program.c
b/templates/program.c
index
6b49881
..
f2fc244
100644
(file)
--- a/
templates/program.c
+++ b/
templates/program.c
@@
-522,6
+522,13
@@
Environment* EnvironmentPool_allocate(EnvironmentPool* self)
return EnvironmentPool_allocate(previous->overflow);
}
return EnvironmentPool_allocate(previous->overflow);
}
+Environment* Environment_construct(EnvironmentPool* environmentPool, Environment* parent)
+{
+ Environment* environment = EnvironmentPool_allocate(environmentPool);
+ Environment_initialize(environment, parent);
+ return environment;
+}
+
Object integerLiteral(int32_t literal)
{
Object result;
Object integerLiteral(int32_t literal)
{
Object result;