diff --git a/include/asm/fstack.h b/include/asm/fstack.h index e2a751eb..11528311 100644 --- a/include/asm/fstack.h +++ b/include/asm/fstack.h @@ -11,11 +11,7 @@ #include "asm/lexer.h" -enum FileStackNodeType { - NODE_REPT, - NODE_FILE, - NODE_MACRO, -}; +#include "linkdefs.h" struct FileStackNode { struct FileStackNode *parent; // Pointer to parent node, for error reporting diff --git a/include/link/main.h b/include/link/main.h index a200a8fa..45568fca 100644 --- a/include/link/main.h +++ b/include/link/main.h @@ -9,6 +9,7 @@ #include #include "helpers.h" +#include "linkdefs.h" // Variables related to CLI options extern bool isDmgMode; @@ -27,12 +28,6 @@ extern bool beVerbose; extern bool isWRA0Mode; extern bool disablePadding; -enum FileStackNodeType { - NODE_REPT, - NODE_FILE, - NODE_MACRO, -}; - struct FileStackNode { struct FileStackNode *parent; // Line at which the parent context was exited; meaningless for the root level diff --git a/include/linkdefs.h b/include/linkdefs.h index b33a348f..f428d8aa 100644 --- a/include/linkdefs.h +++ b/include/linkdefs.h @@ -75,6 +75,12 @@ enum SectionType { SECTTYPE_INVALID }; +enum FileStackNodeType { + NODE_REPT, + NODE_FILE, + NODE_MACRO, +}; + // Nont-`const` members may be patched in RGBLINK depending on CLI flags extern struct SectionTypeInfo { char const *const name;