summaryrefslogtreecommitdiffstats
path: root/src/bvr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bvr.h')
-rw-r--r--src/bvr.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bvr.h b/src/bvr.h
index abcd0cf..185b78f 100644
--- a/src/bvr.h
+++ b/src/bvr.h
@@ -24,12 +24,18 @@
#define THE_VOID "/dev/null"
#define BVR_INITIAL_VARIABLES_COUNT 128
-#define BVR_MAX_VARIABLE_SIZE 128
#define BVR_UNDEFINED "BVR_UNDEFINED"
#define BVR_ARRAY_INDEX_CHAR '['
#define BVR_ARRAY_AFTER_INDEX "]"
-char bvr_variables[BVR_INITIAL_VARIABLES_COUNT*2][BVR_MAX_VARIABLE_SIZE];
+struct bvr_variable {
+ char * k; /* ey */
+ char * v; /* alue */
+ size_t sv; /* _izeof_alue */
+ size_t sk; /* _izeof_key */
+};
+size_t bvr_variables_count = BVR_INITIAL_VARIABLES_COUNT;
+struct bvr_variable * bvr_variables;
int bvr_bvrvar_first_time_set = 1;
#define BVR_VER_MAJOR 0