*
This commit is contained in:
parent
80d8f87883
commit
e654143a90
7 changed files with 37 additions and 46 deletions
11
src/chunk.h
11
src/chunk.h
|
|
@ -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 *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue