Ignore:
Timestamp:
Jan 14, 2016, 5:07:19 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, 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
Message:

moved files src dir and added cofigurations to run preprocessor on cfiles

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  
    44
    55includeDirList = {
    6         "./",
     6        "src/",
    77        "../",
    88}
     
    2323
    2424solution "GC-no-RAII"
    25     configurations { "Debug", "Release" }
     25        configurations  { "debug", "release",
     26                                "cproc-debug", "cproc-release",
     27                                "cfa-debug", "cfa-release" }
    2628
    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" }
    3941
    40     configuration "Debug"
    41         defines { "DEBUG", "bool=_Bool" }
    42         flags { "Symbols" }
     42        configuration "debug"
     43                defines { "DEBUG", "bool=_Bool" }
     44                flags { "Symbols" }
    4345
    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  
    2020}
    2121
    22 inline gc_object_header* gc_get_object_ptr(void* ptr)
     22inline struct gc_object_header* gc_get_object_ptr(void* ptr)
    2323{
    2424        void* clean = gc_get_aligned_ptr(ptr);
    25         return ((gc_object_header*)clean) - 1;
     25        return ((struct gc_object_header*)clean) - 1;
    2626}
    2727
Note: See TracChangeset for help on using the changeset viewer.