From d623c6c85071b9af5d607bb5d9aceceaea05220a Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 23 Dec 2022 23:55:10 +0100 Subject: Experimental uppercase macros. --- misc/examples/queue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc/examples/queue.c') diff --git a/misc/examples/queue.c b/misc/examples/queue.c index f39c4b8b..1d325fc6 100644 --- a/misc/examples/queue.c +++ b/misc/examples/queue.c @@ -11,15 +11,15 @@ int main() { stc64_t rng = stc64_new(1234); dist = stc64_uniform_new(0, n); - c_auto (cqueue_i, queue) + c_AUTO (cqueue_i, queue) { // Push ten million random numbers onto the queue. - c_forrange (n) + c_FORRANGE (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_FORRANGE (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