Skip to content

Commit acb93e8

Browse files
committed
Clean up Dodger so that it can compile examples
Looks like some of the logic/types from Evildoer were copied over to improve Dodger, but in the process there were some conflicting changes. Nothing major. * No longer need `char.c` in the Makefile * No longer need `char.c` at all (all printing is done in `print.c`) * We do not need the EOF and VOID types in `values.h`
1 parent f313c64 commit acb93e8

3 files changed

Lines changed: 2 additions & 72 deletions

File tree

langs/dodger/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ endif
1010
objs = \
1111
main.o \
1212
values.o \
13-
char.o
13+
print.o
1414

1515
default: runtime.o
1616

langs/dodger/char.c

Lines changed: 0 additions & 66 deletions
This file was deleted.

langs/dodger/print.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdio.h>
22
#include <inttypes.h>
33
#include "values.h"
4+
#include "types.h"
45

56
void print_char(val_char_t);
67
void print_codepoint(val_char_t);
@@ -18,11 +19,6 @@ void print_result(val_t x)
1819
case T_CHAR:
1920
print_char(val_unwrap_char(x));
2021
break;
21-
case T_EOF:
22-
printf("#<eof>");
23-
break;
24-
case T_VOID:
25-
break;
2622
case T_INVALID:
2723
printf("internal error");
2824
}

0 commit comments

Comments
 (0)