#include <ctype.h>
#include <limits.h>
#include <stdlib.h>
-#include <regex.h>
+#include "regex.h"
#include "utils.h"
#include "regex2.h"
#define NEXTn(n) (p->next += (n))
#define GETNEXT() (*p->next++)
#define SETERROR(e) seterr(p, (e))
-#define REQUIRE(co, e) ((co) || SETERROR(e))
+#define REQUIRE(co, e) ((void)((co) || SETERROR(e)))
#define MUSTSEE(c, e) (REQUIRE(MORE() && PEEK() == (c), e))
#define MUSTEAT(c, e) (REQUIRE(MORE() && GETNEXT() == (c), e))
#define MUSTNOTSEE(c, e) (REQUIRE(!MORE() || PEEK() != (c), e))
register struct parse *p;
register cset *cs;
{
- register int i;
+ register size_t i;
register cset *top = &p->g->sets[p->g->ncsets];
register size_t css = (size_t)p->g->csetsize;
register cset *cs;
{
register uch h = cs->hash;
- register int i;
+ register size_t i;
register cset *top = &p->g->sets[p->g->ncsets];
register cset *cs2;
register size_t css = (size_t)p->g->csetsize;
register struct parse *p;
register cset *cs;
{
- register int i;
+ register size_t i;
register size_t css = (size_t)p->g->csetsize;
for (i = 0; i < css; i++)
register struct parse *p;
register cset *cs;
{
- register int i;
+ register size_t i;
register size_t css = (size_t)p->g->csetsize;
register int n = 0;
cs->multis[cs->smultis - 1] = '\0';
}
+/* these functions don't seem to be used (yet?), suppress warnings */
+#if 0
/*
- mcsub - subtract a collating element from a cset
== static void mcsub(register cset *cs, register char *cp);
return(p);
return(NULL);
}
+#endif /* 0 */
/*
- mcinvert - invert the list of collating elements in a cset