diff options
| author | Tyge Løvset <[email protected]> | 2022-11-13 11:25:25 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-11-13 11:25:25 +0100 |
| commit | 99fb2a81c771739e11091b84161f03d740eab084 (patch) | |
| tree | 11fcb6b1fe8497b0cfa524987ec300fdf269557e /examples/new_queue.c | |
| parent | e0fc0f2ec3846334496ab90b46ce1d69e9bbd230 (diff) | |
| download | STC-modified-99fb2a81c771739e11091b84161f03d740eab084.tar.gz STC-modified-99fb2a81c771739e11091b84161f03d740eab084.zip | |
Reverted forward declaration from c_declare_X back to c_forward_X, and the flag "i_opt c_declared" to "i_opt c_is_forward". Sorry about this, but hopefully not a widely used feature for most yet.
Diffstat (limited to 'examples/new_queue.c')
| -rw-r--r-- | examples/new_queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/new_queue.c b/examples/new_queue.c index d7b6d0aa..bc7a95c9 100644 --- a/examples/new_queue.c +++ b/examples/new_queue.c @@ -3,7 +3,7 @@ #include <stdio.h> #include <time.h> -declare_cqueue(cqueue_pnt, struct Point); +forward_cqueue(cqueue_pnt, struct Point); struct Point { int x, y; } typedef Point; int point_cmp(const Point* a, const Point* b) { @@ -12,7 +12,7 @@ int point_cmp(const Point* a, const Point* b) { } #define i_val Point #define i_cmp point_cmp -#define i_opt c_declared +#define i_opt c_is_forward #define i_tag pnt #include <stc/cqueue.h> |
