-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathppproc.h
35 lines (28 loc) · 967 Bytes
/
ppproc.h
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
/* ppproc.h: Copyright (C) 2011-2022 by Brian Raiter <breadbox@muppetlabs.com>
* License GPLv2+: GNU GPL version 2 or later.
*/
#ifndef _ppproc_h_
#define _ppproc_h_
/*
* The ppproc object does the actual work of identifying preprocessor
* statements affected by the user's requested definitions and
* undefintions, and determining what the resulting output needs to
* contain.
*/
#include <stdio.h>
#include "types.h"
/* Creates a ppproc object initialized with pre-defined sets of defined
* and undefined symbols.
*/
extern ppproc *initppproc(symset const *defs, symset const *undefs);
/* Deallocates the ppproc object.
*/
extern void freeppproc(ppproc *ppp);
/* Enable and disable trigraph handling in the preprocessor. Trigraph
* support is disabled by default.
*/
extern void enabletrigraphs(int flag);
/* Partially preprocesses infile's contents to outfile.
*/
extern void partialpreprocess(ppproc *ppp, FILE *infile, FILE *outfile);
#endif