Last change
on this file since 5 was
5,
checked in by anonymous, 17 years ago
|
=hoffentlich gehts jetzt
|
File size:
979 bytes
|
Line | |
---|
1 | #ifdef _WIN32 |
---|
2 | #include <io.h> |
---|
3 | #else |
---|
4 | #include <ctype.h> |
---|
5 | #endif |
---|
6 | typedef struct MACROTEXT { |
---|
7 | MACROTEXT *next; |
---|
8 | MACROTEXT *prev; |
---|
9 | char *macroText; |
---|
10 | } MACROTEXT; |
---|
11 | |
---|
12 | typedef struct MACROENTRY |
---|
13 | { |
---|
14 | MACROENTRY *next; |
---|
15 | MACROENTRY *prev; |
---|
16 | char *macroName; |
---|
17 | MACROTEXT *firstMacroParms; |
---|
18 | MACROTEXT *lastMacroParms; |
---|
19 | MACROTEXT *firstMacroLines; |
---|
20 | MACROTEXT *lastMacroLines; |
---|
21 | unsigned int numParms; |
---|
22 | char *fileName; |
---|
23 | unsigned int lineNo; |
---|
24 | unsigned int nLines; |
---|
25 | bool bIsDefine; |
---|
26 | } MACROENTRY; |
---|
27 | |
---|
28 | #define MAX_IFDEF_DEPTH 1024 |
---|
29 | typedef struct IFDEFINFO |
---|
30 | { |
---|
31 | bool lastbProcessingIFDEF; // save off for if we were processing #ifdef |
---|
32 | bool lastbIFDEF; // wether ifdef was true or not |
---|
33 | bool lastbCompareDefine; // wether we compare #ifdef or #ifndef |
---|
34 | unsigned int lastIfDefStartLine; // where we started for this #ifdef |
---|
35 | } IFDEFINFO; |
---|
36 | |
---|
37 | |
---|
38 | typedef void (*MACROFUNCTIONPTR)(char *, unsigned int *, char **); |
---|
39 | |
---|
40 | typedef struct MACROFUNCTIONS { |
---|
41 | char *name; |
---|
42 | MACROFUNCTIONPTR function; |
---|
43 | } MACROFUNCTIONS; |
---|
Note: See
TracBrowser
for help on using the repository browser.