From b656c9aa44644f6b80109a527af5ca6db0b2e49c Mon Sep 17 00:00:00 2001 From: dzaima Date: Thu, 30 Dec 2021 02:18:25 +0200 Subject: [PATCH] =?UTF-8?q?#define=20=E2=86=92=20typedef?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/h.h | 18 +++++++++--------- src/main.c | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/h.h b/src/h.h index 66799d5b..ba6121f0 100644 --- a/src/h.h +++ b/src/h.h @@ -95,15 +95,15 @@ #define OBJ_COUNTER 1 #endif -#define i8 int8_t -#define u8 uint8_t -#define i16 int16_t -#define u16 uint16_t -#define i32 int32_t -#define u32 uint32_t -#define i64 int64_t -#define u64 uint64_t -#define f64 double +typedef int8_t i8; +typedef uint8_t u8; +typedef int16_t i16; +typedef uint16_t u16; +typedef int32_t i32; +typedef uint32_t u32; +typedef int64_t i64; +typedef uint64_t u64; +typedef double f64; #define I8_MIN -128 #define I8_MAX 127 #define I16_MIN -32768 diff --git a/src/main.c b/src/main.c index e673f048..7e32ab8e 100644 --- a/src/main.c +++ b/src/main.c @@ -79,6 +79,7 @@ int main(int argc, char* argv[]) { dec(gsc_exec_inline(fromUTF8l(argv[i++]), m_str8l("(-e)"), emptySVec())); break; } + case 'L': { repl_init(); break; } // just initialize. mostly for perf testing case 'p': { repl_init(); REQARG(p); B r = bqn_fmt(gsc_exec_inline(fromUTF8l(argv[i++]), m_str8l("(-p)"), emptySVec())); printRaw(r); dec(r);