git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge remote-tracking branch 'pure11/pure11' into native
3e3783aAndy Arvanitis
pcc/runtime/purescript.hh+1−1
@@ -133,7 +133,7 @@ class any {
133 using record = std::map<const char *,
133 using record = std::map<const char *,
134 any,
134 any,
135 cstr_cmp
135 cstr_cmp
136− WITH_ALLOCATOR_PAIR(const char *, any)>;
136+ WITH_ALLOCATOR_PAIR(char * const, any)>;
137
137
138 using fn = auto (*)(const any&) -> any;
138 using fn = auto (*)(const any&) -> any;
139 using eff_fn = auto (*)() -> any;
139 using eff_fn = auto (*)() -> any;
pcc/runtime/purescript_memory.hh+1−1
@@ -20,7 +20,7 @@
20 #include <gc/gc_cpp.h>
20 #include <gc/gc_cpp.h>
21 #include <gc/gc_allocator.h>
21 #include <gc/gc_allocator.h>
22 #define WITH_ALLOCATOR(T) , gc_allocator<T>
22 #define WITH_ALLOCATOR(T) , gc_allocator<T>
23− #define WITH_ALLOCATOR_PAIR(T, U) , std::hash<T>, std::equal_to<T>, gc_allocator<std::pair<const T, U>>
23+ #define WITH_ALLOCATOR_PAIR(T, U) , gc_allocator<std::pair<const T, U>>
24 #define MANAGED_TYPE(T) T*
24 #define MANAGED_TYPE(T) T*
25 #define MAKE_MANAGED(T) new (GC) T
25 #define MAKE_MANAGED(T) new (GC) T
26 #define MAKE_MANAGED_FINALIZED(T) new (PointerFreeGC, [](void* p, void*){ static_cast<T*>(p)->~T(); }) T
26 #define MAKE_MANAGED_FINALIZED(T) new (PointerFreeGC, [](void* p, void*){ static_cast<T*>(p)->~T(); }) T