From b5110448e411f697cc6ba8fc718da44997c4315a Mon Sep 17 00:00:00 2001 From: Edward Wang Date: Thu, 12 Jan 1984 19:45:34 -0800 Subject: [PATCH] val_free() added SCCS-vsn: usr.bin/window/value.h 3.3 --- usr/src/usr.bin/window/value.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/src/usr.bin/window/value.h b/usr/src/usr.bin/window/value.h index 832a41f1c1..39e0536d5d 100644 --- a/usr/src/usr.bin/window/value.h +++ b/usr/src/usr.bin/window/value.h @@ -1,5 +1,5 @@ /* - * @(#)value.h 3.2 83/12/06 + * @(#)value.h 3.3 84/01/12 */ struct value { @@ -15,3 +15,5 @@ struct value { #define V_NUM 1 #define V_STR 2 #define V_ERR 3 + +#define val_free(v) ((v).v_type == V_STR ? str_free((v).v_str) : 0) -- 2.20.1