Skip to content

Commit

Permalink
use single header file for whole project
Browse files Browse the repository at this point in the history
  • Loading branch information
Holodome committed Feb 22, 2024
1 parent 67d8116 commit bfb0ac6
Show file tree
Hide file tree
Showing 20 changed files with 762 additions and 961 deletions.
4 changes: 1 addition & 3 deletions hololisp/hll_builtins.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include "hll_compiler.h"
#include "hll_value.h"
#include "hll_vm.h"
#include "hll_hololisp.h"

#include <assert.h>
#include <inttypes.h>
Expand Down
5 changes: 1 addition & 4 deletions hololisp/hll_bytecode.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#include "hll_bytecode.h"
#include "hll_hololisp.h"

#include <assert.h>
#include <inttypes.h>
#include <stdio.h>

#include "hll_mem.h"
#include "hll_value.h"

static const char *get_op_str(hll_bytecode_op op) {
static const char *strs[] = {
"END", "NIL", "TRUE", "CONST", "APPEND", "POP",
Expand Down
132 changes: 0 additions & 132 deletions hololisp/hll_bytecode.h

This file was deleted.

9 changes: 1 addition & 8 deletions hololisp/hll_compiler.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "hll_compiler.h"
#include "hll_hololisp.h"

#include <assert.h>
#include <errno.h>
Expand All @@ -7,13 +7,6 @@
#include <stdio.h>
#include <string.h>

#include "hll_bytecode.h"
#include "hll_gc.h"
#include "hll_mem.h"
#include "hll_meta.h"
#include "hll_value.h"
#include "hll_vm.h"

typedef enum {
HLL_LEX_EQC_OTHER = 0x0, // Anything not handled
HLL_LEX_EQC_NUMBER, // 0-9
Expand Down
198 changes: 0 additions & 198 deletions hololisp/hll_compiler.h

This file was deleted.

7 changes: 1 addition & 6 deletions hololisp/hll_gc.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#include "hll_gc.h"
#include "hll_hololisp.h"

#include <assert.h>

#include "hll_bytecode.h"
#include "hll_mem.h"
#include "hll_value.h"
#include "hll_vm.h"

static void hll_gray_value(hll_gc *gc, hll_value value) {
if (!hll_is_obj(value)) {
return;
Expand Down
Loading

0 comments on commit bfb0ac6

Please sign in to comment.