instance_globals update to include lua_ver storage

This commit is contained in:
nhmall
2019-11-30 17:24:11 -05:00
parent 7031b6b504
commit c5babb0de1
2 changed files with 8 additions and 0 deletions

View File

@@ -700,6 +700,8 @@ struct role_filter {
#define WIZKIT_MAX 128
#define CVT_BUF_SIZE 64
#define LUA_VER_BUFSIZ 20
struct instance_globals {
/* apply.c */
@@ -1253,6 +1255,9 @@ struct instance_globals {
int poly_zapped;
boolean obj_zapped;
/* new stuff */
char lua_ver[LUA_VER_BUFSIZ];
unsigned long magic; /* validate that structure layout is preserved */
};

View File

@@ -691,6 +691,9 @@ const struct instance_globals g_init = {
UNDEFINED_VALUE, /* poly_zap */
UNDEFINED_VALUE, /* obj_zapped */
/* new */
DUMMY, /* lua_ver[LUA_VER_BUFSIZ] */
IVMAGIC /* used to validate that structure layout has been preserved */
};