Avoid some empty if- and else- parts. gcc -Wall does not like it
This commit is contained in:
parent
7b996be765
commit
a1a816ddc2
2 changed files with 10 additions and 7 deletions
|
@ -10,11 +10,11 @@
|
||||||
extern int LLsymb;
|
extern int LLsymb;
|
||||||
|
|
||||||
#define LL_SAFE(x) /* Nothing */
|
#define LL_SAFE(x) /* Nothing */
|
||||||
#define LL_SSCANDONE(x) if (LLsymb != x) LLsafeerror(x); else
|
#define LL_SSCANDONE(x) if (LLsymb != x) LLsafeerror(x)
|
||||||
#define LL_SCANDONE(x) if (LLsymb != x) LLerror(x); else
|
#define LL_SCANDONE(x) if (LLsymb != x) LLerror(x)
|
||||||
#define LL_NOSCANDONE(x) LLscan(x)
|
#define LL_NOSCANDONE(x) LLscan(x)
|
||||||
#ifdef LL_FASTER
|
#ifdef LL_FASTER
|
||||||
#define LLscan(x) if ((LLsymb = LL_LEXI()) != x) LLerror(x); else
|
#define LLscan(x) if ((LLsymb = LL_LEXI()) != x) LLerror(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern unsigned int LLscnt[];
|
extern unsigned int LLscnt[];
|
||||||
|
|
|
@ -13,7 +13,10 @@ int LLcsymb, LLsymb;
|
||||||
static int LLlevel;
|
static int LLlevel;
|
||||||
|
|
||||||
#if LL_ANSI_C
|
#if LL_ANSI_C
|
||||||
|
#define LL_VOIDCST (void)
|
||||||
void LLmessage(int);
|
void LLmessage(int);
|
||||||
|
#else
|
||||||
|
#define LL_VOIDCST
|
||||||
#endif
|
#endif
|
||||||
#ifdef LL_USERHOOK
|
#ifdef LL_USERHOOK
|
||||||
#if LL_ANSI_C
|
#if LL_ANSI_C
|
||||||
|
@ -72,7 +75,7 @@ LLerror(t)
|
||||||
if (t == EOFILE) {
|
if (t == EOFILE) {
|
||||||
#ifdef LL_USERHOOK
|
#ifdef LL_USERHOOK
|
||||||
static int lst[] = { EOFILE, 0 };
|
static int lst[] = { EOFILE, 0 };
|
||||||
if (LLuserhook(EOFILE, lst)) /* nothing */;
|
LL_VOIDCST LLuserhook(EOFILE, lst);
|
||||||
#endif /* LL_USERHOOK */
|
#endif /* LL_USERHOOK */
|
||||||
if (LLsymb != EOFILE && LLsymb > 0) {
|
if (LLsymb != EOFILE && LLsymb > 0) {
|
||||||
LLmessage(-1);
|
LLmessage(-1);
|
||||||
|
@ -89,9 +92,9 @@ LLerror(t)
|
||||||
i = LLindex[t];
|
i = LLindex[t];
|
||||||
LLtcnt[i]++;
|
LLtcnt[i]++;
|
||||||
#ifdef LL_USERHOOK
|
#ifdef LL_USERHOOK
|
||||||
if (LLdoskip(t)) /* nothing */;
|
LL_VOIDCST LLdoskip(t);
|
||||||
#else
|
#else
|
||||||
if (LLskip()) /* nothing */;
|
LL_VOIDCST LLskip();
|
||||||
#endif
|
#endif
|
||||||
LLtcnt[i]--;
|
LLtcnt[i]--;
|
||||||
if (LLsymb != t) LLmessage(t);
|
if (LLsymb != t) LLmessage(t);
|
||||||
|
@ -109,7 +112,7 @@ LLsafeerror(t)
|
||||||
if (t == EOFILE) {
|
if (t == EOFILE) {
|
||||||
#ifdef LL_USERHOOK
|
#ifdef LL_USERHOOK
|
||||||
static int lst[] = { EOFILE, 0 };
|
static int lst[] = { EOFILE, 0 };
|
||||||
if (LLuserhook(EOFILE, lst)) /* nothing */;
|
LL_VOIDCST LLuserhook(EOFILE, lst);
|
||||||
#endif /* LL_USERHOOK */
|
#endif /* LL_USERHOOK */
|
||||||
if (LLsymb != EOFILE && LLsymb > 0) {
|
if (LLsymb != EOFILE && LLsymb > 0) {
|
||||||
LLmessage(-1);
|
LLmessage(-1);
|
||||||
|
|
Loading…
Reference in a new issue