Print this page
rpcgen should only produce ANSI code

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/rpcgen/rpc_tblout.c
          +++ new/usr/src/cmd/rpcgen/rpc_tblout.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  27   29  /* All Rights Reserved */
  28   30  /*
  29   31   * University Copyright- Copyright (c) 1982, 1986, 1988
  30   32   * The Regents of the University of California
  31   33   * All Rights Reserved
  32   34   *
↓ open down ↓ 92 lines elided ↑ open up ↑
 125  127                                  expected = current + 1;
 126  128                          }
 127  129                          if (tirpcflag)
 128  130                                  f_print(fout,
 129  131                                      "\n\t(void *(*)())RPCGEN_ACTION(");
 130  132                          else
 131  133                                  f_print(fout,
 132  134                                      "\n\t(char *(*)())RPCGEN_ACTION(");
 133  135  
 134  136                          /* routine to invoke */
 135      -                        if (Cflag && !newstyle)
      137 +                        if (!newstyle)
 136  138                                  pvname_svc(proc->proc_name, vp->vers_num);
 137  139                          else {
 138  140                                  if (newstyle) /* calls internal func */
 139  141                                          f_print(fout, "_");
 140  142                                  pvname(proc->proc_name, vp->vers_num);
 141  143                          }
 142  144                          f_print(fout, "),\n");
 143  145  
 144  146                          /* argument info */
 145  147                          if (proc->arg_num > 1)
↓ open down ↓ 46 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX