mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Factor out one shared enum FileStackNodeType
This commit is contained in:
@@ -11,11 +11,7 @@
|
|||||||
|
|
||||||
#include "asm/lexer.h"
|
#include "asm/lexer.h"
|
||||||
|
|
||||||
enum FileStackNodeType {
|
#include "linkdefs.h"
|
||||||
NODE_REPT,
|
|
||||||
NODE_FILE,
|
|
||||||
NODE_MACRO,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct FileStackNode {
|
struct FileStackNode {
|
||||||
struct FileStackNode *parent; // Pointer to parent node, for error reporting
|
struct FileStackNode *parent; // Pointer to parent node, for error reporting
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
|
#include "linkdefs.h"
|
||||||
|
|
||||||
// Variables related to CLI options
|
// Variables related to CLI options
|
||||||
extern bool isDmgMode;
|
extern bool isDmgMode;
|
||||||
@@ -27,12 +28,6 @@ extern bool beVerbose;
|
|||||||
extern bool isWRA0Mode;
|
extern bool isWRA0Mode;
|
||||||
extern bool disablePadding;
|
extern bool disablePadding;
|
||||||
|
|
||||||
enum FileStackNodeType {
|
|
||||||
NODE_REPT,
|
|
||||||
NODE_FILE,
|
|
||||||
NODE_MACRO,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct FileStackNode {
|
struct FileStackNode {
|
||||||
struct FileStackNode *parent;
|
struct FileStackNode *parent;
|
||||||
// Line at which the parent context was exited; meaningless for the root level
|
// Line at which the parent context was exited; meaningless for the root level
|
||||||
|
|||||||
@@ -75,6 +75,12 @@ enum SectionType {
|
|||||||
SECTTYPE_INVALID
|
SECTTYPE_INVALID
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum FileStackNodeType {
|
||||||
|
NODE_REPT,
|
||||||
|
NODE_FILE,
|
||||||
|
NODE_MACRO,
|
||||||
|
};
|
||||||
|
|
||||||
// Nont-`const` members may be patched in RGBLINK depending on CLI flags
|
// Nont-`const` members may be patched in RGBLINK depending on CLI flags
|
||||||
extern struct SectionTypeInfo {
|
extern struct SectionTypeInfo {
|
||||||
char const *const name;
|
char const *const name;
|
||||||
|
|||||||
Reference in New Issue
Block a user