/* */
/* */
/* */
-/* (C) 1998-2007 Ullrich von Bassewitz */
-/* Roemerstrasse 52 */
-/* D-70794 Filderstadt */
-/* EMail: uz@cc65.org */
+/* (C) 1998-2011, Ullrich von Bassewitz */
+/* Roemerstrasse 52 */
+/* D-70794 Filderstadt */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
-/* common */
-#include "filepos.h"
-#include "strbuf.h"
-
/* ca65 */
#include "token.h"
/* Scanner variables */
-#define MAX_INPUT_FILES 254 /* No more than this files total */
-#define MAX_STR_LEN 255 /* Maximum length of any string */
-extern Token Tok; /* Current token */
-extern int WS; /* Flag: Whitespace before token */
-extern long IVal; /* Integer token attribute */
-extern StrBuf SVal; /* String token attribute */
-
-extern FilePos CurPos; /* Name and position in file */
-extern int ForcedEnd; /* Force end of assembly */
+extern Token CurTok; /* Current input token incl. attributes */
+extern int ForcedEnd; /* Force end of assembly */
int IsIdStart (int C);
/* Return true if the character may start an identifier */
-void NewInputFile (const char* Name);
-/* Open a new input file */
+int NewInputFile (const char* Name);
+/* Open a new input file. Returns true if the file could be successfully opened
+ * and false otherwise.
+ */
void NewInputData (char* Text, int Malloced);
/* Add a chunk of input data to the input stream */