]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/zwgc/eval.h
d664794bf898f7cc1a6fc9999cb1c86eb103bd2f
[1ts-debian.git] / zephyr / zwgc / eval.h
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
3  * client.
4  *
5  *      Created by:     Marc Horowitz <marc@athena.mit.edu>
6  *
7  *      $Id$
8  *
9  *      Copyright (c) 1989 by the Massachusetts Institute of Technology.
10  *      For copying and distribution information, see the file
11  *      "mit-copyright.h".
12  */
13
14
15 #include <zephyr/mit-copyright.h>
16
17 #ifndef eval_MODULE
18 #define eval_MODULE
19
20 #include "new_string.h"
21
22 /*
23  *    string eval_expr(Node *expr)
24  *        Modifies: dict
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
28  *                 eventually.
29  */
30
31 extern string eval_expr();
32
33 /*
34  *    int eval_bool_expr(Node *expr)
35  *        Modifies: dict
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.
39  */
40
41 extern int eval_bool_expr();
42
43 #endif