From 68806336b87859a910b932896f342eb32f1b80b2 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 10 May 2015 21:34:00 +0100 Subject: [PATCH] sh: remove NEQ and some other defines --- Applications/V7/cmd/sh/mac.h | 3 --- Applications/V7/cmd/sh/macro.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Applications/V7/cmd/sh/mac.h b/Applications/V7/cmd/sh/mac.h index 011009de..e5b97c1f 100644 --- a/Applications/V7/cmd/sh/mac.h +++ b/Applications/V7/cmd/sh/mac.h @@ -37,9 +37,6 @@ #define POOL } -#define SKIP ; -#define DIV / -#define REM % #define NEQ ^ #define ANDF && #define ORF || diff --git a/Applications/V7/cmd/sh/macro.c b/Applications/V7/cmd/sh/macro.c index 1c8e4dd6..402edb60 100644 --- a/Applications/V7/cmd/sh/macro.c +++ b/Applications/V7/cmd/sh/macro.c @@ -108,7 +108,7 @@ retry: IF bra THEN IF c!='}' THEN argp=(STRING)relstak(); - IF (v==0)NEQ(setchar(c)) + IF (v==0)^(setchar(c)) THEN copyto('}'); ELSE skipto('}'); FI -- 2.34.1