rpc_cout.c (149682) | rpc_cout.c (149709) |
---|---|
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 * --- 21 unchanged lines hidden (view full) --- 30#if 0 31#ifndef lint 32#ident "@(#)rpc_cout.c 1.14 93/07/05 SMI" 33static char sccsid[] = "@(#)rpc_cout.c 1.13 89/02/22 (C) 1987 SMI"; 34#endif 35#endif 36 37#include <sys/cdefs.h> | 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 * --- 21 unchanged lines hidden (view full) --- 30#if 0 31#ifndef lint 32#ident "@(#)rpc_cout.c 1.14 93/07/05 SMI" 33static char sccsid[] = "@(#)rpc_cout.c 1.13 89/02/22 (C) 1987 SMI"; 34#endif 35#endif 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/usr.bin/rpcgen/rpc_cout.c 149682 2005-08-31 20:45:15Z stefanf $"); | 38__FBSDID("$FreeBSD: head/usr.bin/rpcgen/rpc_cout.c 149709 2005-09-02 10:23:26Z stefanf $"); |
39 40/* 41 * rpc_cout.c, XDR routine outputter for the RPC protocol compiler 42 * Copyright (C) 1987, Sun Microsystems, Inc. 43 */ 44#include <ctype.h> 45#include <stdio.h> 46#include <string.h> --- 83 unchanged lines hidden (view full) --- 130 131static void 132print_generic_header(procname, pointerp) 133 char* procname; 134 int pointerp; 135{ 136 f_print(fout, "\n"); 137 f_print(fout, "bool_t\n"); | 39 40/* 41 * rpc_cout.c, XDR routine outputter for the RPC protocol compiler 42 * Copyright (C) 1987, Sun Microsystems, Inc. 43 */ 44#include <ctype.h> 45#include <stdio.h> 46#include <string.h> --- 83 unchanged lines hidden (view full) --- 130 131static void 132print_generic_header(procname, pointerp) 133 char* procname; 134 int pointerp; 135{ 136 f_print(fout, "\n"); 137 f_print(fout, "bool_t\n"); |
138 if (Cflag) { 139 f_print(fout, "xdr_%s(", procname); 140 f_print(fout, "register XDR *xdrs, "); 141 f_print(fout, "%s ", procname); 142 if (pointerp) 143 f_print(fout, "*"); 144 f_print(fout, "objp)\n{\n\n"); 145 } else { 146 f_print(fout, "xdr_%s(xdrs, objp)\n", procname); 147 f_print(fout, "\tregister XDR *xdrs;\n"); 148 f_print(fout, "\t%s ", procname); 149 if (pointerp) 150 f_print(fout, "*"); 151 f_print(fout, "objp;\n{\n\n"); 152 } | 138 f_print(fout, "xdr_%s(", procname); 139 f_print(fout, "register XDR *xdrs, "); 140 f_print(fout, "%s ", procname); 141 if (pointerp) 142 f_print(fout, "*"); 143 f_print(fout, "objp)\n{\n\n"); |
153} 154 155static void 156print_header(def) 157 definition *def; 158{ 159 print_generic_header(def->def_name, 160 def->def_kind != DEF_TYPEDEF || --- 601 unchanged lines hidden --- | 144} 145 146static void 147print_header(def) 148 definition *def; 149{ 150 print_generic_header(def->def_name, 151 def->def_kind != DEF_TYPEDEF || --- 601 unchanged lines hidden --- |