summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/new_pque.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-23 23:55:10 +0100
committerTyge Løvset <[email protected]>2022-12-23 23:55:10 +0100
commitd623c6c85071b9af5d607bb5d9aceceaea05220a (patch)
treef20fc3714f86e1553d1103bed6dc8efefcbd9d6b /misc/examples/new_pque.c
parent5f57d597cd27aef55adbcb3b452973b0c6e33667 (diff)
downloadSTC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.tar.gz
STC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.zip
Experimental uppercase macros.
Diffstat (limited to 'misc/examples/new_pque.c')
-rw-r--r--misc/examples/new_pque.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/examples/new_pque.c b/misc/examples/new_pque.c
index 2bb1d729..d127b592 100644
--- a/misc/examples/new_pque.c
+++ b/misc/examples/new_pque.c
@@ -20,16 +20,16 @@ int Point_cmp(const Point* a, const Point* b) {
int main()
{
- c_auto (cstack_int, istk)
+ c_AUTO (cstack_int, istk)
{
cstack_int_push(&istk, 123);
cstack_int_push(&istk, 321);
// print
- c_foreach (i, cstack_int, istk)
+ c_FOREACH (i, cstack_int, istk)
printf(" %d", *i.ref);
puts("");
}
- c_auto (cpque_pnt, pque)
+ c_AUTO (cpque_pnt, pque)
{
cpque_pnt_push(&pque, (Point){23, 80});
cpque_pnt_push(&pque, (Point){12, 32});
@@ -43,7 +43,7 @@ int main()
}
puts("");
}
- c_auto (cpque_int, ique)
+ c_AUTO (cpque_int, ique)
{
cpque_int_push(&ique, 123);
cpque_int_push(&ique, 321);