diff options
| author | Sadeep Madurange <smadurange@users.noreply.github.com> | 2021-12-12 12:38:21 +0800 |
|---|---|---|
| committer | Sadeep Madurange <smadurange@users.noreply.github.com> | 2021-12-12 12:38:21 +0800 |
| commit | 2e8d1cd37c0fea4bc18164f39a58cd704649f52c (patch) | |
| tree | cb393b26d1388bf4aaa2e6887a4a252734c64c1a /4/6.c | |
| parent | 2b43df526eede0a57fe38cf99ec21eaa5b310e98 (diff) | |
| download | k&r-exercises-2e8d1cd37c0fea4bc18164f39a58cd704649f52c.tar.gz | |
4.6
Diffstat (limited to '4/6.c')
| -rw-r--r-- | 4/6.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 */ |
