summaryrefslogtreecommitdiffstats
path: root/4
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-12-12 12:38:21 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-12-12 12:38:21 +0800
commit2e8d1cd37c0fea4bc18164f39a58cd704649f52c (patch)
treecb393b26d1388bf4aaa2e6887a4a252734c64c1a /4
parent2b43df526eede0a57fe38cf99ec21eaa5b310e98 (diff)
downloadk&r-exercises-2e8d1cd37c0fea4bc18164f39a58cd704649f52c.tar.gz
4.6
Diffstat (limited to '4')
-rw-r--r--4/6.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/4/6.c b/4/6.c
index 55d5b76..e1952ef 100644
--- a/4/6.c
+++ b/4/6.c
@@ -11,10 +11,8 @@
#define VARIABLE '3' /* signal that a variable was found */
#define MAXVAL 100 /* max depth of val and var stack */
#define BUFSIZE 100
-#define VARCOUNT 52 /* supported variable count */
-#define LPRINT "lout" /* variable for most recently printed val */
-
-#define INDEX(x) (x <= 'Z' ? x - 'A' : x - 71)
+#define VARCOUNT 52 /* supported variable count */
+#define INDEX(x) (x <= 'Z' ? x - 'A' : x - 71) /* index of the variable */
int sp = 0; /* next free stack position */
double val[MAXVAL]; /* value stack */