p2v: properly call va_end
[miniexpect.git] / miniexpect.h
index 31b7269..f987655 100644 (file)
@@ -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,