]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/zwgc/formatter.h
r4264@bucket (orig r254): kcr | 2008-01-20 22:11:44 -0500
[1ts-debian.git] / zephyr / zwgc / formatter.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 #include "new_string.h"
18
19 #ifndef formatter_MODULE
20 #define formatter_MODULE
21
22 typedef struct _desctype {
23     struct _desctype *next;
24
25     short int code;
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.             */
31     
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 */
35 } desctype;
36
37 extern desctype *disp_get_cmds(char *, int *, int *);
38 extern void free_desc(desctype *);
39
40 extern string protect(string);
41 extern string verbatim(string, int);
42 extern string stylestrip(string);
43 #endif