blob: c842426104574842cd8d756ffe7d779ddfbe636e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#ifndef PREPARE_H
#define PREPARE_H
#include <stdio.h>
#include "cstring.h"
#include "lang.h"
typedef struct prepare_s prepare_t;
prepare_t *prepare_new_file(FILE *f, const char *filename); // Takes ownership of f
void prepare_del(prepare_t *src);
preproc_token_t pre_next_token(prepare_t *src, int allow_comments);
void prepare_mark_nocomment(prepare_t *src); // Change the state (usually from COMMENT) to NONE
int pre_next_newline_token(prepare_t *src, string_t *buf); // In a comment append everything until the EOL or EOF to the buffer
#endif // PREPARE_H
|