blob: e76f450fc98055a503d1c2058a102e4317b5bc6c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#ifndef PREPROC_H
#define PREPROC_H
#include <stdio.h>
#include "lang.h"
#include "machine.h"
typedef struct preproc_s preproc_t;
preproc_t *preproc_new_file(machine_t *target, FILE *f, char *dirname, const char *filename); // Takes ownership of f and dirname
proc_token_t proc_next_token(preproc_t *src);
int proc_unget_token(preproc_t *src, proc_token_t *tok);
void preproc_del(preproc_t *src);
#endif // PREPROC_H
|