MobilityDB 1.1
Data Structures | Macros | Typedefs | Functions
c.h File Reference
#include "postgres_ext.h"
#include "pg_config.h"
#include "pg_config_manual.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <stdarg.h>
#include <strings.h>
#include <stdint.h>
#include <sys/types.h>
#include <errno.h>
#include <locale.h>
#include <stdbool.h>
#include "port.h"
Include dependency graph for c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  PGAlignedBlock
 
union  PGAlignedXLogBlock
 
struct  varlena
 

Macros

#define _(x)   gettext(x)
 
#define __has_attribute(attribute)   0
 
#define Abs(x)   ((x) >= 0 ? (x) : -(x))
 
#define Assert(condition)   ((void)true)
 
#define AssertArg(condition)   ((void)true)
 
#define AssertMacro(condition)   ((void)true)
 
#define AssertPointerAlignment(ptr, bndr)   ((void)true)
 
#define AssertState(condition)   ((void)true)
 
#define AssertVariableIsOfType(varname, typename)
 
#define AssertVariableIsOfTypeMacro(varname, typename)
 
#define BoolIsValid(boolean)   ((boolean) == false || (boolean) == true)
 
#define BUFFERALIGN(LEN)   TYPEALIGN(ALIGNOF_BUFFER, (LEN))
 
#define BUFFERALIGN_DOWN(LEN)   TYPEALIGN_DOWN(ALIGNOF_BUFFER, (LEN))
 
#define CACHELINEALIGN(LEN)   TYPEALIGN(PG_CACHE_LINE_SIZE, (LEN))
 
#define CppAsString(identifier)   #identifier
 
#define CppAsString2(x)   CppAsString(x)
 
#define CppConcat(x, y)   x##y
 
#define dgettext(d, x)   (x)
 
#define dngettext(d, s, p, n)   ((n) == 1 ? (s) : (p))
 
#define DOUBLEALIGN(LEN)   TYPEALIGN(ALIGNOF_DOUBLE, (LEN))
 
#define DOUBLEALIGN_DOWN(LEN)   TYPEALIGN_DOWN(ALIGNOF_DOUBLE, (LEN))
 
#define dummyret   char
 
#define ESCAPE_STRING_SYNTAX   'E'
 
#define FirstCommandId   ((CommandId) 0)
 
#define FLEXIBLE_ARRAY_MEMBER   /* empty */
 
#define FLOAT4_FITS_IN_INT16(num)    ((num) >= (float4) PG_INT16_MIN && (num) < -((float4) PG_INT16_MIN))
 
#define FLOAT4_FITS_IN_INT32(num)    ((num) >= (float4) PG_INT32_MIN && (num) < -((float4) PG_INT32_MIN))
 
#define FLOAT4_FITS_IN_INT64(num)    ((num) >= (float4) PG_INT64_MIN && (num) < -((float4) PG_INT64_MIN))
 
#define FLOAT8_FITS_IN_INT16(num)    ((num) >= (float8) PG_INT16_MIN && (num) < -((float8) PG_INT16_MIN))
 
#define FLOAT8_FITS_IN_INT32(num)    ((num) >= (float8) PG_INT32_MIN && (num) < -((float8) PG_INT32_MIN))
 
#define FLOAT8_FITS_IN_INT64(num)    ((num) >= (float8) PG_INT64_MIN && (num) < -((float8) PG_INT64_MIN))
 
#define FLOAT8PASSBYVAL   true
 
#define gettext(x)   (x)
 
#define gettext_noop(x)   (x)
 
#define HAVE_INT64_TIMESTAMP
 
#define HAVE_UNIX_SOCKETS   1
 
#define HIGHBIT   (0x80)
 
#define INT64_FORMAT   "%" INT64_MODIFIER "d"
 
#define INT64CONST(x)   (x##L)
 
#define INTALIGN(LEN)   TYPEALIGN(ALIGNOF_INT, (LEN))
 
#define INTALIGN_DOWN(LEN)   TYPEALIGN_DOWN(ALIGNOF_INT, (LEN))
 
#define InvalidCommandId   (~(CommandId)0)
 
#define InvalidSubTransactionId   ((SubTransactionId) 0)
 
#define INVERT_COMPARE_RESULT(var)    ((var) = ((var) < 0) ? 1 : -(var))
 
#define IS_HIGHBIT_SET(ch)   ((unsigned char)(ch) & HIGHBIT)
 
#define lengthof(array)   (sizeof (array) / sizeof ((array)[0]))
 
#define likely(x)   ((x) != 0)
 
#define LONG_ALIGN_MASK   (sizeof(long) - 1)
 
#define LONGALIGN(LEN)   TYPEALIGN(ALIGNOF_LONG, (LEN))
 
#define LONGALIGN_DOWN(LEN)   TYPEALIGN_DOWN(ALIGNOF_LONG, (LEN))
 
#define Max(x, y)   ((x) > (y) ? (x) : (y))
 
#define MAXALIGN(LEN)   TYPEALIGN(MAXIMUM_ALIGNOF, (LEN))
 
#define MAXALIGN64(LEN)   TYPEALIGN64(MAXIMUM_ALIGNOF, (LEN))
 
#define MAXALIGN_DOWN(LEN)   TYPEALIGN_DOWN(MAXIMUM_ALIGNOF, (LEN))
 
#define MemSet(start, val, len)
 
#define MemSetAligned(start, val, len)
 
#define MemSetLoop(start, val, len)
 
#define MemSetTest(val, len)
 
#define Min(x, y)   ((x) < (y) ? (x) : (y))
 
#define ngettext(s, p, n)   ((n) == 1 ? (s) : (p))
 
#define NON_EXEC_STATIC   static
 
#define offsetof(type, field)   ((long) &((type *)0)->field)
 
#define OffsetToPointer(base, offset)    ((void *)((char *) base + offset))
 
#define OidIsValid(objectId)   ((bool) ((objectId) != InvalidOid))
 
#define pg_attribute_always_inline   inline
 
#define pg_attribute_cold
 
#define pg_attribute_format_arg(a)
 
#define pg_attribute_hot
 
#define pg_attribute_no_sanitize_alignment()
 
#define pg_attribute_noreturn()
 
#define pg_attribute_printf(f, a)
 
#define pg_attribute_unused()
 
#define PG_BINARY   0
 
#define PG_BINARY_A   "a"
 
#define PG_BINARY_R   "r"
 
#define PG_BINARY_W   "w"
 
#define PG_FUNCNAME_MACRO   __func__
 
#define PG_INT16_MAX   (0x7FFF)
 
#define PG_INT16_MIN   (-0x7FFF-1)
 
#define PG_INT32_MAX   (0x7FFFFFFF)
 
#define PG_INT32_MIN   (-0x7FFFFFFF-1)
 
#define PG_INT64_MAX   INT64CONST(0x7FFFFFFFFFFFFFFF)
 
#define PG_INT64_MIN   (-INT64CONST(0x7FFFFFFFFFFFFFFF) - 1)
 
#define PG_INT8_MAX   (0x7F)
 
#define PG_INT8_MIN   (-0x7F-1)
 
#define pg_nodiscard
 
#define pg_noinline
 
#define PG_TEXTDOMAIN(domain)   (domain "-" PG_MAJORVERSION)
 
#define PG_UINT16_MAX   (0xFFFF)
 
#define PG_UINT32_MAX   (0xFFFFFFFFU)
 
#define PG_UINT64_MAX   UINT64CONST(0xFFFFFFFFFFFFFFFF)
 
#define PG_UINT8_MAX   (0xFF)
 
#define pg_unreachable()   __builtin_unreachable()
 
#define PG_USED_FOR_ASSERTS_ONLY   pg_attribute_unused()
 
#define PGDLLIMPORT
 
#define PointerIsAligned(pointer, type)    (((uintptr_t)(pointer) % (sizeof (type))) == 0)
 
#define PointerIsValid(pointer)   ((const void*)(pointer) != NULL)
 
#define RegProcedureIsValid(p)   OidIsValid(p)
 
#define SHORTALIGN(LEN)   TYPEALIGN(ALIGNOF_SHORT, (LEN))
 
#define SHORTALIGN_DOWN(LEN)   TYPEALIGN_DOWN(ALIGNOF_SHORT, (LEN))
 
#define SIGNAL_ARGS   int postgres_signal_arg
 
#define SQL_STR_DOUBLE(ch, escape_backslash)    ((ch) == '\'' || ((ch) == '\\' && (escape_backslash)))
 
#define StaticAssertDecl(condition, errmessage)    _Static_assert(condition, errmessage)
 
#define StaticAssertExpr(condition, errmessage)    ((void) ({ StaticAssertStmt(condition, errmessage); true; }))
 
#define StaticAssertStmt(condition, errmessage)    do { _Static_assert(condition, errmessage); } while(0)
 
#define STATUS_EOF   (-2)
 
#define STATUS_ERROR   (-1)
 
#define STATUS_OK   (0)
 
#define TopSubTransactionId   ((SubTransactionId) 1)
 
#define Trap(condition, errorType)   ((void)true)
 
#define TrapMacro(condition, errorType)   (true)
 
#define TYPEALIGN(ALIGNVAL, LEN)    (((uintptr_t) (LEN) + ((ALIGNVAL) - 1)) & ~((uintptr_t) ((ALIGNVAL) - 1)))
 
#define TYPEALIGN64(ALIGNVAL, LEN)    (((uint64) (LEN) + ((ALIGNVAL) - 1)) & ~((uint64) ((ALIGNVAL) - 1)))
 
#define TYPEALIGN_DOWN(ALIGNVAL, LEN)    (((uintptr_t) (LEN)) & ~((uintptr_t) ((ALIGNVAL) - 1)))
 
#define UINT64_FORMAT   "%" INT64_MODIFIER "u"
 
#define UINT64CONST(x)   (x##UL)
 
#define unconstify(underlying_type, expr)
 
#define unlikely(x)   ((x) != 0)
 
#define unvolatize(underlying_type, expr)
 
#define VA_ARGS_NARGS(...)
 
#define VA_ARGS_NARGS_(_01, _02, _03, _04, _05, _06, _07, _08, _09, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, N, ...)    (N)
 
#define VARHDRSZ   ((int32) sizeof(int32))
 

Typedefs

typedef uint16 bits16
 
typedef uint32 bits32
 
typedef uint8 bits8
 
typedef struct varlena BpChar
 
typedef struct varlena bytea
 
typedef uint32 CommandId
 
typedef float float4
 
typedef double float8
 
typedef unsigned int Index
 
typedef signed short int16
 
typedef signed int int32
 
typedef long int int64
 
typedef signed char int8
 
typedef uint32 LocalTransactionId
 
typedef TransactionId MultiXactId
 
typedef uint32 MultiXactOffset
 
typedef signed int Offset
 
typedef void(* pg_funcptr_t) (void)
 
typedef union PGAlignedBlock PGAlignedBlock
 
typedef union PGAlignedXLogBlock PGAlignedXLogBlock
 
typedef char * Pointer
 
typedef Oid regproc
 
typedef regproc RegProcedure
 
typedef size_t Size
 
typedef uint32 SubTransactionId
 
typedef struct varlena text
 
typedef uint32 TransactionId
 
typedef unsigned short uint16
 
typedef unsigned int uint32
 
typedef unsigned long int uint64
 
typedef unsigned char uint8
 
typedef struct varlena VarChar
 

Functions

void ExceptionalCondition (const char *conditionName, const char *errorType, const char *fileName, int lineNumber) pg_attribute_noreturn()