From 798df9cc08d0abfd466dcbfb55e94aae6d33bcef Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Fri, 12 Feb 2021 16:01:29 +0900 Subject: [PATCH] cleanup unused / redundant defs --- tools/compile.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/tools/compile.c b/tools/compile.c index d2bc663..19453d8 100644 --- a/tools/compile.c +++ b/tools/compile.c @@ -46,23 +46,6 @@ struct LineMapEntry { uint16_t line; } __attribute__((packed)); -struct BigConstantEntry { - union { - int64_t asInt; - double asFloat; - } data; -} __attribute__((packed)); - -const char * ValueTypes[] = { - "None", - "bool", - "int", - "float", - "exc", - "obj", - "kwargs", -}; - NativeFn ListPop; NativeFn ListAppend; NativeFn ListContains; @@ -349,7 +332,7 @@ static int doSecondPass(FILE * out) { fprintf(stderr, "Invalid value found in constants table," "this marashal format can not store '%s'\n", - ValueTypes[val->type]); + krk_typeName(*val)); return 1; } }