summaryrefslogtreecommitdiffhomepage
path: root/docs/cpque_api.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cpque_api.md')
-rw-r--r--docs/cpque_api.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/cpque_api.md b/docs/cpque_api.md
index 48a5b29e..991623d7 100644
--- a/docs/cpque_api.md
+++ b/docs/cpque_api.md
@@ -76,19 +76,19 @@ int main()
stc64_uniform_t dist = stc64_uniform_new(0, N * 10);
// Declare heap, with defered drop()
- c_AUTO (cpque_i, heap)
+ c_auto (cpque_i, heap)
{
// Push ten million random numbers to priority queue.
- c_FORRANGE (N)
+ c_forrange (N)
cpque_i_push(&heap, stc64_uniform(&rng, &dist));
// Add some negative ones.
int nums[] = {-231, -32, -873, -4, -343};
- c_FORRANGE (i, c_ARRAYLEN(nums))
+ c_forrange (i, c_ARRAYLEN(nums))
cpque_i_push(&heap, nums[i]);
// Extract and display the fifty smallest.
- c_FORRANGE (50) {
+ c_forrange (50) {
printf("%" PRId64 " ", *cpque_i_top(&heap));
cpque_i_pop(&heap);
}