...
|
...
|
@@ -71,7 +71,7 @@ static inline int bcfail(const char *msg, long a, long b,
|
71
|
71
|
#define CHECK_EQ(a,b)
|
72
|
72
|
#define CHECK_GT(a,b)
|
73
|
73
|
#endif
|
74
|
|
-#ifdef CL_DEBUG
|
|
74
|
+#if 0 /* too verbose, use #ifdef CL_DEBUG if needed */
|
75
|
75
|
#define CHECK_UNREACHABLE do { cli_dbgmsg("bytecode: unreachable executed!\n"); return CL_EBYTECODE; } while(0)
|
76
|
76
|
#define TRACE_PTR(ptr, s) cli_dbgmsg("bytecode trace: ptr %llx, +%x\n", ptr, s);
|
77
|
77
|
#define TRACE_R(x) cli_dbgmsg("bytecode trace: %u, read %llx\n", pc, (long long)x);
|
...
|
...
|
@@ -153,7 +153,7 @@ static always_inline void* cli_stack_alloc(struct stack *stack, unsigned bytes)
|
153
|
153
|
/* not enough room here, allocate new chunk */
|
154
|
154
|
chunk = cli_malloc(sizeof(*stack->chunk));
|
155
|
155
|
if (!chunk) {
|
156
|
|
- cli_warnmsg("cli_stack_alloc: Unable to allocate memory for stack-chunk: bytes: %u!\n", sizeof(*stack->chunk));
|
|
156
|
+ cli_warnmsg("cli_stack_alloc: Unable to allocate memory for stack-chunk: bytes: %zu!\n", sizeof(*stack->chunk));
|
157
|
157
|
return NULL;
|
158
|
158
|
}
|
159
|
159
|
|