source: trunk/tools/wrc/preproc.h@ 1036

Last change on this file since 1036 was 882, checked in by sandervl, 26 years ago

Created Wine port of wrc (using EMX/GCC)

File size: 645 bytes
Line 
1/*
2 * Copyright 1998 Bertho A. Stultiens (BS)
3 *
4 */
5
6#ifndef __WRC_PREPROC_H
7#define __WRC_PREPROC_H
8
9struct pp_entry {
10 struct pp_entry *next;
11 struct pp_entry *prev;
12 char *ident;
13 char *subst;
14 int expanding;
15};
16
17struct if_state {
18 int current;
19 int hasbeentrue;
20 int nevertrue;
21};
22
23struct pp_entry *pp_lookup(char *ident);
24void set_define(char *name);
25void del_define(char *name);
26void add_define(char *text);
27void add_cmdline_define(char *set);
28FILE *open_include(const char *name, int search);
29void add_include_path(char *path);
30void push_if(int truecase, int wastrue, int nevertrue);
31int pop_if(void);
32int isnevertrue_if(void);
33
34#endif
35
Note: See TracBrowser for help on using the repository browser.