Changeset a2b2761 for src/examples/gc_no_raii
- Timestamp:
- Jan 14, 2016, 5:07:19 PM (10 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
-
internal/state.c (deleted)
-
premake4.lua (modified) (2 diffs)
-
src/gc.h (moved) (moved from src/examples/gc_no_raii/gc.h )
-
src/gcpointers.c (moved) (moved from src/examples/gc_no_raii/gcpointers.c )
-
src/gcpointers.h (moved) (moved from src/examples/gc_no_raii/gcpointers.h )
-
src/gctest.c (moved) (moved from src/examples/gc_no_raii/gctest.c )
-
src/internal/collector.h (moved) (moved from src/examples/gc_no_raii/internal/collector.h ) (1 diff)
-
src/internal/gc_tools.h (moved) (moved from src/examples/gc_no_raii/internal/gc_tools.h )
-
src/internal/globals.h (moved) (moved from src/examples/gc_no_raii/internal/globals.h )
-
src/internal/object_header.h (moved) (moved from src/examples/gc_no_raii/internal/object_header.h )
-
src/internal/state.c (added)
-
src/internal/state.h (moved) (moved from src/examples/gc_no_raii/internal/state.h )
-
src/tools.h (moved) (moved from src/examples/gc_no_raii/tools.h )
-
src/tools/checks.h (moved) (moved from src/examples/gc_no_raii/tools/checks.h )
-
src/tools/print.c (moved) (moved from src/examples/gc_no_raii/tools/print.c )
-
src/tools/print.h (moved) (moved from src/examples/gc_no_raii/tools/print.h )
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 project "gc-test"28 kind "ConsoleApp"29 language "C"30 location "build"31 objdir "build"32 targetdir "."33 buildoptions (buildOptions)34 libdirs (libDirectories)35 links (linkLibs)36 linkoptions (linkOptionList)37 includedirs (includeDirList)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 defines { "DEBUG", "bool=_Bool" }42 flags { "Symbols" }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.