home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre4.z / postgre4 / src / lib / H / obsolete / conv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  1.6 KB  |  93 lines

  1. #ifndef    ConvIncluded    /* Include this file only once */
  2. #define ConvIncluded    1
  3.     
  4. /* ----------------
  5.  *    THIS FILE IS GOING AWAY.  -cim 6/8/90
  6.  * ----------------
  7.  */
  8.  
  9. #define CONV_H_OBSOLETE 1    
  10. #define CONV_H_OBSOLETE 2
  11.  
  12. #if 0
  13. /*
  14.  * conv.h --
  15.  *    Internal/external data conversion definitions.
  16.  *
  17.  * Identification:
  18.  *    $Header: /private/postgres/src/lib/H/obsolete/RCS/conv.h,v 1.1 1990/06/12 21:25:03 cimarron Version_2 $
  19.  */
  20.  
  21. #ifndef C_H
  22. #include "c.h"
  23. #endif
  24.  
  25. typedef Pointer    External;
  26. typedef Pointer    Internal;        /* this is called Datum, elsewhere */
  27. typedef int16    InternalLength;
  28. typedef bool    InternalByValue;
  29.  
  30. /*
  31.  * ExternalIsValid --
  32.  *    Returns true iff external representation is valid.
  33.  */
  34. extern
  35. bool
  36. ExternalIsValid ARGS((
  37.     External    data,
  38.     InternalLength    length,
  39.     InternalByValue    byValue
  40. ));
  41.  
  42. /*
  43.  * InternalIsValid --
  44.  *    Returns true iff internal representation is valid.
  45.  */
  46. extern
  47. bool
  48. InternalIsValid ARGS((
  49.     Internal    data,
  50.     InternalLength    length,
  51.     InternalByValue    byValue
  52. ));
  53.  
  54. /*
  55.  * ExternalGetLength --
  56.  *    Returns the length of external data.
  57.  */
  58. extern
  59. uint32
  60. ExternalGetLength ARGS((
  61.     External    data,
  62.     InternalLength    length,
  63.     InternalByValue    byValue
  64. ));
  65.  
  66. /*
  67.  * ExternalGetInternal --
  68.  *    Returns the internal representation corresponding to external data.
  69.  */
  70. extern
  71. Internal
  72. ExternalGetInternal ARGS((
  73.     External    data,
  74.     InternalLength    length,
  75.     InternalByValue    byValue
  76. ));
  77.  
  78. /*
  79.  * InternalGetExternal --
  80.  *    Returns the external representation corresponding to internal data.
  81.  */
  82. extern
  83. External
  84. InternalGetExternal ARGS((
  85.     Internal    data,
  86.     InternalLength    length,
  87.     InternalByValue    byValue
  88. ));
  89.  
  90. #endif
  91.  
  92. #endif    /* !defined(ConvIncluded) */
  93.