Tidy up after incremental JSON parser patch

Remove junk left over from non-vpath builds.

Try to remedy gettext error on some platforms.
This commit is contained in:
Andrew Dunstan 2024-04-04 12:41:55 -04:00
parent 1b00fe30a6
commit 88620824c2
3 changed files with 10 additions and 2 deletions

View File

@ -2112,9 +2112,9 @@ json_errdetail(JsonParseErrorType error, JsonLexContext *lex)
break;
case JSON_INVALID_LEXER_TYPE:
if (lex->incremental)
return (_("Recursive descent parser cannot use incremental lexer"));
return _("Recursive descent parser cannot use incremental lexer");
else
return (_("Incremental parser requires incremental lexer"));
return _("Incremental parser requires incremental lexer");
case JSON_NESTING_TOO_DEEP:
return (_("JSON nested too deep, maximum permitted depth is 6400"));
case JSON_ESCAPING_INVALID:

View File

@ -0,0 +1,3 @@
tmp_check
test_json_parser_perf
test_json_parser_incremental

View File

@ -17,6 +17,8 @@ include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
.PHONY: clean
all: test_json_parser_incremental$(X) test_json_parser_perf$(X)
%.o: $(top_srcdir)/$(subdir)/%.c
@ -34,3 +36,6 @@ speed-check: test_json_parser_perf$(X)
time ./test_json_parser_perf 10000 $(top_srcdir)/$(subdir)/tiny.json
@echo Incremental parser:
time ./test_json_parser_perf -i 10000 $(top_srcdir)/$(subdir)/tiny.json
clean:
rm -rf test_json_parser_perf test_json_parser_incremental tmp_check $(OBJS)