From b7d1e3c3d2192c774ce512cbd48cfd7617d84538 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Tue, 25 Aug 2015 22:54:11 -0400 Subject: [PATCH] Refactoring --- include/cyclone/runtime-main.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/cyclone/runtime-main.h b/include/cyclone/runtime-main.h index 11f62711..cb5ac3cc 100644 --- a/include/cyclone/runtime-main.h +++ b/include/cyclone/runtime-main.h @@ -48,11 +48,9 @@ static void Cyc_main (stack_size,heap_size,stack_base) Cyc_st_init(); { - - /* Create closure for the test function. */ - mclosure0(run_test,&c_entry_pt); - gc_cont = &run_test; - /* Initialize constant expressions for the test runs. */ + /* Setup first function to execute */ + mclosure0(entry_pt,&c_entry_pt); + gc_cont = &entry_pt; /* Allocate heap area for second generation. */ /* Use calloc instead of malloc to assure pages are in main memory. */