This commit is contained in:
Lobo 2026-01-22 14:47:08 -03:00
parent 80d8f87883
commit e654143a90
7 changed files with 37 additions and 46 deletions

View file

@ -1,7 +1,7 @@
#ifndef CHUNK_H
#define CHUNK_H
#define CHUNK_DEBUG DEBUG
#define CHUNK_DEBUG 0
#include "common.h"
#include "object.h"
@ -12,6 +12,11 @@ typedef struct Bl {
I col;
} Bl;
typedef struct Bs {
const char *name;
struct Dt *resolved;
} Bs;
typedef struct Bc {
I ref;
const char *name;
@ -25,6 +30,10 @@ typedef struct Bc {
Bl *items;
Z count, capacity;
} lines;
struct {
Bs *items;
Z count, capacity;
} symbols;
} Bc;
Bc *chunk_new(const char *);