From: Mike D. Lowis Date: Fri, 22 Feb 2013 18:20:04 +0000 (-0500) Subject: updated parser to use garbage collector X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=d4e69a388b5435ee1c409ebdce3ff8dcd3df1462;p=proto%2Fsclpl.git updated parser to use garbage collector --- diff --git a/premake4.lua b/premake4.lua index f078ed1..720f70d 100644 --- a/premake4.lua +++ b/premake4.lua @@ -49,7 +49,8 @@ project "sclpl-parse" kind "ConsoleApp" language "C" location "build" - files { "source/parser/**.*" } + includedirs { "source/lexer/**", "source/runtime/**" } + files { "source/parser/**.*", "source/runtime/collector/**.*"} project "sclpl-parse-tests" kind "ConsoleApp" diff --git a/source/parser/main.c b/source/parser/main.c index 7a7c380..07b88a1 100644 --- a/source/parser/main.c +++ b/source/parser/main.c @@ -1,6 +1,16 @@ +#include "gc.h" int main(int argc, char** argv) { + /* init the collector */ + int foo; + gc_set_stack_base(&foo); + + /* main program */ + + + /* shutdown the collector */ + gc_shutdown(); return 0; }