summaryrefslogtreecommitdiffstats
path: root/eBones/compile_et/error_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'eBones/compile_et/error_table.h')
-rw-r--r--eBones/compile_et/error_table.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/eBones/compile_et/error_table.h b/eBones/compile_et/error_table.h
new file mode 100644
index 0000000..e32ec30
--- /dev/null
+++ b/eBones/compile_et/error_table.h
@@ -0,0 +1,17 @@
+#ifndef _ET
+extern int errno;
+typedef struct {
+ char **msgs;
+ int base;
+ int n_msgs;
+} error_table;
+extern error_table **_et_list;
+
+#define ERROR_CODE "int" /* type used for error codes */
+
+#define ERRCODE_RANGE 8 /* # of bits to shift table number */
+#define BITS_PER_CHAR 6 /* # bits to shift per character in name */
+
+extern char *error_table_name();
+#define _ET
+#endif
OpenPOWER on IntegriCloud