diff options
Diffstat (limited to '')
-rw-r--r-- | includes/compiler/CPrep.h | 14 |
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); |