Now that we have non-Latin1 SGML detection, restore Latin1 chars
[pgsql.git] / contrib / isn / isn.h
blob2b499bcf3389a6aa8be5a9451fe409021e5da95c
1 /*-------------------------------------------------------------------------
3 * isn.h
4 * PostgreSQL type definitions for ISNs (ISBN, ISMN, ISSN, EAN13, UPC)
6 * Author: German Mendez Bravo (Kronuz)
7 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
9 * IDENTIFICATION
10 * contrib/isn/isn.h
12 *-------------------------------------------------------------------------
15 #ifndef ISN_H
16 #define ISN_H
18 #include "fmgr.h"
20 #undef ISN_DEBUG
21 #define ISN_WEAK_MODE
24 * uint64 is the internal storage format for ISNs.
26 typedef uint64 ean13;
28 #define EAN13_FORMAT UINT64_FORMAT
30 #define PG_GETARG_EAN13(n) PG_GETARG_INT64(n)
31 #define PG_RETURN_EAN13(x) PG_RETURN_INT64(x)
33 extern void initialize(void);
35 #endif /* ISN_H */