Started to copy the import tool from libunbin.
[ocaml-bitstring.git] / cil-tools / bitmatch-import-prefix.h
diff --git a/cil-tools/bitmatch-import-prefix.h b/cil-tools/bitmatch-import-prefix.h
new file mode 100644 (file)
index 0000000..d7f769a
--- /dev/null
@@ -0,0 +1,9 @@
+/* This file is automagically prefixed to all .ubd files
+ * and provides some macros that we need for CIL.
+ */
+
+#define BITMATCH_IMPORT(name) __bitmatch_import_##name
+#define BITMATCH_CONSTANT_STRING(name,val) \
+  char *__bitmatch_constant_##name = val
+#define BITMATCH_CONSTANT_INT32(name,val) \
+  int __bitmatch_constant_##name = val