summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/memdump/mystuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/memdump/mystuff.h')
-rw-r--r--contrib/syslinux-4.02/memdump/mystuff.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/memdump/mystuff.h b/contrib/syslinux-4.02/memdump/mystuff.h
new file mode 100644
index 0000000..dce0cb5
--- /dev/null
+++ b/contrib/syslinux-4.02/memdump/mystuff.h
@@ -0,0 +1,23 @@
+#ifndef MYSTUFF_H
+#define MYSTUFF_H
+
+#include <stdlib.h>
+
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int16_t;
+typedef unsigned short uint16_t;
+typedef signed int int32_t;
+typedef unsigned int uint32_t;
+typedef signed long long int64_t;
+typedef unsigned long long uint64_t;
+
+unsigned int skip_atou(const char **s);
+unsigned long strtoul(const char *, char **, int);
+
+static inline int isdigit(int ch)
+{
+ return (ch >= '0') && (ch <= '9');
+}
+
+#endif /* MYSTUFF_H */