From db571f9737d8d3f14921ae53f41d13897cadd1f5 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sun, 28 Apr 2019 09:19:44 +1000 Subject: [PATCH] oceani: move free_value() to the other generic value code. This doesn't belong wit the base types. Signed-off-by: NeilBrown --- csrc/oceani.mdc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/csrc/oceani.mdc b/csrc/oceani.mdc index 6802795..f3bf6a1 100644 --- a/csrc/oceani.mdc +++ b/csrc/oceani.mdc @@ -498,6 +498,12 @@ which are often passed around by value. */ } + static void free_value(struct value v) + { + if (v.type) + v.type->free(v); + } + static struct value val_init(struct type *type) { struct value rv; @@ -603,12 +609,6 @@ to parse each type from a string. } } - static void free_value(struct value v) - { - if (v.type) - v.type->free(v); - } - static int vtype_compat(struct type *require, struct type *have, int rules) { if ((rules & Rboolok) && have == Tbool) -- 2.43.0