Deleted Added
full compact
rpc_parse.h (8874) rpc_parse.h (12798)
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.
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 *
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.
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.
12 *
12 *
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.
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.
16 *
16 *
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.
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.
20 *
20 *
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.
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.
24 *
24 *
25 * Sun Microsystems, Inc.
26 * 2550 Garcia Avenue
27 * Mountain View, California 94043
25 * Sun Microsystems, Inc.
26 * 2550 Garcia Avenue
27 * Mountain View, California 94043
28 *
29 * from: @(#)rpc_parse.h 1.3 87/03/09 (C) 1987 SMI
30 * $Id: rpc_parse.h,v 1.1 1994/08/07 18:01:33 wollman Exp $
31 */
28 */
29#pragma ident "@(#)rpc_parse.h 1.10 94/05/15 SMI"
32
30
31/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
32/* All Rights Reserved */
33
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. */
37
38
39/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
40* PROPRIETARY NOTICE (Combined)
41*
42* This source code is unpublished proprietary information
43* constituting, or derived under license from AT&T's UNIX(r) System V.
44* In addition, portions of such source code were derived from Berkeley
45* 4.3 BSD under license from the Regents of the University of
46* California.
47*
48*
49*
50* Copyright Notice
51*
52* Notice of copyright on this source code product does not indicate
53* publication.
54*
55* (c) 1986,1987,1988.1989 Sun Microsystems, Inc
56* (c) 1983,1984,1985,1986,1987,1988,1989 AT&T.
57* All rights reserved.
58*/
59
60/* @(#)rpc_parse.h 1.3 90/08/29 (C) 1987 SMI */
61
33/*
62/*
34 * rpc_parse.h, Definitions for the RPCL parser
35 * Copyright (C) 1987, Sun Microsystems, Inc.
63 * rpc_parse.h, Definitions for the RPCL parser
36 */
37
38enum defkind {
39 DEF_CONST,
40 DEF_STRUCT,
41 DEF_UNION,
42 DEF_ENUM,
43 DEF_TYPEDEF,

--- 14 unchanged lines hidden (view full) ---

58struct typedef_def {
59 char *old_prefix;
60 char *old_type;
61 relation rel;
62 char *array_max;
63};
64typedef struct typedef_def typedef_def;
65
64 */
65
66enum defkind {
67 DEF_CONST,
68 DEF_STRUCT,
69 DEF_UNION,
70 DEF_ENUM,
71 DEF_TYPEDEF,

--- 14 unchanged lines hidden (view full) ---

86struct typedef_def {
87 char *old_prefix;
88 char *old_type;
89 relation rel;
90 char *array_max;
91};
92typedef struct typedef_def typedef_def;
93
66
67struct enumval_list {
68 char *name;
69 char *assignment;
70 struct enumval_list *next;
71};
72typedef struct enumval_list enumval_list;
73
74struct enum_def {
75 enumval_list *vals;
76};
77typedef struct enum_def enum_def;
78
94struct enumval_list {
95 char *name;
96 char *assignment;
97 struct enumval_list *next;
98};
99typedef struct enumval_list enumval_list;
100
101struct enum_def {
102 enumval_list *vals;
103};
104typedef struct enum_def enum_def;
105
79
80struct declaration {
81 char *prefix;
82 char *type;
83 char *name;
84 relation rel;
85 char *array_max;
86};
87typedef struct declaration declaration;
88
106struct declaration {
107 char *prefix;
108 char *type;
109 char *name;
110 relation rel;
111 char *array_max;
112};
113typedef struct declaration declaration;
114
89
90struct decl_list {
91 declaration decl;
92 struct decl_list *next;
93};
94typedef struct decl_list decl_list;
95
96struct struct_def {
97 decl_list *decls;
98};
99typedef struct struct_def struct_def;
100
115struct decl_list {
116 declaration decl;
117 struct decl_list *next;
118};
119typedef struct decl_list decl_list;
120
121struct struct_def {
122 decl_list *decls;
123};
124typedef struct struct_def struct_def;
125
101
102struct case_list {
103 char *case_name;
126struct case_list {
127 char *case_name;
128 int contflag;
104 declaration case_decl;
105 struct case_list *next;
106};
107typedef struct case_list case_list;
108
109struct union_def {
110 declaration enum_decl;
111 case_list *cases;
112 declaration *default_decl;
113};
114typedef struct union_def union_def;
115
129 declaration case_decl;
130 struct case_list *next;
131};
132typedef struct case_list case_list;
133
134struct union_def {
135 declaration enum_decl;
136 case_list *cases;
137 declaration *default_decl;
138};
139typedef struct union_def union_def;
140
141struct arg_list {
142 char *argname; /* name of struct for arg*/
143 decl_list *decls;
144};
145
146typedef struct arg_list arg_list;
116
147
117
118struct proc_list {
119 char *proc_name;
120 char *proc_num;
148struct proc_list {
149 char *proc_name;
150 char *proc_num;
121 char *arg_type;
122 char *arg_prefix;
151 arg_list args;
152 int arg_num;
123 char *res_type;
124 char *res_prefix;
125 struct proc_list *next;
126};
127typedef struct proc_list proc_list;
128
153 char *res_type;
154 char *res_prefix;
155 struct proc_list *next;
156};
157typedef struct proc_list proc_list;
158
129
130struct version_list {
131 char *vers_name;
132 char *vers_num;
133 proc_list *procs;
134 struct version_list *next;
135};
136typedef struct version_list version_list;
137

--- 12 unchanged lines hidden (view full) ---

150 union_def un;
151 enum_def en;
152 typedef_def ty;
153 program_def pr;
154 } def;
155};
156typedef struct definition definition;
157
159struct version_list {
160 char *vers_name;
161 char *vers_num;
162 proc_list *procs;
163 struct version_list *next;
164};
165typedef struct version_list version_list;
166

--- 12 unchanged lines hidden (view full) ---

179 union_def un;
180 enum_def en;
181 typedef_def ty;
182 program_def pr;
183 } def;
184};
185typedef struct definition definition;
186
158/* @(#)rpc_parse.h 2.1 88/08/01 4.0 RPCSRC */
159definition *get_definition();
187definition *get_definition();
188
189
190struct bas_type
191{
192 char *name;
193 int length;
194 struct bas_type *next;
195};
196
197typedef struct bas_type bas_type;