diff options
| author | Tyge Løvset <[email protected]> | 2023-02-10 13:28:47 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-10 13:28:47 +0100 |
| commit | 9f8fc0e6b9bb56ea5cf9fbb27e25326f5cb96891 (patch) | |
| tree | 33387b7c11a80d9727927c79c33687db249409cf /misc | |
| parent | faf7ddf7a6d36b08b57a2bcd67d2d12815453d1d (diff) | |
| download | STC-modified-9f8fc0e6b9bb56ea5cf9fbb27e25326f5cb96891.tar.gz STC-modified-9f8fc0e6b9bb56ea5cf9fbb27e25326f5cb96891.zip | |
Added struct name to typedef to allow container pointer predecarations.
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/examples/new_pque.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <stc/cpque.h> |
