You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

isn.h 759B

1234567891011121314151617181920212223242526272829303132333435
  1. /*-------------------------------------------------------------------------
  2. *
  3. * isn.h
  4. * PostgreSQL type definitions for ISNs (ISBN, ISMN, ISSN, EAN13, UPC)
  5. *
  6. * Author: German Mendez Bravo (Kronuz)
  7. * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  8. *
  9. * IDENTIFICATION
  10. * contrib/isn/isn.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef ISN_H
  15. #define ISN_H
  16. #include "fmgr.h"
  17. #undef ISN_DEBUG
  18. #define ISN_WEAK_MODE
  19. /*
  20. * uint64 is the internal storage format for ISNs.
  21. */
  22. typedef uint64 ean13;
  23. #define EAN13_FORMAT UINT64_FORMAT
  24. #define PG_GETARG_EAN13(n) PG_GETARG_INT64(n)
  25. #define PG_RETURN_EAN13(x) PG_RETURN_INT64(x)
  26. extern void initialize(void);
  27. #endif /* ISN_H */