4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or
9 * program developed by the user.
11 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
12 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
13 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
15 * Sun RPC is provided with no support and without any obligation on the
16 * part of Sun Microsystems, Inc. to assist in its use, correction,
17 * modification or enhancement.
19 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
20 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
21 * OR ANY PART THEREOF.
23 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24 * or profits or other special, indirect and consequential damages, even if
25 * Sun has been advised of the possibility of such damages.
27 * Sun Microsystems, Inc.
29 * Mountain View, California 94043
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
53 * Notice of copyright on this source code product does not indicate
56 * (c) 1986,1987,1988.1989 Sun Microsystems, Inc
57 * (c) 1983,1984,1985,1986,1987,1988,1989 AT&T.
58 * All rights reserved.
62 * rpc_scan.h, Definitions for the RPCL scanner
110 typedef enum tok_kind tok_kind;
119 typedef struct token token;
125 void scan(tok_kind expect, token *tokp);
126 void scan2(tok_kind expect1, tok_kind expect2, token *tokp);
127 void scan3(tok_kind expect1, tok_kind expect2, tok_kind expect3, token *tokp);
128 void scan_num(token *tokp);
129 void peek(token *tokp);
130 int peekscan(tok_kind expect, token *tokp);
131 void get_token(token *tokp);