Deleted Added
full compact
rpc_cout.c (207733) rpc_cout.c (298089)
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 207733 2010-05-06 21:57:38Z delphij $");
38__FBSDID("$FreeBSD: head/usr.bin/rpcgen/rpc_cout.c 298089 2016-04-15 22:31:22Z pfg $");
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>

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

76 /*
77 * now we need to handle declarations like
78 * struct typedef foo foo;
79 * since we dont want this to be expanded into 2 calls to xdr_foo
80 */
81
82 if (strcmp(def->def.ty.old_type, def->def_name) == 0)
83 return;
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>

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

76 /*
77 * now we need to handle declarations like
78 * struct typedef foo foo;
79 * since we dont want this to be expanded into 2 calls to xdr_foo
80 */
81
82 if (strcmp(def->def.ty.old_type, def->def_name) == 0)
83 return;
84 };
84 }
85 print_header(def);
86 switch (def->def_kind) {
87 case DEF_UNION:
88 emit_union(def);
89 break;
90 case DEF_ENUM:
91 emit_enum(def);
92 break;

--- 627 unchanged lines hidden ---
85 print_header(def);
86 switch (def->def_kind) {
87 case DEF_UNION:
88 emit_union(def);
89 break;
90 case DEF_ENUM:
91 emit_enum(def);
92 break;

--- 627 unchanged lines hidden ---