OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var.h versions 1.13 and 1.14
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var.h 1.13 -> 1.14

--- var.h        2001/11/19 16:09:44     1.13
+++ var.h        2001/12/03 10:51:27     1.14
@@ -36,6 +36,7 @@
 
 typedef enum {
     VAR_ERR_CALLBACK = -64,
+    VAR_ERR_ARRAY_LOOKUPS_ARE_UNSUPPORTED  = -37,
     VAR_ERR_INCOMPLETE_QUOTED_PAIR = -36,
     VAR_ERR_INVALID_ARGUMENT = -35,
     VAR_ERR_SUBMATCH_OUT_OF_RANGE = -34,
@@ -82,7 +83,7 @@
 /* Prototype for the lookup callback used in var_expand(). */
 
 typedef int (*var_cb_t) (void *context,
-    const char *varname, size_t name_len,
+    const char *varname, size_t name_len, int index,
     const char **data, size_t *data_len,
     size_t *buffer_size);
 
@@ -92,6 +93,9 @@
     char varinit;        /* '$' */
     char startdelim;     /* '{' */
     char enddelim;       /* '}' */
+    char startindex;     /* '[' */
+    char endindex;       /* ']' */
+    char current_index;  /* '#' */
     char escape;         /* '\' */
     char *namechars;     /* 'a-zA-Z0-9_' */
 } var_config_t;

CVSTrac 2.0.1