diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2019-07-12 09:18:45 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2019-07-12 09:18:45 +0200 |
commit | ed7b90269a529d90d151969348e55347fae02c0d (patch) | |
tree | 7c72e5a49112a844a53a2c10ef1fda47867aee92 /sample/sql.c | |
parent | 6cac1738b6aebf75b29d225775030d291319f9a2 (diff) | |
parent | 5c29b174a11e992dac68553f08645fe4a825c315 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'sample/sql.c')
-rw-r--r-- | sample/sql.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sample/sql.c b/sample/sql.c index 4f5283a..8e95f70 100644 --- a/sample/sql.c +++ b/sample/sql.c @@ -28,16 +28,16 @@ extern int main(int argc, char* argv[]) onig_set_meta_char(&SQLSyntax, ONIG_META_CHAR_ESCAPE, (OnigCodePoint )'\\'); onig_set_meta_char(&SQLSyntax, ONIG_META_CHAR_ANYCHAR, (OnigCodePoint )'_'); onig_set_meta_char(&SQLSyntax, ONIG_META_CHAR_ANYTIME, - ONIG_INEFFECTIVE_META_CHAR); + ONIG_INEFFECTIVE_META_CHAR); onig_set_meta_char(&SQLSyntax, ONIG_META_CHAR_ZERO_OR_ONE_TIME, - ONIG_INEFFECTIVE_META_CHAR); + ONIG_INEFFECTIVE_META_CHAR); onig_set_meta_char(&SQLSyntax, ONIG_META_CHAR_ONE_OR_MORE_TIME, - ONIG_INEFFECTIVE_META_CHAR); + ONIG_INEFFECTIVE_META_CHAR); onig_set_meta_char(&SQLSyntax, ONIG_META_CHAR_ANYCHAR_ANYTIME, - (OnigCodePoint )'%'); + (OnigCodePoint )'%'); r = onig_new(®, pattern, pattern + strlen((char* )pattern), - ONIG_OPTION_DEFAULT, ONIG_ENCODING_ASCII, &SQLSyntax, &einfo); + ONIG_OPTION_DEFAULT, ONIG_ENCODING_ASCII, &SQLSyntax, &einfo); if (r != ONIG_NORMAL) { char s[ONIG_MAX_ERROR_MESSAGE_LEN]; onig_error_code_to_str((UChar* )s, r, &einfo); |