diff options
Diffstat (limited to 'libalee/corewords.hpp')
-rw-r--r-- | libalee/corewords.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libalee/corewords.hpp b/libalee/corewords.hpp index 25f6a6e..d5c35ea 100644 --- a/libalee/corewords.hpp +++ b/libalee/corewords.hpp @@ -19,11 +19,10 @@ #ifndef ALEEFORTH_COREWORDS_HPP #define ALEEFORTH_COREWORDS_HPP +#include "ctype.hpp" #include "types.hpp" #include "state.hpp" -#include <cstring> - /** * To be implemented by the user, this function is called when the `sys` word * is executed. @@ -42,7 +41,7 @@ public: */ static Cell findi(State&, Word); consteval static Cell findi(const char *word) { - return findi(word, std::strlen(word)); + return findi(word, strlen(word)); } /** @@ -67,7 +66,7 @@ private: const char *ptr = CoreWords::wordsarr; for (Cell wordsi = 0; wordsi < WordCount; ++wordsi) { - std::size_t wordsize = std::strlen(ptr); + std::size_t wordsize = strlen(ptr); if (wordsize == size && Dictionary::equal(ptr, ptr + wordsize, it)) return wordsi; |