From c53359d77d2761068da36ef323a96c16e83e7b2a Mon Sep 17 00:00:00 2001 From: SimTaeYong0 Date: Sun, 15 Dec 2024 15:46:49 +0900 Subject: [PATCH 1/2] =?UTF-8?q?202313301=20=EC=8B=AC=ED=83=9C=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stack.c b/stack.c index 50a9c64..c92dbf3 100644 --- a/stack.c +++ b/stack.c @@ -2,6 +2,7 @@ #include #include "stack.h" #include +#define STACK_SIZE 100 Stack * create_stack(int initial_size) { From 92c5bde546df6afce7c9781d694f46ae015e1fc1 Mon Sep 17 00:00:00 2001 From: SimTaeYong0 Date: Sun, 15 Dec 2024 15:53:37 +0900 Subject: [PATCH 2/2] =?UTF-8?q?202313301=20=EC=8B=AC=ED=83=9C=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stack.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack.h b/stack.h index f9deb6e..61d0ed3 100644 --- a/stack.h +++ b/stack.h @@ -1,7 +1,7 @@ #ifndef STACK_H #define STACK_H #include - +#define STACK_SIZE 100 typedef int Item; typedef struct stack { Item * contents; @@ -18,4 +18,4 @@ Item pop(Stack *s); Item peek(Stack *s); static void stack_underflow(void); static void reallocate(Stack * stack); -#endif \ No newline at end of file +#endif