diff --git a/qpkg/gobble.c b/qpkg/gobble.c index 6856219..6407c60 100644 --- a/qpkg/gobble.c +++ b/qpkg/gobble.c @@ -15,16 +15,24 @@ #define CHARS_AFTER_ERROR 20 +#ifdef BREAKNECK_SPEED + +#define EXPECT(s) do { buf += sizeof(s)-1; } while (0) + +#else /* !BREAKNECK_SPEED */ + #define EXPECT(s) \ do { \ if (end-buf < sizeof(s)-1) \ - FAIL; \ + FAIL; \ if (memcmp(buf, s, sizeof(s)-1)) \ FAIL; \ buf += sizeof(s)-1; \ } \ while (0) +#endif + #define NEXT (buf == end ? '?' : *buf++)