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>
17 #include "new_string.h"
19 #ifndef formatter_MODULE
20 #define formatter_MODULE
22 typedef struct _desctype {
23 struct _desctype *next;
26 #define DT_EOF 0 /* End of message. */
27 #define DT_ENV 1 /* Open environment. */
28 #define DT_STR 2 /* Display string. */
29 #define DT_END 3 /* Close environment. */
30 #define DT_NL 4 /* Newline. */
32 char *str; /* Name of environment, string to be displayed. */
33 int len; /* Length of string/environment name for
34 ENV, STR, END. Undefined for EOF */
37 extern desctype *disp_get_cmds(char *, int *, int *);
38 extern void free_desc(desctype *);
40 extern string protect(string);
41 extern string verbatim(string, int);
42 extern string stylestrip(string);