Changeset a2b2761
- Timestamp:
- Jan 14, 2016, 5:07:19 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:
- 6be0cf9
- Parents:
- e47f529
- Location:
- src/examples/gc_no_raii
- Files:
-
- 1 added
- 1 deleted
- 1 edited
- 13 moved
Legend:
- Unmodified
- Added
- Removed
-
src/examples/gc_no_raii/premake4.lua
re47f529 ra2b2761 4 4 5 5 includeDirList = { 6 " ./",6 "src/", 7 7 "../", 8 8 } … … 23 23 24 24 solution "GC-no-RAII" 25 configurations { "Debug", "Release" } 25 configurations { "debug", "release", 26 "cproc-debug", "cproc-release", 27 "cfa-debug", "cfa-release" } 26 28 27 28 29 30 31 32 33 34 35 36 37 38 files { "../fstream.c", "../iostream.c", "../iterator.c", "*.c" }29 project "gc-test" 30 kind "ConsoleApp" 31 language "C" 32 location "build" 33 objdir "build" 34 targetdir "." 35 buildoptions (buildOptions) 36 libdirs (libDirectories) 37 links (linkLibs) 38 linkoptions (linkOptionList) 39 includedirs (includeDirList) 40 files { "../fstream.c", "../iostream.c", "../iterator.c", "src/*.c" } 39 41 40 configuration "Debug"41 42 42 configuration "debug" 43 defines { "DEBUG", "bool=_Bool" } 44 flags { "Symbols" } 43 45 44 configuration "Release" 45 defines { "NDEBUG", "bool=_Bool" } 46 flags { "Optimize" } 46 configuration "release" 47 defines { "NDEBUG", "bool=_Bool" } 48 flags { "Optimize" } 49 50 configuration "cproc-debug" 51 buildoptions ({"-E"}) 52 linkoptions ({"-E"}) 53 defines { "DEBUG", "bool=_Bool" } 54 flags { "Symbols" } 55 56 configuration "cproc-release" 57 buildoptions ({"-E"}) 58 linkoptions ({"-E"}) 59 defines { "DEBUG", "bool=_Bool" } 60 flags { "Symbols" } 61 62 configuration "cfa-debug" 63 linkoptions ({"-E"}) 64 files { "build/cproc-debug/*.o" } 65 defines { "DEBUG", "bool=_Bool" } 66 flags { "Symbols" } 67 68 configuration "cfa-release" 69 linkoptions ({"-E"}) 70 files { "build/cproc-debug/*.o" } 71 defines { "DEBUG", "bool=_Bool" } 72 flags { "Symbols" } -
src/examples/gc_no_raii/src/internal/collector.h
re47f529 ra2b2761 20 20 } 21 21 22 inline gc_object_header* gc_get_object_ptr(void* ptr)22 inline struct gc_object_header* gc_get_object_ptr(void* ptr) 23 23 { 24 24 void* clean = gc_get_aligned_ptr(ptr); 25 return (( gc_object_header*)clean) - 1;25 return ((struct gc_object_header*)clean) - 1; 26 26 } 27 27
Note: See TracChangeset
for help on using the changeset viewer.