summaryrefslogtreecommitdiff
path: root/includes/compiler/CPrep.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-11 22:29:53 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-11 22:29:53 +0000
commit0bec4f557a96e1a40437cf5af20cc78a5eec8a63 (patch)
treec1e05ec804c43aa5a8f5f21b0ed02d0587d29563 /includes/compiler/CPrep.h
parentaec1b8dddc68ecb8288ec6132932e4c7b4bca09f (diff)
downloadMWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.tar.gz
MWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.zip
getting closer
Diffstat (limited to '')
-rw-r--r--includes/compiler/CPrep.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/compiler/CPrep.h b/includes/compiler/CPrep.h
index aeb341b..02d5a76 100644
--- a/includes/compiler/CPrep.h
+++ b/includes/compiler/CPrep.h
@@ -15,7 +15,7 @@ struct Macro {
unsigned short xC;
Boolean is_special;
Boolean xF;
- HashNameNode *names[1];
+ HashNameNode *names[0];
};
typedef struct TokenStack {
char *pos;
@@ -25,7 +25,7 @@ typedef struct TokenStack {
} TokenStack;
//#define OPT_OFFSET(optname) ((short) (((char *) (&copts.optname)) - ((char *) &copts)))
-#define OPT_OFFSET(optname) ((short) ( &((COpts *)0)->optname ))
+#define OPT_OFFSET(optname) ((UInt16) ( &((COpts *)0)->optname ))
enum {
OPT_OFFSET_MASK = 0x1FFF,
OPT_FLAG_2000 = 0x2000,
@@ -89,11 +89,11 @@ extern void CPrep_UnLex(void);
// this is actually an arg of `const PrepState *`
extern void CPrep_TokenStreamSetCurState(SInt32 *state);
typedef void (*CPrepStreamFuncPtr)(TStreamElement *);
-extern void CPrep_StreamGetBlock(TStream *stream, CPrepStreamFuncPtr func, int arg);
-extern void CPrep_StreamGetSemicolon(TStream *stream, CPrepStreamFuncPtr func);
-extern void CPrep_StreamGetTemplate(TStream *stream, CPrepStreamFuncPtr func);
-extern void CPrep_StreamInsert(TStream *stream, SInt32 *state);
-extern void CPrep_StreamRemove(TStream *stream, SInt32 *state);
+extern void CPrep_StreamGetBlock(TokenStream *stream, CPrepStreamFuncPtr func, int arg);
+extern void CPrep_StreamGetSemicolon(TokenStream *stream, CPrepStreamFuncPtr func);
+extern void CPrep_StreamGetTemplate(TokenStream *stream, CPrepStreamFuncPtr func);
+extern void CPrep_StreamInsert(TokenStream *stream, SInt32 *state);
+extern void CPrep_StreamRemove(TokenStream *stream, SInt32 *state);
extern void CPrep_RemoveTokens(SInt32 amount);
extern void CPrep_TokenStreamFlush(void);
extern TStreamElement *CPrep_CurStreamElement(void);