diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-06-19 18:10:11 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-06-19 18:10:11 +0800 |
commit | 2bec3c80640f88bf027d117fda6c83abaaad9f41 (patch) | |
tree | cee1c50c2d5ecee4f37a06af13e9886435677235 /interchange | |
parent | 5cfe1b2c239353a72ce7975f2c542924c398c12e (diff) |
Items is now back an array of pointer to the items
This is so that the item struct can be (fake) subclassed without the
need to have a custom ord for containing the subclassed items. With
pointers, they can be easily casted using the same "items" field.
Diffstat (limited to 'interchange')
-rw-r--r-- | interchange/ord.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interchange/ord.h b/interchange/ord.h index 56bd648..836588b 100644 --- a/interchange/ord.h +++ b/interchange/ord.h @@ -15,7 +15,7 @@ struct interchange_ord_order { double total_cost; char *profile; size_t nitems; - struct interchange_ord_item *items; + struct interchange_ord_item **items; }; struct interchange_ord_transaction { |