From 60879432f9ed56c0047e2a74e0a4383a7d4c585c Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 27 Jan 2020 15:45:30 -0500 Subject: [PATCH] Modify add_global --- include/cyclone/runtime.h | 2 +- runtime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cyclone/runtime.h b/include/cyclone/runtime.h index e325dc29..51f13481 100644 --- a/include/cyclone/runtime.h +++ b/include/cyclone/runtime.h @@ -789,7 +789,7 @@ object register_library(const char *name); */ /**@{*/ extern list global_table; -void add_global(object * glo); +void add_global(const char *identifier, object * glo); void add_global2(object identifier, object * glo); void Cyc_set_globals_changed(gc_thread_data *thd); /**@}*/ diff --git a/runtime.c b/runtime.c index 96289575..c0c40d66 100644 --- a/runtime.c +++ b/runtime.c @@ -556,7 +556,7 @@ object register_library(const char *name) /* Global table */ list global_table = NULL; -void add_global(object * glo) +void add_global(const char *identifier, object * glo) { // Tried using a vpbuffer for this and the benchmark // results were the same or worse.