home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / research / external / rpc / rpc_xdr.h < prev   
Encoding:
C/C++ Source or Header  |  1997-07-08  |  1.5 KB  |  65 lines

  1. /*
  2.  * rpc_xdr.h
  3.  *
  4.  *    $Id: rpc_xdr.h,v 1.2 1997/01/18 08:23:00 ali Exp $
  5.  */
  6.  
  7. /*
  8.    Copyright (c) 1990-1997, Research Systems Inc.  All rights reserved.
  9.   This software includes information which is proprietary to and a
  10.   trade secret of Research Systems, Inc.  It is not to be disclosed
  11.   to anyone outside of this organization. Reproduction by any means
  12.   whatsoever is  prohibited without express written permission.
  13.   */
  14.  
  15.  
  16. #ifndef _RPC_IDL_XDR_
  17. #define _RPC_IDL_XDR_
  18.  
  19. /*
  20.  * Nothing here yet
  21.  */
  22.  
  23.  
  24. /* Mips Ultrix screws up float and double data */
  25. #if defined(cow) || defined(AUX)
  26. #define XDR_MIPS_HACK
  27. #define XDR_FLOAT xdr_long
  28. typedef long XDR_FLOAT_TYPE;
  29. #define XDR_DOUBLE IDL_RPC_xdr_mips_double
  30. #else
  31. typedef float XDR_FLOAT_TYPE;
  32. #endif
  33.  
  34.  
  35. /* Vax Ultrix screws up floating 0.0 */
  36. #if defined(vax) && defined(ultrix)
  37. #define XDR_FLOAT IDL_xdr_vax_ultrix_float
  38. #endif
  39.  
  40.  
  41. #ifndef XDR_FLOAT        /* Machines with correct xdr_float() */
  42. #define XDR_FLOAT xdr_float
  43. #endif
  44.  
  45. #ifndef XDR_DOUBLE        /* Machines with correct xdr_double() */
  46. #define XDR_DOUBLE xdr_double
  47. #endif
  48.  
  49. /* On 64-bit systems, use xdr_int() instead of xdr_long() */
  50. #ifdef LONG_NOT_32
  51. #define XDR_LONG xdr_int
  52. #else
  53. #define XDR_LONG xdr_long
  54. #endif
  55.  
  56. bool_t IDL_RPC_xdr_line_s (XDR *xdrs, IDL_RPC_LINE_S *pLine);
  57. bool_t IDL_RPC_xdr_variable(XDR *xdrs, IDL_RPC_VARIABLE *pVar);
  58. bool_t IDL_RPC_xdr_vptr(XDR *xdrs, IDL_VPTR *pVar);
  59. static bool_t IDL_RPC_xdr_array(XDR *xdrsp, IDL_VPTR pVar);
  60. publish bool_t IDL_RPC_xdr_mips_double( XDR *xdrs, double *p);
  61. #endif
  62.  
  63.  
  64.  
  65.