Commit 4f6b5926 authored by Nick Mathewson's avatar Nick Mathewson 👁 Committed by David Goulet
Browse files

struct_var: refactor struct_var_is*() functions to delegate

Previously they checked the individual flags inside var_type_def_t;
now they call the appropriate var_type_is_*() functions.

(These functions will be removed entirely by the end of this branch.)
parent 7171ce2a
...@@ -243,7 +243,7 @@ struct_var_is_cumulative(const struct_member_t *member) ...@@ -243,7 +243,7 @@ struct_var_is_cumulative(const struct_member_t *member)
{ {
const var_type_def_t *def = get_type_def(member); const var_type_def_t *def = get_type_def(member);
return def ? def->is_cumulative : false; return def ? var_type_is_cumulative(def) : false;
} }
bool bool
...@@ -251,7 +251,7 @@ struct_var_is_settable(const struct_member_t *member) ...@@ -251,7 +251,7 @@ struct_var_is_settable(const struct_member_t *member)
{ {
const var_type_def_t *def = get_type_def(member); const var_type_def_t *def = get_type_def(member);
return def ? !def->is_unsettable : true; return def ? var_type_is_settable(def) : true;
} }
bool bool
...@@ -259,5 +259,5 @@ struct_var_is_contained(const struct_member_t *member) ...@@ -259,5 +259,5 @@ struct_var_is_contained(const struct_member_t *member)
{ {
const var_type_def_t *def = get_type_def(member); const var_type_def_t *def = get_type_def(member);
return def ? def->is_contained : false; return def ? var_type_is_contained(def) : false;
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment