Move more stuff from scanner.c into the new module token.c.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3801 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
|
||||
/* common */
|
||||
#include "filepos.h"
|
||||
#include "inline.h"
|
||||
|
||||
/* ca65 */
|
||||
#include "token.h"
|
||||
@@ -56,7 +55,7 @@
|
||||
/* Scanner variables */
|
||||
#define MAX_INPUT_FILES 254 /* No more than this files total */
|
||||
#define MAX_STR_LEN 255 /* Maximum length of any string */
|
||||
extern enum Token Tok; /* Current token */
|
||||
extern Token Tok; /* Current token */
|
||||
extern int WS; /* Flag: Whitespace before token */
|
||||
extern long IVal; /* Integer token attribute */
|
||||
extern char SVal[MAX_STR_LEN+1]; /* String token attribute */
|
||||
@@ -93,22 +92,6 @@ void UpcaseSVal (void);
|
||||
void NextRawTok (void);
|
||||
/* Read the next raw token from the input stream */
|
||||
|
||||
int TokHasSVal (enum Token Tok);
|
||||
/* Return true if the given token has an attached SVal */
|
||||
|
||||
int TokHasIVal (enum Token Tok);
|
||||
/* Return true if the given token has an attached IVal */
|
||||
|
||||
#if defined(HAVE_INLINE)
|
||||
INLINE int TokIsSep (enum Token T)
|
||||
/* Return true if this is a separator token */
|
||||
{
|
||||
return (T == TOK_SEP || T == TOK_EOF);
|
||||
}
|
||||
#else
|
||||
# define TokIsSep(T) (T == TOK_SEP || T == TOK_EOF)
|
||||
#endif
|
||||
|
||||
int GetSubKey (const char** Keys, unsigned Count);
|
||||
/* Search for a subkey in a table of keywords. The current token must be an
|
||||
* identifier and all keys must be in upper case. The identifier will be
|
||||
@@ -136,3 +119,4 @@ void DoneScanner (void);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user