summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/misc/string_bench_STD.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-13 19:02:50 +0200
committerTyge Løvset <[email protected]>2022-08-13 19:02:50 +0200
commit9bdcf2090da121f8d0954dad35db48c7aa47b17e (patch)
treeb2d10dc4d069059434174e9cdee5251cae8ff10c /benchmarks/misc/string_bench_STD.cpp
parentccb63f1abbae18657708dd8ea38e0892aa0fc48a (diff)
downloadSTC-modified-9bdcf2090da121f8d0954dad35db48c7aa47b17e.tar.gz
STC-modified-9bdcf2090da121f8d0954dad35db48c7aa47b17e.zip
Experimental: Renamed c_autovar => c_with, c_autoscope => c_scope, c_autodefer => c_defer. May or may not be reverted before V4.0 release.
Diffstat (limited to 'benchmarks/misc/string_bench_STD.cpp')
-rw-r--r--benchmarks/misc/string_bench_STD.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/misc/string_bench_STD.cpp b/benchmarks/misc/string_bench_STD.cpp
index 5f033ca1..8bb87937 100644
--- a/benchmarks/misc/string_bench_STD.cpp
+++ b/benchmarks/misc/string_bench_STD.cpp
@@ -17,7 +17,7 @@ std::vector<std::string> read_file(const char* name)
{
std::vector<std::string> data;
c_auto (cstr, line)
- c_autovar (FILE* f = fopen(name, "r"), fclose(f))
+ c_with (FILE* f = fopen(name, "r"), fclose(f))
while (cstr_getline(&line, f))
data.emplace_back(cstr_str(&line));
return data;