Deleted Added
full compact
rpc_parse.h (149682) rpc_parse.h (152398)
1/*
1/*
2 * $FreeBSD: head/usr.bin/rpcgen/rpc_parse.h 149682 2005-08-31 20:45:15Z stefanf $
2 * $FreeBSD: head/usr.bin/rpcgen/rpc_parse.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.

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

71 DEF_STRUCT,
72 DEF_UNION,
73 DEF_ENUM,
74 DEF_TYPEDEF,
75 DEF_PROGRAM
76};
77typedef enum defkind defkind;
78
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.

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

71 DEF_STRUCT,
72 DEF_UNION,
73 DEF_ENUM,
74 DEF_TYPEDEF,
75 DEF_PROGRAM
76};
77typedef enum defkind defkind;
78
79typedef char *const_def;
79typedef const char *const_def;
80
81enum relation {
82 REL_VECTOR, /* fixed length array */
83 REL_ARRAY, /* variable length array */
84 REL_POINTER, /* pointer */
85 REL_ALIAS, /* simple */
86};
87typedef enum relation relation;
88
89struct typedef_def {
80
81enum relation {
82 REL_VECTOR, /* fixed length array */
83 REL_ARRAY, /* variable length array */
84 REL_POINTER, /* pointer */
85 REL_ALIAS, /* simple */
86};
87typedef enum relation relation;
88
89struct typedef_def {
90 char *old_prefix;
91 char *old_type;
90 const char *old_prefix;
91 const char *old_type;
92 relation rel;
92 relation rel;
93 char *array_max;
93 const char *array_max;
94};
95typedef struct typedef_def typedef_def;
96
97struct enumval_list {
94};
95typedef struct typedef_def typedef_def;
96
97struct enumval_list {
98 char *name;
99 char *assignment;
98 const char *name;
99 const char *assignment;
100 struct enumval_list *next;
101};
102typedef struct enumval_list enumval_list;
103
104struct enum_def {
105 enumval_list *vals;
106};
107typedef struct enum_def enum_def;
108
109struct declaration {
100 struct enumval_list *next;
101};
102typedef struct enumval_list enumval_list;
103
104struct enum_def {
105 enumval_list *vals;
106};
107typedef struct enum_def enum_def;
108
109struct declaration {
110 char *prefix;
111 char *type;
112 char *name;
110 const char *prefix;
111 const char *type;
112 const char *name;
113 relation rel;
113 relation rel;
114 char *array_max;
114 const char *array_max;
115};
116typedef struct declaration declaration;
117
118struct decl_list {
119 declaration decl;
120 struct decl_list *next;
121};
122typedef struct decl_list decl_list;
123
124struct struct_def {
125 decl_list *decls;
126};
127typedef struct struct_def struct_def;
128
129struct case_list {
115};
116typedef struct declaration declaration;
117
118struct decl_list {
119 declaration decl;
120 struct decl_list *next;
121};
122typedef struct decl_list decl_list;
123
124struct struct_def {
125 decl_list *decls;
126};
127typedef struct struct_def struct_def;
128
129struct case_list {
130 char *case_name;
130 const char *case_name;
131 int contflag;
132 declaration case_decl;
133 struct case_list *next;
134};
135typedef struct case_list case_list;
136
137struct union_def {
138 declaration enum_decl;

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

144struct arg_list {
145 char *argname; /* name of struct for arg*/
146 decl_list *decls;
147};
148
149typedef struct arg_list arg_list;
150
151struct proc_list {
131 int contflag;
132 declaration case_decl;
133 struct case_list *next;
134};
135typedef struct case_list case_list;
136
137struct union_def {
138 declaration enum_decl;

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

144struct arg_list {
145 char *argname; /* name of struct for arg*/
146 decl_list *decls;
147};
148
149typedef struct arg_list arg_list;
150
151struct proc_list {
152 char *proc_name;
153 char *proc_num;
152 const char *proc_name;
153 const char *proc_num;
154 arg_list args;
155 int arg_num;
154 arg_list args;
155 int arg_num;
156 char *res_type;
157 char *res_prefix;
156 const char *res_type;
157 const char *res_prefix;
158 struct proc_list *next;
159};
160typedef struct proc_list proc_list;
161
162struct version_list {
158 struct proc_list *next;
159};
160typedef struct proc_list proc_list;
161
162struct version_list {
163 char *vers_name;
164 char *vers_num;
163 const char *vers_name;
164 const char *vers_num;
165 proc_list *procs;
166 struct version_list *next;
167};
168typedef struct version_list version_list;
169
170struct program_def {
165 proc_list *procs;
166 struct version_list *next;
167};
168typedef struct version_list version_list;
169
170struct program_def {
171 char *prog_num;
171 const char *prog_num;
172 version_list *versions;
173};
174typedef struct program_def program_def;
175
176struct definition {
172 version_list *versions;
173};
174typedef struct program_def program_def;
175
176struct definition {
177 char *def_name;
177 const char *def_name;
178 defkind def_kind;
179 union {
180 const_def co;
181 struct_def st;
182 union_def un;
183 enum_def en;
184 typedef_def ty;
185 program_def pr;
186 } def;
187};
188typedef struct definition definition;
189
190definition *get_definition(void);
191
192
193struct bas_type
194{
178 defkind def_kind;
179 union {
180 const_def co;
181 struct_def st;
182 union_def un;
183 enum_def en;
184 typedef_def ty;
185 program_def pr;
186 } def;
187};
188typedef struct definition definition;
189
190definition *get_definition(void);
191
192
193struct bas_type
194{
195 char *name;
195 const char *name;
196 int length;
197 struct bas_type *next;
198};
199
200typedef struct bas_type bas_type;
196 int length;
197 struct bas_type *next;
198};
199
200typedef struct bas_type bas_type;