prepare for 0.1.0

This commit is contained in:
CismonX 2020-06-22 02:18:25 +08:00
parent 9dccb0293b
commit af1366f3c6
No known key found for this signature in database
GPG Key ID: 315D6652268C5007
5 changed files with 18 additions and 18 deletions

View File

@ -1,4 +1,4 @@
.TH "U6A" "1" "Jan 30, 2020" "0.0.1" "U6A User Manual"
.TH "U6A" "1" "Jan 30, 2020" "0.1.0" "U6A User Manual"
.
.SH NAME
u6a \- Runtime for the Unlambda programming language

View File

@ -1,4 +1,4 @@
.TH "U6A" "1" "Jan 30, 2020" "0.0.1" "U6A User Manual"
.TH "U6A" "1" "Jan 30, 2020" "0.1.0" "U6A User Manual"
.
.SH NAME
u6ac \- Bytecode compiler for the Unlambda programming language

View File

@ -46,7 +46,7 @@
#define U6A_MAGIC 0xDC /* Latin 'U' with diaeresis */
#define U6A_VER_MAJOR 0x00
#define U6A_VER_MINOR 0x00
#define U6A_VER_MINOR 0x01
#define U6A_VER_PATCH 0x00
#endif

View File

@ -33,7 +33,7 @@
#define F_2B_DUP_8 F_2B_DUP_2 F_2B_DUP_2 F_2B_DUP_2 F_2B_DUP_2
#define fprintf_check(os, format, ...) \
if (fprintf(os, format, __VA_ARGS__) < 0) { \
if (UNLIKELY(fprintf(os, format, __VA_ARGS__) < 0)) { \
return false; \
}

View File

@ -71,11 +71,11 @@ static const char* info_runtime = "runtime";
#define STACK_PUSH2(fn_0, fn_1) u6a_vm_stack_push2(&stack_ctx, fn_0, fn_1)
#define STACK_PUSH3(fn_0, fn_1, fn_2) u6a_vm_stack_push3(&stack_ctx, fn_0, fn_1, fn_2)
#define STACK_PUSH4(fn_0, fn_1, fn_2, fn_3) u6a_vm_stack_push4(&stack_ctx, fn_0, fn_1, fn_2, fn_3)
#define STACK_XCH(fn_0) u6a_vm_stack_xch(&stack_ctx, fn_0)
#define STACK_POP(var) \
vm_var_fn_free(top); \
var = top = u6a_vm_stack_top(&stack_ctx); \
u6a_vm_stack_pop(&stack_ctx)
#define STACK_XCH(fn_0) u6a_vm_stack_xch(&stack_ctx, fn_0)
#define POOL_ALLOC1(v1) u6a_vm_pool_alloc1(&pool_ctx, v1)
#define POOL_ALLOC2(v1, v2) u6a_vm_pool_alloc2(&pool_ctx, v1, v2)