Eneboo - Documentación para desarrolladores
|
#include "pg_config.h"
#include "pg_config_manual.h"
#include "pg_config_os.h"
#include "postgres_ext.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <stdarg.h>
#include <sys/types.h>
#include <errno.h>
#include <locale.h>
#include "port.h"
Ir al código fuente de este archivo.
Clases | |
struct | IntArray |
struct | varlena |
struct | int2vector |
struct | oidvector |
union | nameData |
'defines' | |
#define | _(x) gettext((x)) |
#define | gettext(x) (x) |
#define | gettext_noop(x) (x) |
#define | CppAsString(identifier) #identifier |
#define | CppConcat(x, y) x##y |
#define | dummyret char |
#define | __attribute__(_arg_) |
#define | true ((bool) 1) |
#define | false ((bool) 0) |
#define | TRUE 1 |
#define | FALSE 0 |
#define | NULL ((void *) 0) |
#define | INT64CONST(x) ((int64) x##LL) |
#define | UINT64CONST(x) ((uint64) x##ULL) |
#define | InvalidSubTransactionId ((SubTransactionId) 0) |
#define | TopSubTransactionId ((SubTransactionId) 1) |
#define | FirstCommandId ((CommandId) 0) |
#define | MAXDIM 6 |
#define | VARHDRSZ ((int32) sizeof(int32)) |
#define | NameStr(name) ((name).data) |
#define | SQL_STR_DOUBLE(ch) ((ch) == '\'' || (ch) == '\\') |
#define | ESCAPE_STRING_SYNTAX 'E' |
#define | BoolIsValid(boolean) ((boolean) == false || (boolean) == true) |
#define | PointerIsValid(pointer) ((void*)(pointer) != NULL) |
#define | PointerIsAligned(pointer, type) (((long)(pointer) % (sizeof (type))) == 0) |
#define | OidIsValid(objectId) ((bool) ((objectId) != InvalidOid)) |
#define | RegProcedureIsValid(p) OidIsValid(p) |
#define | offsetof(type, field) ((long) &((type *)0)->field) |
#define | lengthof(array) (sizeof (array) / sizeof ((array)[0])) |
#define | endof(array) (&(array)[lengthof(array)]) |
#define | TYPEALIGN(ALIGNVAL, LEN) (((long) (LEN) + ((ALIGNVAL) - 1)) & ~((long) ((ALIGNVAL) - 1))) |
#define | SHORTALIGN(LEN) TYPEALIGN(ALIGNOF_SHORT, (LEN)) |
#define | INTALIGN(LEN) TYPEALIGN(ALIGNOF_INT, (LEN)) |
#define | LONGALIGN(LEN) TYPEALIGN(ALIGNOF_LONG, (LEN)) |
#define | DOUBLEALIGN(LEN) TYPEALIGN(ALIGNOF_DOUBLE, (LEN)) |
#define | MAXALIGN(LEN) TYPEALIGN(MAXIMUM_ALIGNOF, (LEN)) |
#define | BUFFERALIGN(LEN) TYPEALIGN(ALIGNOF_BUFFER, (LEN)) |
#define | Max(x, y) ((x) > (y) ? (x) : (y)) |
#define | Min(x, y) ((x) < (y) ? (x) : (y)) |
#define | Abs(x) ((x) >= 0 ? (x) : -(x)) |
#define | StrNCpy(dst, src, len) |
#define | INT_ALIGN_MASK (sizeof(int32) - 1) |
#define | MemSet(start, val, len) |
#define | MEMSET_LOOP_LIMIT 1024 |
#define | MemSetAligned(start, val, len) |
#define | MemSetTest(val, len) |
#define | MemSetLoop(start, val, len) |
#define | CSIGNBIT (0x80) |
#define | HIGHBIT (0x80) |
#define | IS_HIGHBIT_SET(ch) ((unsigned char)(ch) & HIGHBIT) |
#define | STATUS_OK (0) |
#define | STATUS_ERROR (-1) |
#define | STATUS_EOF (-2) |
#define | STATUS_FOUND (1) |
#define | PG_BINARY 0 |
#define | PG_BINARY_R "r" |
#define | PG_BINARY_W "w" |
#define | NULL_DEV "/dev/null" |
#define | DLLIMPORT |
#define | SIGNAL_ARGS int postgres_signal_arg |
#define | NON_EXEC_STATIC static |
'typedefs' | |
typedef char | bool |
typedef bool * | BoolPtr |
typedef char * | Pointer |
typedef signed char | int8 |
typedef signed short | int16 |
typedef signed int | int32 |
typedef unsigned char | uint8 |
typedef unsigned short | uint16 |
typedef unsigned int | uint32 |
typedef uint8 | bits8 |
typedef uint16 | bits16 |
typedef uint32 | bits32 |
typedef float | float32data |
typedef double | float64data |
typedef float * | float32 |
typedef double * | float64 |
typedef long long int | int64 |
typedef unsigned long long int | uint64 |
typedef size_t | Size |
typedef unsigned int | Index |
typedef signed int | Offset |
typedef int16 | int2 |
typedef int32 | int4 |
typedef float | float4 |
typedef double | float8 |
typedef Oid | regproc |
typedef regproc | RegProcedure |
typedef uint32 | TransactionId |
typedef uint32 | SubTransactionId |
typedef TransactionId | MultiXactId |
typedef uint32 | MultiXactOffset |
typedef uint32 | CommandId |
typedef struct varlena | bytea |
typedef struct varlena | text |
typedef struct varlena | BpChar |
typedef struct varlena | VarChar |
typedef union nameData | NameData |
typedef NameData * | Name |
#define _ | ( | x | ) | gettext((x)) |
#define __attribute__ | ( | _arg_ | ) |
#define Abs | ( | x | ) | ((x) >= 0 ? (x) : -(x)) |
#define BUFFERALIGN | ( | LEN | ) | TYPEALIGN(ALIGNOF_BUFFER, (LEN)) |
#define CppAsString | ( | identifier | ) | #identifier |
#define CppConcat | ( | x, | |
y | |||
) | x##y |
#define CSIGNBIT (0x80) |
#define DLLIMPORT |
#define DOUBLEALIGN | ( | LEN | ) | TYPEALIGN(ALIGNOF_DOUBLE, (LEN)) |
#define dummyret char |
#define endof | ( | array | ) | (&(array)[lengthof(array)]) |
#define ESCAPE_STRING_SYNTAX 'E' |
#define false ((bool) 0) |
#define FALSE 0 |
#define FirstCommandId ((CommandId) 0) |
#define gettext | ( | x | ) | (x) |
#define gettext_noop | ( | x | ) | (x) |
#define HIGHBIT (0x80) |
#define INT64CONST | ( | x | ) | ((int64) x##LL) |
#define INT_ALIGN_MASK (sizeof(int32) - 1) |
#define INTALIGN | ( | LEN | ) | TYPEALIGN(ALIGNOF_INT, (LEN)) |
#define InvalidSubTransactionId ((SubTransactionId) 0) |
#define IS_HIGHBIT_SET | ( | ch | ) | ((unsigned char)(ch) & HIGHBIT) |
#define lengthof | ( | array | ) | (sizeof (array) / sizeof ((array)[0])) |
#define LONGALIGN | ( | LEN | ) | TYPEALIGN(ALIGNOF_LONG, (LEN)) |
#define Max | ( | x, | |
y | |||
) | ((x) > (y) ? (x) : (y)) |
#define MAXALIGN | ( | LEN | ) | TYPEALIGN(MAXIMUM_ALIGNOF, (LEN)) |
#define MAXDIM 6 |
do \ { \ /* must be void* because we don't know if it is integer aligned yet */ \ void *_vstart = (void *) (start); \ int _val = (val); \ Size _len = (len); \ \ if ((((long) _vstart) & INT_ALIGN_MASK) == 0 && \ (_len & INT_ALIGN_MASK) == 0 && \ _val == 0 && \ _len <= MEMSET_LOOP_LIMIT) \ { \ int32 *_start = (int32 *) _vstart; \ int32 *_stop = (int32 *) ((char *) _start + _len); \ while (_start < _stop) \ *_start++ = 0; \ } \ else \ memset(_vstart, _val, _len); \ } while (0)
#define MEMSET_LOOP_LIMIT 1024 |
do \ { \ int32 *_start = (int32 *) (start); \ int _val = (val); \ Size _len = (len); \ \ if ((_len & INT_ALIGN_MASK) == 0 && \ _val == 0 && \ _len <= MEMSET_LOOP_LIMIT) \ { \ int32 *_stop = (int32 *) ((char *) _start + _len); \ while (_start < _stop) \ *_start++ = 0; \ } \ else \ memset(_start, _val, _len); \ } while (0)
( ((len) & INT_ALIGN_MASK) == 0 && \ (len) <= MEMSET_LOOP_LIMIT && \ (val) == 0 )
#define Min | ( | x, | |
y | |||
) | ((x) < (y) ? (x) : (y)) |
#define NON_EXEC_STATIC static |
#define NULL ((void *) 0) |
#define NULL_DEV "/dev/null" |
#define OidIsValid | ( | objectId | ) | ((bool) ((objectId) != InvalidOid)) |
#define PG_BINARY 0 |
#define PG_BINARY_R "r" |
#define PG_BINARY_W "w" |
#define PointerIsValid | ( | pointer | ) | ((void*)(pointer) != NULL) |
#define RegProcedureIsValid | ( | p | ) | OidIsValid(p) |
#define SHORTALIGN | ( | LEN | ) | TYPEALIGN(ALIGNOF_SHORT, (LEN)) |
#define SIGNAL_ARGS int postgres_signal_arg |
#define SQL_STR_DOUBLE | ( | ch | ) | ((ch) == '\'' || (ch) == '\\') |
#define STATUS_EOF (-2) |
#define STATUS_ERROR (-1) |
#define STATUS_FOUND (1) |
#define STATUS_OK (0) |
#define StrNCpy | ( | dst, | |
src, | |||
len | |||
) |
#define TopSubTransactionId ((SubTransactionId) 1) |
#define TRUE 1 |
#define true ((bool) 1) |
#define TYPEALIGN | ( | ALIGNVAL, | |
LEN | |||
) | (((long) (LEN) + ((ALIGNVAL) - 1)) & ~((long) ((ALIGNVAL) - 1))) |
#define UINT64CONST | ( | x | ) | ((uint64) x##ULL) |
typedef char bool |
typedef float* float32 |
typedef float float32data |
typedef float float4 |
typedef double* float64 |
typedef double float64data |
typedef double float8 |
typedef signed short int16 |
typedef signed char int8 |
typedef TransactionId MultiXactId |
typedef uint32 MultiXactOffset |
typedef char* Pointer |
typedef regproc RegProcedure |
typedef uint32 SubTransactionId |
typedef uint32 TransactionId |
typedef unsigned short uint16 |
typedef unsigned char uint8 |