diff options
| author | Tyge Løvset <[email protected]> | 2023-02-18 07:51:44 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-18 07:51:44 +0100 |
| commit | 0e3d07dbd991c1f1a691b24655c37ddab660a9d9 (patch) | |
| tree | dc9801e2fc9f62cbe3eb32cc8897c65e3f25f78b /misc/examples/box2.c | |
| parent | c4ae61de5be08e719e3183f4e2d1115c11856796 (diff) | |
| download | STC-modified-0e3d07dbd991c1f1a691b24655c37ddab660a9d9.tar.gz STC-modified-0e3d07dbd991c1f1a691b24655c37ddab660a9d9.zip | |
Fixed carc, cbox: no need for no_lookup and no_eq: use only no_cmp, no_hash if needed.
Diffstat (limited to 'misc/examples/box2.c')
| -rw-r--r-- | misc/examples/box2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/box2.c b/misc/examples/box2.c index b9628eeb..943b2ae8 100644 --- a/misc/examples/box2.c +++ b/misc/examples/box2.c @@ -18,18 +18,18 @@ struct { } typedef Rectangle; #define i_val Point -#define i_opt c_no_lookup +#define i_opt c_no_cmp #include <stc/cbox.h> // cbox_Point #define i_val Rectangle -#define i_opt c_no_lookup +#define i_opt c_no_cmp #include <stc/cbox.h> // cbox_Rectangle // Box in box: #define i_valboxed cbox_Point // NB: use i_valboxed when value is a cbox or carc! // it will auto define i_valdrop, i_valfrom, and i_cmp. #define i_tag BoxPoint -#define i_opt c_no_lookup +#define i_opt c_no_cmp #include <stc/cbox.h> // cbox_BoxPoint Point origin(void) { |
