1 /* This file is part of the Project Athena Zephyr Notification System.
2 * It is one of the source files comprising zwgc, the Zephyr WindowGram
5 * Created by: Marc Horowitz <marc@athena.mit.edu>
9 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
10 * For copying and distribution information, see the file
15 #include <zephyr/mit-copyright.h>
20 #include "new_string.h"
23 * string eval_expr(Node *expr)
25 * Requires: expr is a proper expression (NOT NULL). (see node.c)
26 * Effects: Evaluates expr to its string value which is returned.
27 * The returned string is on the heap and must be freed
31 extern string eval_expr(Node *);
34 * int eval_bool_expr(Node *expr)
36 * Requires: expr is a proper expression or NULL. (see node.c)
37 * Effects: Evaluates expr to its boolean value which is returned.
38 * NULL is defined to have the boolean value true.
41 extern int eval_bool_expr(Node *);