summaryrefslogtreecommitdiffstats
path: root/src/bvr.h
diff options
context:
space:
mode:
authorsijanec <anton@sijanec.eu>2021-01-19 20:23:45 +0100
committersijanec <anton@sijanec.eu>2021-01-19 20:23:45 +0100
commit59b099ee82477ffd8ad12948dd4601234563d0e4 (patch)
tree4cc421c4ac8a0c069beaca7079b3da75bd824b8f /src/bvr.h
parentadded an abstraction of accessing variables through file streams - possible to make functions (diff)
downloadbverbose-59b099ee82477ffd8ad12948dd4601234563d0e4.tar
bverbose-59b099ee82477ffd8ad12948dd4601234563d0e4.tar.gz
bverbose-59b099ee82477ffd8ad12948dd4601234563d0e4.tar.bz2
bverbose-59b099ee82477ffd8ad12948dd4601234563d0e4.tar.lz
bverbose-59b099ee82477ffd8ad12948dd4601234563d0e4.tar.xz
bverbose-59b099ee82477ffd8ad12948dd4601234563d0e4.tar.zst
bverbose-59b099ee82477ffd8ad12948dd4601234563d0e4.zip
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