mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
0665023b44
Prototypes for functions implementing V1-callable functions are no longer necessary. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
36 lines
755 B
C
36 lines
755 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* isn.h
|
|
* PostgreSQL type definitions for ISNs (ISBN, ISMN, ISSN, EAN13, UPC)
|
|
*
|
|
* Author: German Mendez Bravo (Kronuz)
|
|
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
|
|
*
|
|
* IDENTIFICATION
|
|
* contrib/isn/isn.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef ISN_H
|
|
#define ISN_H
|
|
|
|
#include "fmgr.h"
|
|
|
|
#undef ISN_DEBUG
|
|
#define ISN_WEAK_MODE
|
|
|
|
/*
|
|
* uint64 is the internal storage format for ISNs.
|
|
*/
|
|
typedef uint64 ean13;
|
|
|
|
#define EAN13_FORMAT UINT64_FORMAT
|
|
|
|
#define PG_GETARG_EAN13(n) PG_GETARG_INT64(n)
|
|
#define PG_RETURN_EAN13(x) PG_RETURN_INT64(x)
|
|
|
|
extern void initialize(void);
|
|
|
|
#endif /* ISN_H */
|