Lines Matching defs:proc
87 proc_list *proc;
90 for (proc = vp->procs; proc != NULL; proc = proc->next) {
95 ptype(proc->res_prefix, proc->res_type, 1);
98 pvname(proc->proc_name, vp->vers_num);
99 printarglist(proc, RESULT, "clnt", "CLIENT *");
101 printbody(proc);
114 printarglist(proc_list *proc, const char *result,
123 ptype(proc->args.decls->decl.prefix, proc->args.decls->decl.type, 1);
126 if (streq(proc->res_type, "void"))
129 ptype(proc->res_prefix, proc->res_type, 0);
130 f_print(fout, "%s%s, ", aster(proc->res_type),
136 if (!streq(proc->args.decls->decl.type, "void")) {
138 for (l = proc->args.decls; l != NULL; l = l->next)
139 pdeclaration(proc->args.argname,
143 if (streq(proc->res_type, "void"))
146 ptype(proc->res_prefix, proc->res_type, 0);
147 f_print(fout, "%s%s, ", aster(proc->res_type),
176 printbody(proc_list *proc)
179 bool_t args2 = (proc->arg_num > 1);
184 f_print(fout, "\t%s", proc->args.argname);
189 if (streq(proc->res_type, "void"))
192 ptype(proc->res_prefix, proc->res_type, 0);
198 ampr(proc->res_type), RESULT, RESULT);
199 if (newstyle && !args2 && (streq(proc->args.decls->decl.type, "void"))) {
203 proc->proc_name);
205 stringfix(proc->res_type), RESULT);
208 proc->proc_name);
211 stringfix(proc->res_type), ampr(proc->res_type),
218 for (l = proc->args.decls; l != NULL; l = l->next) {
225 proc->proc_name, proc->args.argname,
226 stringfix(proc->res_type), RESULT);
230 proc->proc_name, proc->args.argname,
231 stringfix(proc->res_type),
232 ampr(proc->res_type), RESULT);
238 proc->proc_name,
239 stringfix(proc->args.decls->decl.type),
241 (newstyle ? proc->args.decls->decl.name : "argp"),
242 stringfix(proc->res_type), RESULT);
246 proc->proc_name,
247 stringfix(proc->args.decls->decl.type),
249 (newstyle ? proc->args.decls->decl.name : "argp"),
250 stringfix(proc->res_type),
251 ampr(proc->res_type), RESULT);
257 if (streq(proc->res_type, "void"))
259 ampr(proc->res_type), RESULT);
262 ampr(proc->res_type), RESULT);