diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-08 17:17:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-08 17:17:15 -0400 |
| commit | aeed1992e94c5ab6a5104a06a921101fbe8f40ed (patch) | |
| tree | 8ba6dc531acefa0eedd330224f16f750496e8dbe /builtins/c_string.h | |
| parent | cf9d5b1619b9e5e886d2754f167046ff77d36abf (diff) | |
Fix nearly every GCC warning and add __attribute__((pure/const)) where
appropriate
Diffstat (limited to 'builtins/c_string.h')
| -rw-r--r-- | builtins/c_string.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtins/c_string.h b/builtins/c_string.h index 76c74c23..10621e62 100644 --- a/builtins/c_string.h +++ b/builtins/c_string.h @@ -9,9 +9,9 @@ #include "types.h" Text_t CString$as_text(const void *str, bool colorize, const TypeInfo *info); -int CString$compare(const char **x, const char **y); -bool CString$equal(const char **x, const char **y); -uint64_t CString$hash(const char **str); +PUREFUNC int CString$compare(const char **x, const char **y); +PUREFUNC bool CString$equal(const char **x, const char **y); +PUREFUNC uint64_t CString$hash(const char **str); extern const TypeInfo CString$info; |
