From d60d686399722bb22840480b32d62dc1a205b47b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 24 Sep 2021 19:27:37 -0700 Subject: [PATCH] lefty: remove unused 'Eshowcalls' --- cmd/lefty/aix_mods/exec.c | 2 +- cmd/lefty/exec.c | 2 +- cmd/lefty/exec.h | 2 +- cmd/lefty/lefty.c | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/lefty/aix_mods/exec.c b/cmd/lefty/aix_mods/exec.c index 5e35b2c38..80152ca03 100644 --- a/cmd/lefty/aix_mods/exec.c +++ b/cmd/lefty/aix_mods/exec.c @@ -27,7 +27,7 @@ static int lvarn, llvari, flvari; Tobj root, null; Tobj rtno; int Erun; -int Eerrlevel, Estackdepth, Eshowbody, Eshowcalls; +int Eerrlevel, Estackdepth, Eshowbody; #define PUSHJMP(op, np, b) op = (volatile jmp_buf *) np, np = (jmp_buf *) &b #define POPJMP(op, np) np = (jmp_buf *) op diff --git a/cmd/lefty/exec.c b/cmd/lefty/exec.c index 27d8da503..ae2e05822 100644 --- a/cmd/lefty/exec.c +++ b/cmd/lefty/exec.c @@ -27,7 +27,7 @@ static int lvarn, llvari, flvari; Tobj root, null; Tobj rtno; int Erun; -int Eerrlevel, Estackdepth, Eshowbody, Eshowcalls; +int Eerrlevel, Estackdepth, Eshowbody; #define PUSHJMP(op, np, b) op = (volatile jmp_buf *) np, np = (jmp_buf *) &b #define POPJMP(op, np) np = (jmp_buf *) op diff --git a/cmd/lefty/exec.h b/cmd/lefty/exec.h index acdabce63..da97c9c6d 100644 --- a/cmd/lefty/exec.h +++ b/cmd/lefty/exec.h @@ -17,7 +17,7 @@ typedef struct Tonm_t lvar_t; extern Tobj root, null; extern Tobj rtno; extern int Erun; -extern int Eerrlevel, Estackdepth, Eshowbody, Eshowcalls; +extern int Eerrlevel, Estackdepth, Eshowbody; void Einit (void); void Eterm (void); diff --git a/cmd/lefty/lefty.c b/cmd/lefty/lefty.c index 0c2db6db0..f9f138b46 100644 --- a/cmd/lefty/lefty.c +++ b/cmd/lefty/lefty.c @@ -111,7 +111,6 @@ int main (int argc, char **argv) { Eerrlevel = 1; Estackdepth = 2; Eshowbody = 1; - Eshowcalls = 1; if (setjmp (exitljbuf)) goto eop; @@ -227,7 +226,6 @@ int APIENTRY WinMain ( Eerrlevel = 1; Estackdepth = 2; Eshowbody = 1; - Eshowcalls = 1; processstr (leftyoptions); argv = CommandLineToArgvW(lpCmdLine, &argc); @@ -450,7 +448,7 @@ static void processargs (int argc, char *argv[]) { else if (strcmp (argv[0], "-sb") == 0) Eshowbody = atoi (argv[1]), argv++, argc--; else if (strcmp (argv[0], "-sc") == 0) - Eshowcalls = atoi (argv[1]), argv++, argc--; + argv++, argc--; else if (strcmp (argv[0], "-df") == 0) Gdefaultfont = argv[1], argv++, argc--; else if (strcmp (argv[0], "-w") == 0) -- 2.40.0