summaryrefslogtreecommitdiff
path: root/src/compilo.c
blob: b146b4df090f9f6fa56e251281fde9b1e21f2f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
}