aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/bf.h9
-rw-r--r--src/include/util.h15
2 files changed, 24 insertions, 0 deletions
diff --git a/src/include/bf.h b/src/include/bf.h
new file mode 100644
index 0000000..611f685
--- /dev/null
+++ b/src/include/bf.h
@@ -0,0 +1,9 @@
+#ifndef BF_H
+#define BF_H
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void bf_run(char* src, FILE* out);
+
+#endif
diff --git a/src/include/util.h b/src/include/util.h
new file mode 100644
index 0000000..4a41ec6
--- /dev/null
+++ b/src/include/util.h
@@ -0,0 +1,15 @@
+#ifndef UTIL_H
+#define UTIL_H
+
+#include <stdlib.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <string.h>
+
+void util_die(const char* fmt, ...); // print msg and exit
+void util_log(const char* fmt, ...); // print msg
+char* util_get_src(char* arg); // parse argtuments
+char* util_src_from_stdin(); // get source from stdin
+char* util_src_from_fpath(FILE* f); // get source from file path
+
+#endif