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/utf8replace_c.c | |
| parent | 5f57d597cd27aef55adbcb3b452973b0c6e33667 (diff) | |
| download | STC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.tar.gz STC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.zip | |
Experimental uppercase macros.
Diffstat (limited to 'misc/examples/utf8replace_c.c')
| -rw-r--r-- | misc/examples/utf8replace_c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/utf8replace_c.c b/misc/examples/utf8replace_c.c index 22a5c990..74b765dc 100644 --- a/misc/examples/utf8replace_c.c +++ b/misc/examples/utf8replace_c.c @@ -3,7 +3,7 @@ #include <stc/csview.h> int main() { - c_auto (cstr, hello, upper) { + c_AUTO (cstr, hello, upper) { hello = cstr_lit("hell😀 w😀rld"); printf("%s\n", cstr_str(&hello)); @@ -16,7 +16,7 @@ int main() { upper = cstr_toupper_sv(cstr_sv(&hello)); - c_foreach (c, cstr, hello) + c_FOREACH (c, cstr, hello) printf("%.*s,", c_ARGSV(c.u8.chr)); puts(""); } |
