diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2020-01-04 12:47:04 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2020-01-04 12:47:04 -0800 |
commit | f8048cb88952b443d66265f3d790db00215f2907 (patch) | |
tree | ec37b8e3743e60a31cc91410362676c105149150 /starts/meaning-vm/level-1 | |
parent | a8dead75d6e8b5c67e559b32b71829361b10e988 (diff) | |
download | standingwithresilience-f8048cb88952b443d66265f3d790db00215f2907.tar.gz standingwithresilience-f8048cb88952b443d66265f3d790db00215f2907.zip |
compiles
Diffstat (limited to 'starts/meaning-vm/level-1')
-rw-r--r-- | starts/meaning-vm/level-1/funcs.cpp | 4 | ||||
-rw-r--r-- | starts/meaning-vm/level-1/funcs.hpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/starts/meaning-vm/level-1/funcs.cpp b/starts/meaning-vm/level-1/funcs.cpp index d62b0a2..fb57165 100644 --- a/starts/meaning-vm/level-1/funcs.cpp +++ b/starts/meaning-vm/level-1/funcs.cpp @@ -41,7 +41,7 @@ static auto & namestruct() static struct name_t { std::unordered_map<std::string,ref,std::hash<std::string>,std::equal_to<std::string>> conceptsByName; - ref level1allocationsref, nameref, isref; + ref level1allocationsref, nameref, textref, isref; ref level1ref; name_t() : level1allocationsref(level0::basic_alloc()), @@ -52,7 +52,7 @@ static auto & namestruct() { give(level1allocationsref, "level1-allocations"); give(nameref, "name"); - give(stringref, "text"); + give(textref, "text"); give(isref, "is"); give(level1ref, "level1"); } diff --git a/starts/meaning-vm/level-1/funcs.hpp b/starts/meaning-vm/level-1/funcs.hpp index 185de7b..bff0d8a 100644 --- a/starts/meaning-vm/level-1/funcs.hpp +++ b/starts/meaning-vm/level-1/funcs.hpp @@ -11,6 +11,7 @@ namespace intellect { namespace level1 { +concept* gettext(std::string const & str); concept* getnamed(std::string const & name, concept* allocator = nullptr); std::string getname(concept* r); void givename(concept* con, std::string const & name); |