diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-05-04 18:26:00 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-05-04 18:26:00 +0200 |
commit | a7c6cf32519f775b01975b104a0c8da3c76beab5 (patch) | |
tree | ce8bdf27499179198a1f264a29d34a93c3c92902 /src/ascii.c | |
parent | fd4ff4e58174679784d7698880717eefc9399ba7 (diff) | |
parent | 0ad6ddc1cbc5b0f36547798994b352a09ae5cf1c (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/ascii.c')
-rw-r--r-- | src/ascii.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ascii.c b/src/ascii.c index 7efaa26..eb38944 100644 --- a/src/ascii.c +++ b/src/ascii.c @@ -37,16 +37,19 @@ init(void) int id; OnigEncoding enc; char* name; - unsigned int t_long; unsigned int args[4]; OnigValue opts[4]; enc = ONIG_ENCODING_ASCII; - t_long = ONIG_TYPE_LONG; name = "FAIL"; BC0_P(name, fail); name = "MISMATCH"; BC0_P(name, mismatch); - name = "MAX"; BC_B(name, max, 1, &t_long); + + name = "MAX"; + args[0] = ONIG_TYPE_TAG | ONIG_TYPE_LONG; + args[1] = ONIG_TYPE_CHAR; + opts[0].c = 'X'; + BC_B_O(name, max, 2, args, 1, opts); name = "ERROR"; args[0] = ONIG_TYPE_LONG; opts[0].l = ONIG_ABORT; @@ -110,5 +113,6 @@ OnigEncodingType OnigEncodingASCII = { init, 0, /* is_initialized */ onigenc_always_true_is_valid_mbc_string, - 0, 0, 0 + ENC_FLAG_ASCII_COMPATIBLE, + 0, 0 }; |