From 9f8fc0e6b9bb56ea5cf9fbb27e25326f5cb96891 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 10 Feb 2023 13:28:47 +0100 Subject: Added struct name to typedef to allow container pointer predecarations. --- misc/examples/new_pque.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/examples') diff --git a/misc/examples/new_pque.c b/misc/examples/new_pque.c index 1442f376..57f27dc4 100644 --- a/misc/examples/new_pque.c +++ b/misc/examples/new_pque.c @@ -4,7 +4,7 @@ struct Point { int x, y; } typedef Point; #define i_type PointQ #define i_val Point -#define i_less(a, b) a->x < b->x || a->x == b->x && a->y < b->y +#define i_less(a, b) a->x < b->x || (a->x == b->x && a->y < b->y) #include -- cgit v1.2.3