summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-23 11:15:16 +0200
committerTyge Løvset <[email protected]>2022-09-23 11:15:16 +0200
commitd3b7d6febef6d0ae588ac4b176a735d7bc522942 (patch)
tree7ea145e92a8abbf9c97d69d9a66005b1d79b3b50 /examples
parent34bec4fdf406caff8492d53f0afc80df5d75bba4 (diff)
downloadSTC-modified-d3b7d6febef6d0ae588ac4b176a735d7bc522942.tar.gz
STC-modified-d3b7d6febef6d0ae588ac4b176a735d7bc522942.zip
Renamed c_forloop* macros to more descriptive c_forwhile*.
Diffstat (limited to 'examples')
-rw-r--r--examples/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/list.c b/examples/list.c
index 2f5fa964..1f21304f 100644
--- a/examples/list.c
+++ b/examples/list.c
@@ -25,14 +25,14 @@ int main() {
sum += *i.ref;
printf("sum %f\n\n", sum);
- c_forloop (i, clist_fx, list, i.index < 10)
+ c_forwhile (i, clist_fx, list, i.index < 10)
printf("%8d: %10f\n", (int)i.index, *i.ref);
puts("sort");
clist_fx_sort(&list); // mergesort O(n*log n)
puts("sorted");
- c_forloop (i, clist_fx, list, i.index < 10)
+ c_forwhile (i, clist_fx, list, i.index < 10)
printf("%8d: %10f\n", (int)i.index, *i.ref);
puts("");