Imported new improved free regex implementation. Added (again)
[silc.git] / lib / silcutil / silcerrno.h
index a9de2bd956ce045fb5fef453328fa7e521975667..f8e8f15f5649556ec79d9ac9b9bad3b787481b4d 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2007 Pekka Riikonen
+  Copyright (C) 2007 - 2008 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -126,6 +126,15 @@ typedef enum {
   SILC_ERR_NET_DOWN                    = 82,  /* Network is down */
   SILC_ERR_EOS                         = 83,  /* End of stream */
 
+  /* Regular expression errors */
+  SILC_ERR_REGEX_PAREN                 = 100, /* Unmatched parenthesis */
+  SILC_ERR_REGEX_HEX                   = 101, /* Bad hex number */
+  SILC_ERR_REGEX_REG                   = 102, /* Bad register number */
+  SILC_ERR_REGEX_SPECIAL               = 103, /* Unmatched special character */
+  SILC_ERR_REGEX_TOO_COMPLEX           = 104, /* Too complex expression */
+  SILC_ERR_REGEX_OPCODE                = 105, /* Bad regex opcode */
+  SILC_ERR_REGEX_REPEAT                = 106, /* Bad repeat value */
+
   SILC_ERR_MAX,
 } SilcResult;
 /***/