diff options
| author | Tyge Løvset <[email protected]> | 2022-11-06 15:52:16 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-11-06 15:52:16 +0100 |
| commit | 5ec606e5dfdbaebe22717d094b58ee7f365ffd9c (patch) | |
| tree | 80bcfce7b82dd836724d793f3de3c224ac376154 /examples/regex_replace.c | |
| parent | bdbdf76616281f305ffc0af7f347f3fd8eaf0016 (diff) | |
| download | STC-modified-5ec606e5dfdbaebe22717d094b58ee7f365ffd9c.tar.gz STC-modified-5ec606e5dfdbaebe22717d094b58ee7f365ffd9c.zip | |
Added c_autodrop() macro, and removed c_autobuf() which wasn't that useful (and was undocumented).
Diffstat (limited to 'examples/regex_replace.c')
| -rw-r--r-- | examples/regex_replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/regex_replace.c b/examples/regex_replace.c index e6054d9f..13bc9bf0 100644 --- a/examples/regex_replace.c +++ b/examples/regex_replace.c @@ -35,7 +35,7 @@ int main() printf("brack: %s\n", cstr_str(&str)); /* Shows how to compile RE separately */ - c_with (cregex re = cregex_from(pattern, cre_default), cregex_drop(&re)) { + c_autodrop (cregex, re, cregex_from(pattern, cre_default)) { if (cregex_captures(&re) == 0) continue; // break c_with /* European date format. */ |
