diff options
| author | Tyge Lovset <[email protected]> | 2021-09-20 10:36:25 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2021-09-20 10:36:25 +0200 |
| commit | 0861391b9b3b8ad37e24b0dba7da192f31e48a6b (patch) | |
| tree | df78821e47690e1793465d0fcf3d068ad33ccf44 /examples/splitstr.c | |
| parent | 625a0fad0c1d187d56d3a9c9bb831987e9250e86 (diff) | |
| download | STC-modified-0861391b9b3b8ad37e24b0dba7da192f31e48a6b.tar.gz STC-modified-0861391b9b3b8ad37e24b0dba7da192f31e48a6b.zip | |
Renamed macros: breaking changes for Version 2.0!
c_forvar => c_autovar
c_forscope => c_autoscope
c_forauto => c_auto
Removed: c_fordefer(x); use c_forscope(0, x) instead.
Added: c_exitauto; // continue
Diffstat (limited to 'examples/splitstr.c')
| -rw-r--r-- | examples/splitstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/splitstr.c b/examples/splitstr.c index 42dd4dbd..e4f6ab8a 100644 --- a/examples/splitstr.c +++ b/examples/splitstr.c @@ -36,7 +36,7 @@ int main() cstr string = cstr_lit("Split,this,,string,now,");
cvec_str vec = string_split(cstr_sv(string), c_sv(","));
- c_fordefer (cvec_str_del(&vec), cstr_del(&string))
+ c_autoscope (0, cvec_str_del(&vec), cstr_del(&string))
c_foreach (i, cvec_str, vec)
printf("\t\"%s\"\n", i.ref->str);
}
\ No newline at end of file |
