- Embed ether vlan tag in mbuf packet header. Add an mbuf flag to mark that
[dfdiff.git] / usr.bin / rpcgen / rpc_scan.h
blob32a5bb683c6955c4fef49500ef90a9ff402c8edf
1 /*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
10 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
11 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
13 * Sun RPC is provided with no support and without any obligation on the
14 * part of Sun Microsystems, Inc. to assist in its use, correction,
15 * modification or enhancement.
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
19 * OR ANY PART THEREOF.
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
22 * or profits or other special, indirect and consequential damages, even if
23 * Sun has been advised of the possibility of such damages.
25 * Sun Microsystems, Inc.
26 * 2550 Garcia Avenue
27 * Mountain View, California 94043
29 #pragma ident "@(#)rpc_scan.h 1.11 94/05/15 SMI"
31 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
32 /* All Rights Reserved */
34 /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
35 /* The copyright notice above does not evidence any */
36 /* actual or intended publication of such source code. */
40 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
41 * PROPRIETARY NOTICE (Combined)
43 * This source code is unpublished proprietary information
44 * constituting, or derived under license from AT&T's UNIX(r) System V.
45 * In addition, portions of such source code were derived from Berkeley
46 * 4.3 BSD under license from the Regents of the University of
47 * California.
51 * Copyright Notice
53 * Notice of copyright on this source code product does not indicate
54 * publication.
56 * (c) 1986,1987,1988.1989 Sun Microsystems, Inc
57 * (c) 1983,1984,1985,1986,1987,1988,1989 AT&T.
58 * All rights reserved.
59 */
61 /* @(#)rpc_scan.h 1.3 90/08/29 (C) 1987 SMI */
62 /* $DragonFly: src/usr.bin/rpcgen/rpc_scan.h,v 1.2 2004/06/19 16:40:36 joerg Exp $ */
65 * rpc_scan.h, Definitions for the RPCL scanner
68 #ifndef RPC_SCAN
69 #define RPC_SCAN
72 * kinds of tokens
74 enum tok_kind {
75 TOK_IDENT,
76 TOK_CHARCONST,
77 TOK_STRCONST,
78 TOK_LPAREN,
79 TOK_RPAREN,
80 TOK_LBRACE,
81 TOK_RBRACE,
82 TOK_LBRACKET,
83 TOK_RBRACKET,
84 TOK_LANGLE,
85 TOK_RANGLE,
86 TOK_STAR,
87 TOK_COMMA,
88 TOK_EQUAL,
89 TOK_COLON,
90 TOK_SEMICOLON,
91 TOK_CONST,
92 TOK_STRUCT,
93 TOK_UNION,
94 TOK_SWITCH,
95 TOK_CASE,
96 TOK_DEFAULT,
97 TOK_ENUM,
98 TOK_TYPEDEF,
99 TOK_INT,
100 TOK_SHORT,
101 TOK_LONG,
102 TOK_HYPER,
103 TOK_UNSIGNED,
104 TOK_FLOAT,
105 TOK_DOUBLE,
106 TOK_QUAD,
107 TOK_OPAQUE,
108 TOK_CHAR,
109 TOK_STRING,
110 TOK_BOOL,
111 TOK_VOID,
112 TOK_PROGRAM,
113 TOK_VERSION,
114 TOK_EOF
116 typedef enum tok_kind tok_kind;
119 * a token
121 struct token {
122 tok_kind kind;
123 char *str;
125 typedef struct token token;
129 * routine interface
131 void scan();
132 void scan2();
133 void scan3();
134 void scan_num();
135 void peek();
136 int peekscan();
137 void get_token();
139 #endif