Configuration: reduced memory consumption of long strings.

This commit is contained in:
Valentin Bartenev
2017-07-18 18:00:19 +03:00
parent f16510585f
commit a6c4ef7a10
2 changed files with 36 additions and 27 deletions

View File

@@ -82,8 +82,8 @@ void nxt_conf_get_string(nxt_conf_value_t *value, nxt_str_t *str);
// FIXME reimplement and reorder functions below
nxt_uint_t nxt_conf_object_members_count(nxt_conf_value_t *value);
nxt_conf_value_t *nxt_conf_create_object(nxt_mp_t *mp, nxt_uint_t count);
nxt_int_t nxt_conf_set_object_member(nxt_mp_t *mp, nxt_conf_value_t *object,
nxt_str_t *name, nxt_conf_value_t *value, uint32_t index);
nxt_int_t nxt_conf_set_object_member(nxt_conf_value_t *object, nxt_str_t *name,
nxt_conf_value_t *value, uint32_t index);
#endif /* _NXT_CONF_INCLUDED_ */