adding zephyr-im master branch

This commit is contained in:
2022-07-25 09:01:27 -06:00
parent 61f5ed8f01
commit ee1236fa5c
311 changed files with 62265 additions and 0 deletions

43
zwgc/formatter.h Normal file
View 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>
#include "new_string.h"
#ifndef formatter_MODULE
#define formatter_MODULE
typedef struct _desctype {
struct _desctype *next;
short int code;
#define DT_EOF 0 /* End of message. */
#define DT_ENV 1 /* Open environment. */
#define DT_STR 2 /* Display string. */
#define DT_END 3 /* Close environment. */
#define DT_NL 4 /* Newline. */
char *str; /* Name of environment, string to be displayed. */
int len; /* Length of string/environment name for
ENV, STR, END. Undefined for EOF */
} desctype;
extern desctype *disp_get_cmds(char *, int *, int *);
extern void free_desc(desctype *);
extern string protect(string);
extern string verbatim(string, int);
extern string stylestrip(string);
#endif