rpc_tblout.c (17142) | rpc_tblout.c (27935) |
---|---|
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 * --- 16 unchanged lines hidden (view full) --- 25 * Sun Microsystems, Inc. 26 * 2550 Garcia Avenue 27 * Mountain View, California 94043 28 */ 29 30#ident "@(#)rpc_tblout.c 1.11 93/07/05 SMI" 31 32#ifndef lint | 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 * --- 16 unchanged lines hidden (view full) --- 25 * Sun Microsystems, Inc. 26 * 2550 Garcia Avenue 27 * Mountain View, California 94043 28 */ 29 30#ident "@(#)rpc_tblout.c 1.11 93/07/05 SMI" 31 32#ifndef lint |
33#if 0 |
|
33static char sccsid[] = "@(#)rpc_tblout.c 1.4 89/02/22 (C) 1988 SMI"; 34#endif | 34static char sccsid[] = "@(#)rpc_tblout.c 1.4 89/02/22 (C) 1988 SMI"; 35#endif |
36static const char rcsid[] = 37 "$Id$"; 38#endif |
|
35 36/* 37 * rpc_tblout.c, Dispatch table outputter for the RPC protocol compiler 38 * Copyright (C) 1989, Sun Microsystems, Inc. 39 */ | 39 40/* 41 * rpc_tblout.c, Dispatch table outputter for the RPC protocol compiler 42 * Copyright (C) 1989, Sun Microsystems, Inc. 43 */ |
44#include <err.h> |
|
40#include <stdio.h> 41#include <string.h> 42#include "rpc_parse.h" 43#include "rpc_util.h" 44 45#define TABSIZE 8 46#define TABCOUNT 5 47#define TABSTOP (TABSIZE*TABCOUNT) --- 54 unchanged lines hidden (view full) --- 102 f_print(fout, null_entry); 103 } 104 for (proc = vp->procs; proc != NULL; proc = proc->next) { 105 current = atoi(proc->proc_num); 106 if (current != expected++) { 107 f_print(fout, 108 "\n/*\n * WARNING: table out of order\n */\n"); 109 if (warning == 0) { | 45#include <stdio.h> 46#include <string.h> 47#include "rpc_parse.h" 48#include "rpc_util.h" 49 50#define TABSIZE 8 51#define TABCOUNT 5 52#define TABSTOP (TABSIZE*TABCOUNT) --- 54 unchanged lines hidden (view full) --- 107 f_print(fout, null_entry); 108 } 109 for (proc = vp->procs; proc != NULL; proc = proc->next) { 110 current = atoi(proc->proc_num); 111 if (current != expected++) { 112 f_print(fout, 113 "\n/*\n * WARNING: table out of order\n */\n"); 114 if (warning == 0) { |
110 f_print(stderr, 111 "WARNING %s table is out of order\n", 112 progvers); | 115 warnx("WARNING %s table is out of order", progvers); |
113 warning = 1; 114 nonfatalerrors = 1; 115 } 116 expected = current + 1; 117 } 118 f_print(fout, "\n\t(char *(*)())RPCGEN_ACTION("); 119 120 /* routine to invoke */ --- 52 unchanged lines hidden --- | 116 warning = 1; 117 nonfatalerrors = 1; 118 } 119 expected = current + 1; 120 } 121 f_print(fout, "\n\t(char *(*)())RPCGEN_ACTION("); 122 123 /* routine to invoke */ --- 52 unchanged lines hidden --- |