Add define for Kirk Smith's USR Courier driver. Change default baud
[unix-history] / usr / src / usr.bin / window / value.h
index 178c862..e9050df 100644 (file)
@@ -1,21 +1,25 @@
 /*
 /*
- *     @(#)value.h     3.1 83/11/22
+ * @(#)value.h 3.5 %G%
+ */
+
+/*
+ * Copyright (c) 1983 Regents of the University of California,
+ * All rights reserved.  Redistribution permitted subject to
+ * the terms of the Berkeley Software License Agreement.
  */
 
 struct value {
        char v_type;
  */
 
 struct value {
        char v_type;
-       struct value *v_link;
        union {
                int V_num;
                char *V_str;
        union {
                int V_num;
                char *V_str;
-               int V_tok;
        } v_un;
 };
 #define v_num  v_un.V_num
 #define v_str  v_un.V_str
        } v_un;
 };
 #define v_num  v_un.V_num
 #define v_str  v_un.V_str
-#define v_tok   v_un.V_tok
 
 #define V_NUM  1
 #define V_STR  2
 
 #define V_NUM  1
 #define V_STR  2
-#define V_TOK  3
-#define V_ERR  4
+#define V_ERR  3
+
+#define val_free(v)    ((v).v_type == V_STR ? str_free((v).v_str) : 0)