From 4b9e56ebf47db8be740f4ff2a4b9fceb9f143055 Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Sun, 16 Jan 2011 08:41:04 +0100 Subject: Refactored cardstack and tablestacks to card_stack_t and table_stacks_t, that both now are defined as structs rather than arrays. Inserted lots of assert() calls to functions that take pointers as arguments. --- src/table_stacks.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/table_stacks.h (limited to 'src/table_stacks.h') diff --git a/src/table_stacks.h b/src/table_stacks.h new file mode 100644 index 0000000..57fddba --- /dev/null +++ b/src/table_stacks.h @@ -0,0 +1,13 @@ +#ifndef OXEN_TABLE_STACKS_H +#define OXEN_TABLE_STACKS_H + +#include "card_stack.h" + +#define NUM_TABLE_STACKS 4 + +typedef struct +{ + card_stack_t stacks[NUM_TABLE_STACKS]; +} table_stacks_t; + +#endif // OXEN_TABLE_STACKS_H -- cgit v1.2.3