From e5cc232e126be33f4afec9bd4fd1714b5d38ec66 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Thu, 1 Jun 2017 13:38:27 +0900 Subject: [PATCH] minor changes of bytecode output format --- src/regcomp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/regcomp.c b/src/regcomp.c index f69b028..f1a1bfb 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -5853,7 +5853,7 @@ onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar** nextp, OnigCodePoint code; UChar *q; - fprintf(f, "[%s", op2name(*bp)); + fprintf(f, "%s", op2name(*bp)); arg_type = op2arg_type(*bp); if (arg_type != ARG_SPECIAL) { bp++; @@ -6081,7 +6081,6 @@ onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar** nextp, *--bp); } } - fputs("]", f); if (nextp) *nextp = bp; } @@ -6092,7 +6091,7 @@ print_compiled_byte_code_list(FILE* f, regex_t* reg) UChar* start = reg->p; UChar* end = reg->p + reg->used; - fprintf(f, "code length: %d\n", reg->used); + fprintf(f, "code-length: %d\n", reg->used); bp = start; while (bp < end) { -- 2.40.0