diff options
author | Daniel <steew0x8@protonmail.com> | 2021-11-06 17:58:47 +0100 |
---|---|---|
committer | Daniel <steew0x8@protonmail.com> | 2021-11-06 17:58:47 +0100 |
commit | fe6314692dbdbf69db8b3e8a3979c1f1d21d621c (patch) | |
tree | 91d91e912e7b9e8de7f9fb6b56c1f0fc2c4dcebe /util.c | |
parent | bedbeb372f1d3a36b10d8737a9199c1fe4827e4f (diff) | |
download | rpncalc-fe6314692dbdbf69db8b3e8a3979c1f1d21d621c.tar.gz |
replaced if else chain, TODO: bsearch
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/util.c b/util.c index 6b6cd37..1693593 100644 --- a/util.c +++ b/util.c @@ -10,12 +10,6 @@ const char OPERATOR_LIST[] = { 0 }; -const command COMMAND_LIST[] = { - {'c', "clear stack"}, - {'p', "pop last element"}, - {0, 0}, -}; - int is_operator(char *s) { for (int i = 0; OPERATOR_LIST[i] != 0; i++) { if (s[0] == OPERATOR_LIST[i]) return 1; |