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 * --- 29 unchanged lines hidden (view full) --- 38 * Copyright (C) 1987, Sun Microsytsems, Inc. 39 */ 40#include <stdio.h> 41#include <string.h> 42#include <rpc/types.h> 43#include "rpc_parse.h" 44#include "rpc_util.h" 45 |
46extern void pdeclaration __P(( char *, declaration *, int, char * )); |
47void printarglist __P(( proc_list *, char *, char *, char *)); |
48static void write_program __P(( definition * )); 49static void printbody __P(( proc_list * )); |
50 51static char RESULT[] = "clnt_res"; 52 53 54#define DEFAULT_TIMEOUT 25 /* in seconds */ 55 56 57void --- 9 unchanged lines hidden (view full) --- 67 for (l = defined; l != NULL; l = l->next) { 68 def = (definition *) l->val; 69 if (def->def_kind == DEF_PROGRAM) { 70 write_program(def); 71 } 72 } 73} 74 |
75static void |
76write_program(def) 77 definition *def; 78{ 79 version_list *vp; 80 proc_list *proc; 81 82 for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) { 83 for (proc = vp->procs; proc != NULL; proc = proc->next) { --- 129 unchanged lines hidden (view full) --- 213{ 214 if (isvectordef(type, REL_ALIAS)) { 215 return (""); 216 } else { 217 return ("&"); 218 } 219} 220 |
221static void |
222printbody(proc) 223 proc_list *proc; 224{ 225 decl_list *l; 226 bool_t args2 = (proc->arg_num > 1); |
227 228 /* 229 * For new style with multiple arguments, need a structure in which 230 * to stuff the arguments. 231 */ 232 233 234 if (newstyle && args2) { --- 96 unchanged lines hidden --- |