summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/types.h b/types.h
index 91cda39..bd76826 100644
--- a/types.h
+++ b/types.h
@@ -49,16 +49,18 @@ typedef U32 IdentID; /* identifier ID for cgen (anonymous variables) */
typedef uint32_t LineNo;
-typedef struct {
+typedef struct Location {
+ LineNo line;
+ char *code;
+ struct ErrCtx *ctx;
+} Location;
+
+typedef struct ErrCtx {
const char *filename;
bool enabled;
+ Location *instance_stack; /* stack of locations which generate the instances we're dealing with */
} ErrCtx;
-typedef struct {
- LineNo line;
- char *code;
- ErrCtx *ctx;
-} Location;
typedef struct Page {
struct Page *next;