-
Notifications
You must be signed in to change notification settings - Fork 0
/
ppproc.h
32 lines (26 loc) · 955 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
/* ppproc.h: Copyright (C) 2011 by Brian Raiter <breadbox@muppetlabs.com>
* License GPLv2+: GNU GPL version 2 or later.
* This is free software; you are free to change and redistribute it.
* There is NO WARRANTY, to the extent permitted by law.
*/
#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.
*/
struct ppproc;
struct symset;
/* Creates a ppproc object initialized with pre-defined sets of defined
* and undefined symbols.
*/
extern struct ppproc *initppproc(struct symset *defs, struct symset *undefs);
/* Deallocates the ppproc object.
*/
extern void freeppproc(struct ppproc *ppp);
/* Partially preprocesses infile's contents to outfile.
*/
extern void partialpreprocess(struct ppproc *ppp, void *infile, void *outfile);
#endif