#define → typedef

This commit is contained in:
dzaima 2021-12-30 02:18:25 +02:00
parent d68e278083
commit b656c9aa44
2 changed files with 10 additions and 9 deletions

18
src/h.h
View File

@ -95,15 +95,15 @@
#define OBJ_COUNTER 1 #define OBJ_COUNTER 1
#endif #endif
#define i8 int8_t typedef int8_t i8;
#define u8 uint8_t typedef uint8_t u8;
#define i16 int16_t typedef int16_t i16;
#define u16 uint16_t typedef uint16_t u16;
#define i32 int32_t typedef int32_t i32;
#define u32 uint32_t typedef uint32_t u32;
#define i64 int64_t typedef int64_t i64;
#define u64 uint64_t typedef uint64_t u64;
#define f64 double typedef double f64;
#define I8_MIN -128 #define I8_MIN -128
#define I8_MAX 127 #define I8_MAX 127
#define I16_MIN -32768 #define I16_MIN -32768

View File

@ -79,6 +79,7 @@ int main(int argc, char* argv[]) {
dec(gsc_exec_inline(fromUTF8l(argv[i++]), m_str8l("(-e)"), emptySVec())); dec(gsc_exec_inline(fromUTF8l(argv[i++]), m_str8l("(-e)"), emptySVec()));
break; break;
} }
case 'L': { repl_init(); break; } // just initialize. mostly for perf testing
case 'p': { repl_init(); REQARG(p); case 'p': { repl_init(); REQARG(p);
B r = bqn_fmt(gsc_exec_inline(fromUTF8l(argv[i++]), m_str8l("(-p)"), emptySVec())); B r = bqn_fmt(gsc_exec_inline(fromUTF8l(argv[i++]), m_str8l("(-p)"), emptySVec()));
printRaw(r); dec(r); printRaw(r); dec(r);