Changeset e47f529
- Timestamp:
- Jan 14, 2016, 3:09:56 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- a2b2761
- Parents:
- 0ada2f0
- Location:
- src/examples/gc_no_raii
- Files:
-
- 5 added
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/examples/gc_no_raii/gcpointers.c
r0ada2f0 re47f529 2 2 3 3 #include "gc.h" 4 #include "internal/collector.h" 5 #include "internal/object_header.h" 6 #include "internal/state.h" 4 7 5 8 void register_ptr(gcpointer_t* this) -
src/examples/gc_no_raii/internal/object_header.h
r0ada2f0 re47f529 1 1 #pragma once 2 2 3 #include <stddef.h> 3 4 #include <stdint.h> 4 5 … … 15 16 #endif 16 17 17 size_t size;18 gcpointer_t* root_chain;19 gcpointer_t* type_chain;20 object_header* forward;21 bool is_forwarded;18 size_t size; 19 gcpointer_t* root_chain; 20 gcpointer_t* type_chain; 21 struct gc_object_header* forward; 22 bool is_forwarded; 22 23 23 24 #if _DEBUG -
src/examples/gc_no_raii/premake4.lua
r0ada2f0 re47f529 4 4 5 5 includeDirList = { 6 "../" 6 "./", 7 "../", 7 8 } 8 9 … … 18 19 end 19 20 20 premake.gcc.cc = "../cfa"21 premake.gcc.cxx = "../cfa"22 23 21 -- Build Options: 24 22 buildOptions = {""} 25 23 26 solution " CS488-Projects"24 solution "GC-no-RAII" 27 25 configurations { "Debug", "Release" } 28 26 29 project " GC_TEST"27 project "gc-test" 30 28 kind "ConsoleApp" 31 29 language "C" … … 41 39 42 40 configuration "Debug" 43 defines { "DEBUG" }41 defines { "DEBUG", "bool=_Bool" } 44 42 flags { "Symbols" } 45 43 46 44 configuration "Release" 47 defines { "NDEBUG" }45 defines { "NDEBUG", "bool=_Bool" } 48 46 flags { "Optimize" } -
src/examples/gc_no_raii/tools.h
r0ada2f0 re47f529 1 1 #pragma once 2 2 3 #ifndef _DEBUG 4 #define _DEBUG 0 5 #endif 6 7 #define DEF_bool 1 8 #if DEF_bool 9 #define bool _Bool 10 #endif 11 12 #include "tools/checks.hpp" 13 #include "tools/print.hpp" 3 #include "tools/checks.h" 4 #include "tools/print.h" -
src/examples/gc_no_raii/tools/print.h
r0ada2f0 re47f529 7 7 extern ofstream *sout; 8 8 9 #define DEBUG (x) sout | x | endl;9 #define DEBUG_OUT(x) sout | x | endl; 10 10 11 11 #else 12 12 13 #define DEBUG (x)13 #define DEBUG_OUT(x) 14 14 15 15 #endif //NO_CHECKS
Note: See TracChangeset
for help on using the changeset viewer.