From e25c754918ae26e8b9e68a47bc1af36248e91800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 12 Jul 2019 09:18:14 +0200 Subject: New upstream version 6.9.2 --- sample/syntax.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sample/syntax.c') diff --git a/sample/syntax.c b/sample/syntax.c index 02af2ea..e292079 100644 --- a/sample/syntax.c +++ b/sample/syntax.c @@ -5,8 +5,7 @@ #include #include "oniguruma.h" -extern int exec(OnigSyntaxType* syntax, - char* apattern, char* astr) +extern int exec(OnigSyntaxType* syntax, char* apattern, char* astr) { int r; unsigned char *start, *range, *end; @@ -17,7 +16,7 @@ extern int exec(OnigSyntaxType* syntax, UChar* str = (UChar* )astr; r = onig_new(®, pattern, pattern + strlen((char* )pattern), - ONIG_OPTION_DEFAULT, ONIG_ENCODING_ASCII, syntax, &einfo); + ONIG_OPTION_DEFAULT, ONIG_ENCODING_ASCII, syntax, &einfo); if (r != ONIG_NORMAL) { char s[ONIG_MAX_ERROR_MESSAGE_LEN]; onig_error_code_to_str((UChar* )s, r, &einfo); @@ -62,11 +61,10 @@ extern int main(int argc, char* argv[]) onig_initialize(use_encs, sizeof(use_encs)/sizeof(use_encs[0])); r = exec(ONIG_SYNTAX_PERL, - "\\p{XDigit}\\P{XDigit}\\p{^XDigit}\\P{^XDigit}\\p{XDigit}", - "bgh3a"); + "\\p{XDigit}\\P{XDigit}\\p{^XDigit}\\P{^XDigit}\\p{XDigit}", + "bgh3a"); - r = exec(ONIG_SYNTAX_JAVA, - "\\p{XDigit}\\P{XDigit}[a-c&&b-g]", "bgc"); + r = exec(ONIG_SYNTAX_JAVA, "\\p{XDigit}\\P{XDigit}[a-c&&b-g]", "bgc"); r = exec(ONIG_SYNTAX_ASIS, "abc def* e+ g?ddd[a-rvvv] (vv){3,7}hv\\dvv(?:aczui ss)\\W\\w$", -- cgit v1.2.3