]> Shamusworld >> Repos - rmac/blobdiff - token.h
Fix for bug #174 - when a macro contains an error, actually print the filename it...
[rmac] / token.h
diff --git a/token.h b/token.h
index 1dc3a8a817ff6a3ea8b22e38878b929604c7719f..310a9c258be013e885ac83cdeb971ec3c0a458d2 100644 (file)
--- a/token.h
+++ b/token.h
@@ -157,6 +157,14 @@ IREPT {
        uint32_t lineno;                // Repeat line number (Convert this to global instead of putting it here?)
 };
 
+// File record, used to maintain a list of every include file ever visited
+#define FILEREC struct _filerec
+FILEREC
+{
+   FILEREC * frec_next;
+   char * frec_name;
+};
+
 // Exported variables
 extern int lnsave;
 extern uint32_t curlineno;
@@ -170,6 +178,7 @@ extern INOBJ * cur_inobj;
 extern int mjump_align;
 extern char * string[];
 extern int optimizeOff;
+extern FILEREC * filerec;
 
 // Exported functions
 int include(int, char *);