PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
isn.h
Go to the documentation of this file.
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-2025, PostgreSQL Global Development Group
8 *
9 * IDENTIFICATION
10 * contrib/isn/isn.h
11 *
12 *-------------------------------------------------------------------------
13 */
14
15#ifndef ISN_H
16#define ISN_H
17
18#include "fmgr.h"
19
20#undef ISN_DEBUG
21
22/*
23 * uint64 is the internal storage format for ISNs.
24 */
25typedef uint64 ean13;
26
27#define EAN13_FORMAT UINT64_FORMAT
28
29#define PG_GETARG_EAN13(n) PG_GETARG_INT64(n)
30#define PG_RETURN_EAN13(x) PG_RETURN_INT64(x)
31
32extern void initialize(void);
33
34#endif /* ISN_H */
uint64_t uint64
Definition: c.h:503
void initialize(void)
uint64 ean13
Definition: isn.h:25