btcs

bitcoin script parser/evaluator/compiler/decompiler
git clone git://jb55.com/btcs
Log | Files | Refs | README | LICENSE

commit bbc7b0d96b5b1dc3114ea56b365ee4586cd86d3b
parent 4081de2374b65d976100cdc4fe5ec09cb799909e
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  5 Aug 2021 19:33:26 -0700

fix broken stuff

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mmain.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c @@ -16,7 +16,7 @@ char * g_reader_buf; char * g_reader_buf_top; struct stack g_reader_stack; u32 g_reader_buf_cap; -void yy_scan_string(const char *); +int yy_scan_string(const char *); void yyerror(const char* s); @@ -48,7 +48,7 @@ static int compile(int compile_options, int argc, const char *argv[]) int compiled_len; u8 *buf = (u8*)malloc(bufsize); struct stack tmp_stack; - alloc_arenas(0, MAX_STACK_SIZE, MAX_STACK_SIZE * MAX_STACK_SIZE); + alloc_arenas(); stack_init(&tmp_stack); stack_init(&g_reader_stack);