mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
nvi: fix catalog generation
Upstream broke catalog generation with some over-eagre style cleanups.
This brings in my pull request.
Obtained from: https://github.com/lichray/nvi2/pull/88
Differential Revision: https://reviews.freebsd.org/D28594
(cherry picked from commit 888ae57252)
This commit is contained in:
parent
6f6c648004
commit
9019e7b388
1 changed files with 6 additions and 6 deletions
|
|
@ -36,24 +36,24 @@ parse(FILE *fp)
|
|||
{
|
||||
int ch, s1, s2, s3;
|
||||
|
||||
#define TESTD(s) do { \
|
||||
#define TESTD(s) { \
|
||||
if ((s = getc(fp)) == EOF) \
|
||||
return; \
|
||||
if (!isdigit(s)) \
|
||||
continue; \
|
||||
} while (0)
|
||||
#define TESTP do { \
|
||||
}
|
||||
#define TESTP { \
|
||||
if ((ch = getc(fp)) == EOF) \
|
||||
return; \
|
||||
if (ch != '|') \
|
||||
continue; \
|
||||
} while (0)
|
||||
#define MOVEC(t) do { \
|
||||
}
|
||||
#define MOVEC(t) { \
|
||||
do { \
|
||||
if ((ch = getc(fp)) == EOF) \
|
||||
return; \
|
||||
} while (ch != (t)); \
|
||||
} while (0)
|
||||
}
|
||||
for (;;) {
|
||||
MOVEC('"');
|
||||
TESTD(s1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue