adding zephyr-im master branch
This commit is contained in:
43
zwgc/eval.h
Normal file
43
zwgc/eval.h
Normal file
@ -0,0 +1,43 @@
|
||||
/* This file is part of the Project Athena Zephyr Notification System.
|
||||
* It is one of the source files comprising zwgc, the Zephyr WindowGram
|
||||
* client.
|
||||
*
|
||||
* Created by: Marc Horowitz <marc@athena.mit.edu>
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (c) 1989 by the Massachusetts Institute of Technology.
|
||||
* For copying and distribution information, see the file
|
||||
* "mit-copyright.h".
|
||||
*/
|
||||
|
||||
|
||||
#include <zephyr/mit-copyright.h>
|
||||
|
||||
#ifndef eval_MODULE
|
||||
#define eval_MODULE
|
||||
|
||||
#include "new_string.h"
|
||||
|
||||
/*
|
||||
* string eval_expr(Node *expr)
|
||||
* Modifies: dict
|
||||
* Requires: expr is a proper expression (NOT NULL). (see node.c)
|
||||
* Effects: Evaluates expr to its string value which is returned.
|
||||
* The returned string is on the heap and must be freed
|
||||
* eventually.
|
||||
*/
|
||||
|
||||
extern string eval_expr(Node *);
|
||||
|
||||
/*
|
||||
* int eval_bool_expr(Node *expr)
|
||||
* Modifies: dict
|
||||
* Requires: expr is a proper expression or NULL. (see node.c)
|
||||
* Effects: Evaluates expr to its boolean value which is returned.
|
||||
* NULL is defined to have the boolean value true.
|
||||
*/
|
||||
|
||||
extern int eval_bool_expr(Node *);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user