From 80fdb0714b75cb240d8b8068d718b915f1904110 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Thu, 29 Mar 2001 23:40:57 +0000 Subject: First. --- src/Makefile.am | 12 ++++++++++++ src/compilo.c | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 src/Makefile.am create mode 100644 src/compilo.c (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..0dfd182 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,12 @@ +localedir = $(datadir)/locale +DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ +AM_CFLAGS = -O3 -Wall -Wstrict-prototypes $(CFLAGS) +INCLUDES = -I. -I.. -I$(includedir) -I../include + +bin_PROGRAMS = compilo + +compilo_SOURCES = compilo.c + +LDADD = ../lib/libCompilo.la + +compilo_LDADD = $(LDADD) 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 +#include +#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 -- cgit v1.2.3