From b9dc26454d9ab57a6bbd36762fae57783de908ac Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 28 May 2020 13:24:38 -0400
Subject: replaced max(a,b) macro with func
---
strbst.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/strbst.c b/strbst.c
index 16c2e61..59d637e 100644
--- a/strbst.c
+++ b/strbst.c
@@ -7,8 +7,9 @@
strbst defines strbst with one member: strbstnode->head.
strbstnode has left, right, data, ind, and ht for avl balancing
*/
-#define max(a,b) ((a > b) ? a : b)
-#define min(a,b) ((a < b) ? a : b)
+int max(int a, int b) {
+ return ( (a < b) ? a : b);
+}
typedef char height;
--
cgit