File: token.h

package info (click to toggle)
zmailer 2.99.51.52pre3-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 16,596 kB
  • ctags: 7,422
  • sloc: ansic: 90,470; sh: 3,608; makefile: 2,784; perl: 1,585; python: 115; awk: 22
file content (23 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 *	Copyright 1990 by Rayan S. Zachariassen, all rights reserved.
 *	This will be free software, but only when it is finished.
 */

#ifndef	Z_TOKEN_H
#define	Z_TOKEN_H

typedef enum {
	Atom, Comment, DomainLiteral, Error, Fold,
	Line, String, Space, Special, Word, Empty
} TokenType;

/* #define token822 struct _token822 */

typedef struct _token822 {
	const char	*t_pname;		/* printable representation */
	u_long		 t_len;			/* length (0 if malloc'ed) */
	TokenType	 t_type;		/* information on token type */
	struct _token822 *t_next;
} token822;

#endif	/* Z_TOKEN_H */