summaryrefslogtreecommitdiff
path: root/ds.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 14:52:26 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 14:52:26 -0500
commitc04562a24e7fbee0839d00a8bfd5253426a98f20 (patch)
treeb41b547ca275d4752ab161e587a93602914e9d15 /ds.h
parentd5f1b97cadb8a1ad2d08cbcdded66e5140b81eb4 (diff)
rename v[234] to vec[234]
Diffstat (limited to 'ds.h')
-rw-r--r--ds.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/ds.h b/ds.h
index a447e4c..397dcfa 100644
--- a/ds.h
+++ b/ds.h
@@ -7,8 +7,7 @@ VARIOUS DATA STRUCTURES
- string builder
- string hash table
-This file is self-contained and should not use anything from any project it's contained in.
-You can just #include it -- it's not huge, the functions are all static, and
+You can just #include this file -- it's not huge, the functions are all static, and
any reasonable compiler will ignore the unused code.
functions in this file suffixed with _ are not meant to be used outside here, unless you
@@ -24,7 +23,12 @@ IMPORTANT NOTE: If you are using this with structures containing `long double`s,
which isnt important unless you're making a lot of arrays.)
*/
-#include <stddef.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
+
+typedef uint32_t u32;
+typedef uint8_t u8;
typedef union {
long num;
@@ -35,10 +39,6 @@ typedef union {
#endif
double flt;
} ArrMaxAlign;
-#if __STDC_VERSION__ < 199901L && !defined inline
-#define inline
-#endif
-
typedef struct {
u32 len;