git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge branch 'master' into faster-functions
commiteeb2e5d97ddb04d2396a07c876f4e4d24a7e4723 authorAndy Arvanitis <andyarvanitis@gmail.com> dateSun 3 Feb 2019, 18:15 (8 years ago) parent751871aeb9977f
2 files changed+3−8
runtime/string_literal_dict.h+3 src/CodeGen/Cpp.hs−8
runtime/string_literal_dict.h+3
@@ -31,6 +31,8 @@
3131#include <string>
3232#endif
3333
34+namespace purescript {
35+
3436template <typename T>
3537class string_literal_dict_t : public std::vector<std::pair<const char *, T>> {
3638
@@ -82,5 +84,6 @@ class string_literal_dict_t : public std::vector<std::pair<const char *, T>> {
8284
8385};
8486
87+} // namespace purescript
8588
8689#endif // string_literal_dict_H
src/CodeGen/Cpp.hs−8
@@ -195,14 +195,6 @@ moduleToCpp (Module _ coms mn _ imps _ foreigns decls) _ =
195195 var :: Ident -> AST
196196 var = AST.Var Nothing . identToCpp
197197
198− -- | Generate code in the simplified intermediate representation for an accessor based on
199− -- a PureScript identifier. If the name is not valid in C++ (symbol based, reserved name) an
200− -- indexer is returned.
201− accessor :: Ident -> AST -> AST
202− accessor (Ident prop) = accessorString $ mkString prop
203− accessor (GenIdent _ _) = internalError "GenIdent in accessor"
204− accessor UnusedIdent = internalError "UnusedIdent in accessor"
205−
206198 accessorString :: PSString -> AST -> AST
207199 accessorString prop = AST.Indexer Nothing (AST.StringLiteral Nothing prop)
208200