diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-29 20:06:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-29 20:06:09 -0400 |
| commit | 05515d8645326efa3db6311f6be1be776452c68a (patch) | |
| tree | 15e58e72fc1aeec61017f02d8bf555e38a8dfda3 /stdlib/datatypes.h | |
| parent | 8f7f66d7c894544c7c7e8ffae5d74e3cc602256f (diff) | |
Add DateTime
Diffstat (limited to 'stdlib/datatypes.h')
| -rw-r--r-- | stdlib/datatypes.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/stdlib/datatypes.h b/stdlib/datatypes.h index 4bb6beb3..8d342d2e 100644 --- a/stdlib/datatypes.h +++ b/stdlib/datatypes.h @@ -3,9 +3,10 @@ // Common datastructures (arrays, tables, closures) #include <gmp.h> -#include <stdint.h> -#include <stdbool.h> #include <pthread.h> +#include <stdbool.h> +#include <stdint.h> +#include <time.h> #define ARRAY_LENGTH_BITS 42 #define ARRAY_FREE_BITS 6 @@ -89,4 +90,7 @@ typedef struct Text_s { #define Pattern_t Text_t #define OptionalPattern_t Text_t +typedef struct timeval DateTime_t; +#define OptionalDateTime_t DateTime_t + // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
