diff options
author | sijanec <anton@sijanec.eu> | 2021-01-19 20:23:45 +0100 |
---|---|---|
committer | sijanec <anton@sijanec.eu> | 2021-01-19 20:23:45 +0100 |
commit | 59b099ee82477ffd8ad12948dd4601234563d0e4 (patch) | |
tree | 4cc421c4ac8a0c069beaca7079b3da75bd824b8f /src/bvr.h | |
parent | added an abstraction of accessing variables through file streams - possible to make functions (diff) | |
download | bverbose-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.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |