From ca01dd726e2ed8f8b69f8ff08855e80f4eea7247 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 26 Sep 2022 08:08:47 +0200 Subject: DEPRECATED: c_forrange(): replaced with c_forloop(). This uses 'long long' as iter type, i.e. "%lld" printf format. crange_from() renamed to crange_make(). More docs. --- examples/queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/queue.c') diff --git a/examples/queue.c b/examples/queue.c index cc6f8302..7be25367 100644 --- a/examples/queue.c +++ b/examples/queue.c @@ -14,12 +14,12 @@ int main() { c_auto (cqueue_i, queue) { // Push ten million random numbers onto the queue. - c_forrange (n) + c_forloop (n) cqueue_i_push(&queue, stc64_uniform(&rng, &dist)); // Push or pop on the queue ten million times printf("%d\n", n); - c_forrange (n) { // forrange uses initial n only. + c_forloop (n) { // forrange uses initial n only. int r = stc64_uniform(&rng, &dist); if (r & 1) ++n, cqueue_i_push(&queue, r); -- cgit v1.2.3