int8.h 996 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Licensed Materials - Property of IBM and/or HCL
  3. *
  4. * IBM Informix Dynamic Server
  5. * (c) Copyright IBM Corporation 1996, 2004 All rights reserved.
  6. * (c) Copyright HCL Technologies Ltd. 2017. All Rights Reserved.
  7. *
  8. ***************************************************************************
  9. *
  10. * Title: int8.h
  11. * Description:
  12. * Header file for int8 data type.
  13. *
  14. ***************************************************************************
  15. */
  16. #ifndef _INT8_H
  17. #define _INT8_H
  18. #include "ifxtypes.h"
  19. #define INT8SIZE 2 /* number of unsigned int4's in struct ifx_int8 */
  20. #define INT8UNKNOWN -2 /* Value returned by int8 comparison function if one
  21. * of the operands is NULL.
  22. */
  23. #define INT8NULL 0 /* A int8 null will be represented internally by setting
  24. * sign equal to INT8NULL
  25. */
  26. typedef struct ifx_int8
  27. {
  28. uint4 data[INT8SIZE];
  29. int2 sign; /* 0 = NULL, 1 = positive, -1 = negative */
  30. } ifx_int8_t;
  31. #endif /* _INT8_H */