Skip to content

Commit c3c33b3

Browse files
authored
Update value.h
1 parent 5c5ed52 commit c3c33b3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

value.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef VALUE_H
22
#define VALUE_H
33

4-
#include "bloat.h"
54
#include <stdbool.h>
65
#include <stddef.h>
76

@@ -17,12 +16,6 @@ typedef enum {
1716
} ValueType;
1817
#endif
1918

20-
typedef struct Object {
21-
struct Object* next;
22-
bool marked;
23-
Value value;
24-
} Object;
25-
2619
#ifndef VALUE_DEFINED
2720
#define VALUE_DEFINED
2821
typedef struct {
@@ -37,6 +30,12 @@ typedef struct {
3730
} Value;
3831
#endif
3932

33+
typedef struct Object {
34+
struct Object* next;
35+
bool marked;
36+
Value value;
37+
} Object;
38+
4039
#define NIL_VAL ((Value){ TYPE_NIL, { .int_val = 0 } })
4140
#define BOOL_VAL(v) ((Value){ TYPE_BOOL, { .bool_val = v } })
4241
#define INT_VAL(v) ((Value){ TYPE_INT, { .int_val = v } })

0 commit comments

Comments
 (0)