PostgreSQL Source Code  git master
regcustom.h File Reference
#include "postgres.h"
#include <ctype.h>
#include <limits.h>
#include <wctype.h>
#include "mb/pg_wchar.h"
#include "miscadmin.h"
#include "regex.h"
Include dependency graph for regcustom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FUNCPTR(name, args)   (*name) args
 
#define MALLOC(n)   palloc_extended((n), MCXT_ALLOC_NO_OOM)
 
#define FREE(p)   pfree(VS(p))
 
#define REALLOC(p, n)   repalloc_extended(VS(p),(n), MCXT_ALLOC_NO_OOM)
 
#define INTERRUPT(re)   CHECK_FOR_INTERRUPTS()
 
#define assert(x)   Assert(x)
 
#define CHR(c)   ((unsigned char) (c)) /* turn char literal into chr literal */
 
#define DIGITVAL(c)   ((c)-'0') /* turn chr digit into its value */
 
#define CHRBITS   32 /* bits in a chr; must not use sizeof */
 
#define CHR_MIN   0x00000000 /* smallest and largest chr; the value */
 
#define CHR_MAX
 
#define CHR_IS_IN_RANGE(c)   ((c) <= CHR_MAX)
 
#define MAX_SIMPLE_CHR   0x7FF /* suitable value for Unicode */
 
#define iscalnum(x)   pg_wc_isalnum(x)
 
#define iscalpha(x)   pg_wc_isalpha(x)
 
#define iscdigit(x)   pg_wc_isdigit(x)
 
#define iscspace(x)   pg_wc_isspace(x)
 

Typedefs

typedef pg_wchar chr
 
typedef unsigned uchr
 

Macro Definition Documentation

◆ assert

#define assert (   x)    Assert(x)

Definition at line 56 of file regcustom.h.

◆ CHR

#define CHR (   c)    ((unsigned char) (c)) /* turn char literal into chr literal */

Definition at line 62 of file regcustom.h.

◆ CHR_IS_IN_RANGE

#define CHR_IS_IN_RANGE (   c)    ((c) <= CHR_MAX)

Definition at line 77 of file regcustom.h.

◆ CHR_MAX

#define CHR_MAX
Value:
0x7ffffffe /* CHR_MAX-CHR_MIN+1 must fit in an int, and
* CHR_MAX+1 must fit in a chr variable */

Definition at line 66 of file regcustom.h.

◆ CHR_MIN

#define CHR_MIN   0x00000000 /* smallest and largest chr; the value */

Definition at line 65 of file regcustom.h.

◆ CHRBITS

#define CHRBITS   32 /* bits in a chr; must not use sizeof */

Definition at line 64 of file regcustom.h.

◆ DIGITVAL

#define DIGITVAL (   c)    ((c)-'0') /* turn chr digit into its value */

Definition at line 63 of file regcustom.h.

◆ FREE

#define FREE (   p)    pfree(VS(p))

Definition at line 53 of file regcustom.h.

◆ FUNCPTR

#define FUNCPTR (   name,
  args 
)    (*name) args

Definition at line 51 of file regcustom.h.

◆ INTERRUPT

#define INTERRUPT (   re)    CHECK_FOR_INTERRUPTS()

Definition at line 55 of file regcustom.h.

◆ iscalnum

#define iscalnum (   x)    pg_wc_isalnum(x)

Definition at line 90 of file regcustom.h.

◆ iscalpha

#define iscalpha (   x)    pg_wc_isalpha(x)

Definition at line 91 of file regcustom.h.

◆ iscdigit

#define iscdigit (   x)    pg_wc_isdigit(x)

Definition at line 92 of file regcustom.h.

◆ iscspace

#define iscspace (   x)    pg_wc_isspace(x)

Definition at line 93 of file regcustom.h.

◆ MALLOC

#define MALLOC (   n)    palloc_extended((n), MCXT_ALLOC_NO_OOM)

Definition at line 52 of file regcustom.h.

◆ MAX_SIMPLE_CHR

#define MAX_SIMPLE_CHR   0x7FF /* suitable value for Unicode */

Definition at line 87 of file regcustom.h.

◆ REALLOC

#define REALLOC (   p,
 
)    repalloc_extended(VS(p),(n), MCXT_ALLOC_NO_OOM)

Definition at line 54 of file regcustom.h.

Typedef Documentation

◆ chr

typedef pg_wchar chr

Definition at line 59 of file regcustom.h.

◆ uchr

typedef unsigned uchr

Definition at line 60 of file regcustom.h.