[BACK]Return to rpc_cout.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rpcgen

Diff for /src/usr.bin/rpcgen/rpc_cout.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:38:35 version 1.3, 1996/12/10 15:29:34
Line 1 
Line 1 
 /*      $OpenBSD$       */  /*      $OpenBSD$       */
 /*      $NetBSD: rpc_cout.c,v 1.5 1995/08/29 23:05:49 cgd Exp $ */  /*      $NetBSD: rpc_cout.c,v 1.6 1996/10/01 04:13:53 cgd Exp $ */
 /*  /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for   * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  * unrestricted use provided that this legend is included on all tape   * unrestricted use provided that this legend is included on all tape
Line 174 
Line 174 
         if (inline == 0)          if (inline == 0)
                 return;                  return;
         /* May cause lint to complain. but  ... */          /* May cause lint to complain. but  ... */
         f_print(fout, "\t register long *buf;\n\n");          f_print(fout, "\t register int32_t *buf;\n\n");
   
 }  }
   
Line 529 
Line 529 
                                                 /* were already looking at a                                                  /* were already looking at a
                                                  * xdr_inlineable structure */                                                   * xdr_inlineable structure */
                                                 if (sizestr == NULL)                                                  if (sizestr == NULL)
                                                         f_print(fout, "\t buf = (long *)XDR_INLINE(xdrs,%d * BYTES_PER_XDR_UNIT);",                                                          f_print(fout, "\t buf = (int32_t *)XDR_INLINE(xdrs,%d * BYTES_PER_XDR_UNIT);",
                                                             size);                                                              size);
                                                 else                                                  else
                                                         if (size == 0)                                                          if (size == 0)
                                                                 f_print(fout,                                                                  f_print(fout,
                                                                     "\t buf = (long *)XDR_INLINE(xdrs,%s * BYTES_PER_XDR_UNIT);",                                                                      "\t buf = (int32_t *)XDR_INLINE(xdrs,%s * BYTES_PER_XDR_UNIT);",
                                                                     sizestr);                                                                      sizestr);
                                                         else                                                          else
                                                                 f_print(fout,                                                                  f_print(fout,
                                                                     "\t buf = (long *)XDR_INLINE(xdrs,(%d + %s)* BYTES_PER_XDR_UNIT);",                                                                      "\t buf = (int32_t *)XDR_INLINE(xdrs,(%d + %s)* BYTES_PER_XDR_UNIT);",
                                                                     size, sizestr);                                                                      size, sizestr);
   
                                                 f_print(fout, "\n\t   if (buf == NULL) {\n");                                                  f_print(fout, "\n\t   if (buf == NULL) {\n");
Line 579 
Line 579 
                                 /* were already looking at a xdr_inlineable                                  /* were already looking at a xdr_inlineable
                                  * structure */                                   * structure */
                                 if (sizestr == NULL)                                  if (sizestr == NULL)
                                         f_print(fout, "\t\tbuf = (long *)XDR_INLINE(xdrs,%d * BYTES_PER_XDR_UNIT);",                                          f_print(fout, "\t\tbuf = (int32_t *)XDR_INLINE(xdrs,%d * BYTES_PER_XDR_UNIT);",
                                             size);                                              size);
                                 else                                  else
                                         if (size == 0)                                          if (size == 0)
                                                 f_print(fout,                                                  f_print(fout,
                                                     "\t\tbuf = (long *)XDR_INLINE(xdrs,%s * BYTES_PER_XDR_UNIT);",                                                      "\t\tbuf = (int32_t *)XDR_INLINE(xdrs,%s * BYTES_PER_XDR_UNIT);",
                                                     sizestr);                                                      sizestr);
                                         else                                          else
                                                 f_print(fout,                                                  f_print(fout,
                                                     "\t\tbuf = (long *)XDR_INLINE(xdrs,(%d + %s)* BYTES_PER_XDR_UNIT);",                                                      "\t\tbuf = (int32_t *)XDR_INLINE(xdrs,(%d + %s)* BYTES_PER_XDR_UNIT);",
                                                     size, sizestr);                                                      size, sizestr);
   
                                 f_print(fout, "\n\t\tif (buf == NULL) {\n");                                  f_print(fout, "\n\t\tif (buf == NULL) {\n");

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3