odyssey/sources/postgres.h

32 lines
613 B
C
Raw Normal View History

2019-11-11 09:28:50 +00:00
#ifndef ODYSSEY_POSTGRES_H
#define ODYSSEY_POSTGRES_H
/*
* Odyssey.
*
* Scalable PostgreSQL connection pooler.
*/
2019-11-11 09:28:50 +00:00
#define int8 int8_t
#define uint8 uint8_t
2019-11-11 09:28:50 +00:00
#define uint16 uint16_t
#define uint32 uint32_t
#define uint64 uint64_t
#define lengthof(array) (sizeof(array) / sizeof((array)[0]))
#define pg_hton32(x) htobe32(x)
2019-11-11 09:28:50 +00:00
#define pg_attribute_noreturn() _NORETURN
#define HIGHBIT (0x80)
#define IS_HIGHBIT_SET(ch) ((unsigned char)(ch)&HIGHBIT)
2019-11-11 09:28:50 +00:00
#define FRONTEND
2019-11-21 11:54:59 +00:00
#include <common/base64.h>
#include <common/saslprep.h>
#include <common/scram-common.h>
#include <string.h>
2019-11-11 09:28:50 +00:00
#endif /* ODYSSEY_POSTGRES_H */