rpc_tblout.c (12796) | rpc_tblout.c (17142) |
---|---|
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 * --- 44 unchanged lines hidden (view full) --- 53 54static char null_entry[] = "\n\t(char *(*)())0,\n\ 55 \t(xdrproc_t) xdr_void,\t\t\t0,\n\ 56 \t(xdrproc_t) xdr_void,\t\t\t0,\n"; 57 58 59static char tbl_nproc[] = "int %s_nproc =\n\tsizeof(%s_table)/sizeof(%s_table[0]);\n\n"; 60 | 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 * --- 44 unchanged lines hidden (view full) --- 53 54static char null_entry[] = "\n\t(char *(*)())0,\n\ 55 \t(xdrproc_t) xdr_void,\t\t\t0,\n\ 56 \t(xdrproc_t) xdr_void,\t\t\t0,\n"; 57 58 59static char tbl_nproc[] = "int %s_nproc =\n\tsizeof(%s_table)/sizeof(%s_table[0]);\n\n"; 60 |
61static int write_table __P(( definition * )); 62static int printit __P(( char *, char * )); | 61extern int nullproc __P(( proc_list * )); 62static void write_table __P(( definition * )); 63static void printit __P(( char *, char * )); |
63 64void 65write_tables() 66{ 67 list *l; 68 definition *def; 69 70 f_print(fout, "\n"); 71 for (l = defined; l != NULL; l = l->next) { 72 def = (definition *) l->val; 73 if (def->def_kind == DEF_PROGRAM) { 74 write_table(def); 75 } 76 } 77} 78 | 64 65void 66write_tables() 67{ 68 list *l; 69 definition *def; 70 71 f_print(fout, "\n"); 72 for (l = defined; l != NULL; l = l->next) { 73 def = (definition *) l->val; 74 if (def->def_kind == DEF_PROGRAM) { 75 write_table(def); 76 } 77 } 78} 79 |
79static | 80static void |
80write_table(def) 81 definition *def; 82{ 83 version_list *vp; 84 proc_list *proc; 85 int current; 86 int expected; 87 char progvers[100]; --- 50 unchanged lines hidden (view full) --- 138 } 139 140 /* print the table trailer */ 141 f_print(fout, tbl_end); 142 f_print(fout, tbl_nproc, progvers, progvers, progvers); 143 } 144} 145 | 81write_table(def) 82 definition *def; 83{ 84 version_list *vp; 85 proc_list *proc; 86 int current; 87 int expected; 88 char progvers[100]; --- 50 unchanged lines hidden (view full) --- 139 } 140 141 /* print the table trailer */ 142 f_print(fout, tbl_end); 143 f_print(fout, tbl_nproc, progvers, progvers, progvers); 144 } 145} 146 |
146static | 147static void |
147printit(prefix, type) 148 char *prefix; 149 char *type; 150{ 151 int len; 152 int tabs; 153 154 --- 17 unchanged lines hidden --- | 148printit(prefix, type) 149 char *prefix; 150 char *type; 151{ 152 int len; 153 int tabs; 154 155 --- 17 unchanged lines hidden --- |