From 2bec3c80640f88bf027d117fda6c83abaaad9f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 19 Jun 2023 18:10:11 +0800 Subject: 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. --- interchange/ord.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interchange') 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 { -- cgit v1.2.3