rpc_scan.h (149682) | rpc_scan.h (152398) |
---|---|
1/* | 1/* |
2 * $FreeBSD: head/usr.bin/rpcgen/rpc_scan.h 149682 2005-08-31 20:45:15Z stefanf $ | 2 * $FreeBSD: head/usr.bin/rpcgen/rpc_scan.h 152398 2005-11-13 21:17:24Z dwmalone $ |
3 */ 4/* 5 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 6 * unrestricted use provided that this legend is included on all tape 7 * media and as a part of the software program in whole or part. Users 8 * may copy or modify Sun RPC without charge, but are not authorized 9 * to license or distribute it to anyone else except as part of a product or 10 * program developed by the user. --- 103 unchanged lines hidden (view full) --- 114}; 115typedef enum tok_kind tok_kind; 116 117/* 118 * a token 119 */ 120struct token { 121 tok_kind kind; | 3 */ 4/* 5 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 6 * unrestricted use provided that this legend is included on all tape 7 * media and as a part of the software program in whole or part. Users 8 * may copy or modify Sun RPC without charge, but are not authorized 9 * to license or distribute it to anyone else except as part of a product or 10 * program developed by the user. --- 103 unchanged lines hidden (view full) --- 114}; 115typedef enum tok_kind tok_kind; 116 117/* 118 * a token 119 */ 120struct token { 121 tok_kind kind; |
122 char *str; | 122 const char *str; |
123}; 124typedef struct token token; 125 126 127/* 128 * routine interface 129 */ 130void scan(tok_kind expect, token *tokp); 131void scan2(tok_kind expect1, tok_kind expect2, token *tokp); 132void scan3(tok_kind expect1, tok_kind expect2, tok_kind expect3, token *tokp); 133void scan_num(token *tokp); 134void peek(token *tokp); 135int peekscan(tok_kind expect, token *tokp); 136void get_token(token *tokp); | 123}; 124typedef struct token token; 125 126 127/* 128 * routine interface 129 */ 130void scan(tok_kind expect, token *tokp); 131void scan2(tok_kind expect1, tok_kind expect2, token *tokp); 132void scan3(tok_kind expect1, tok_kind expect2, tok_kind expect3, token *tokp); 133void scan_num(token *tokp); 134void peek(token *tokp); 135int peekscan(tok_kind expect, token *tokp); 136void get_token(token *tokp); |