summaryrefslogtreecommitdiff
path: root/src/compilo.c
diff options
context:
space:
mode:
authorPixel <>2001-03-29 23:40:57 +0000
committerPixel <>2001-03-29 23:40:57 +0000
commit80fdb0714b75cb240d8b8068d718b915f1904110 (patch)
tree113acad9045d0ad77ba4660ac0540dfc3e5ced8c /src/compilo.c
First.start
Diffstat (limited to 'src/compilo.c')
-rw-r--r--src/compilo.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/compilo.c b/src/compilo.c
new file mode 100644
index 0000000..b146b4d
--- /dev/null
+++ b/src/compilo.c
@@ -0,0 +1,40 @@
+#include <stdio.h>
+#include <string.h>
+#include "config.h"
+#include "global.h"
+#include "meta.h"
+#include "parser.h"
+#include "hash.h"
+#include "assembler.h"
+
+char * Estrdup(char * o) {
+ char * r;
+
+ if (!(r = strdup(o))) {
+ exception(1, _("Out of memory."));
+ }
+ return r;
+}
+
+void * Emalloc(size_t s) {
+ void * r;
+
+ if (!(r = malloc(s))) {
+ exception(1, _("Out of memory."));
+ }
+ return r;
+}
+
+void exception(int level, char *msg)
+{
+ fprintf(stderr, "%s\n", msg);
+ exit(level);
+}
+
+void push_pile(char * s) {}
+void act_pile(int t) {}
+
+
+int main(void) {
+ return 0;
+} \ No newline at end of file