Use variable arrays if compiler supports C99, this saves a small amount of memory

darcs-hash:20060613172251-ac50b-1e19294700c9b9b72e2254f676004e7d9dceea44.gz
This commit is contained in:
axel 2006-06-14 03:22:51 +10:00
parent b2b1ec27d8
commit b62beaf47d

4
env.c
View File

@ -104,7 +104,11 @@ typedef struct env_node
typedef struct var_entry
{
int export; /**< Whether the variable should be exported */
#if __STDC_VERSION__ < 199901L
wchar_t val[1]; /**< The value of the variable */
#else
wchar_t val[]; /**< The value of the variable */
#endif
}
var_entry_t;