X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=miniexpect.h;h=f987655734d3e56d46b68c1116f63605da0245d4;hb=bc076a67d2d2612517d41ba27ebbc692234f0a3b;hp=31b7269a3fe14cd3aa26f258ce7a9dfe287f40b0;hpb=f5d365ec44b9e04c03c7e97e94080bcd134f319a;p=miniexpect.git diff --git a/miniexpect.h b/miniexpect.h index 31b7269..f987655 100644 --- a/miniexpect.h +++ b/miniexpect.h @@ -41,6 +41,7 @@ struct mexp_h { char *buffer; size_t len; size_t alloc; + ssize_t next_match; size_t read_size; int pcre_error; void *user1; @@ -67,9 +68,9 @@ typedef struct mexp_regexp mexp_regexp; enum mexp_status { MEXP_EOF = 0, - MEXP_TIMEOUT = -1, - MEXP_ERROR = -2, - MEXP_PCRE_ERROR = -3, + MEXP_ERROR = -1, + MEXP_PCRE_ERROR = -2, + MEXP_TIMEOUT = -3, }; extern int mexp_expect (mexp_h *h, const mexp_regexp *regexps,