diff options
| author | Tyge Løvset <[email protected]> | 2022-12-23 23:55:10 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-12-23 23:55:10 +0100 |
| commit | d623c6c85071b9af5d607bb5d9aceceaea05220a (patch) | |
| tree | f20fc3714f86e1553d1103bed6dc8efefcbd9d6b /misc/examples/regex2.c | |
| parent | 5f57d597cd27aef55adbcb3b452973b0c6e33667 (diff) | |
| download | STC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.tar.gz STC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.zip | |
Experimental uppercase macros.
Diffstat (limited to 'misc/examples/regex2.c')
| -rw-r--r-- | misc/examples/regex2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/examples/regex2.c b/misc/examples/regex2.c index dbf6aae4..55f8cfc2 100644 --- a/misc/examples/regex2.c +++ b/misc/examples/regex2.c @@ -13,8 +13,8 @@ int main() {"!((abc|123)+)!", "!123abcabc!"} }; - c_auto (cregex, re) - c_forrange (i, c_arraylen(s)) + c_AUTO (cregex, re) + c_FORRANGE (i, c_ARRAYLEN(s)) { int res = cregex_compile(&re, s[i].pattern, CREG_DEFAULT); if (res < 0) { @@ -23,8 +23,8 @@ int main() } printf("input: %s\n", s[i].input); - c_formatch (j, &re, s[i].input) { - c_forrange (k, cregex_captures(&re)) + c_FORMATCH (j, &re, s[i].input) { + c_FORRANGE (k, cregex_captures(&re)) printf(" submatch %lld: %.*s\n", k, c_ARGSV(j.match[k])); puts(""); } |
