diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-17 14:49:03 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-17 14:49:03 -0500 |
| commit | 4231789b71bb42c4ab04e125f98fe5eb3cf030b6 (patch) | |
| tree | c73aafaeef60b77555cfd25ccd30c618e431d52a /stdlib/optionals.c | |
| parent | c1ae79ac3c320923363994fb88f4cc2fa13317ce (diff) | |
Rename datetime -> moment
Diffstat (limited to 'stdlib/optionals.c')
| -rw-r--r-- | stdlib/optionals.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/optionals.c b/stdlib/optionals.c index 7224c421..34f14f4b 100644 --- a/stdlib/optionals.c +++ b/stdlib/optionals.c @@ -5,9 +5,9 @@ #include "bools.h" #include "bytes.h" #include "datatypes.h" -#include "datetime.h" #include "integers.h" #include "metamethods.h" +#include "moments.h" #include "patterns.h" #include "text.h" #include "threads.h" @@ -33,8 +33,8 @@ public PUREFUNC bool is_null(const void *obj, const TypeInfo_t *non_optional_typ return ((OptionalByte_t*)obj)->is_null; else if (non_optional_type == &Thread$info) return *(pthread_t**)obj == NULL; - else if (non_optional_type == &DateTime$info) - return ((OptionalDateTime_t*)obj)->tv_usec < 0; + else if (non_optional_type == &Moment$info) + return ((OptionalMoment_t*)obj)->tv_usec < 0; else if (non_optional_type == &Match$info) return ((OptionalMatch_t*)obj)->index.small == 0; |
