PostgreSQL Source Code  git master
ecpg_keywords.c File Reference
#include "postgres_fe.h"
#include <ctype.h>
#include "extern.h"
#include "preproc.h"
Include dependency graph for ecpg_keywords.c:

Go to the source code of this file.

Functions

const ScanKeywordScanECPGKeywordLookup (const char *text)
 

Variables

static const ScanKeyword ECPGScanKeywords []
 

Function Documentation

◆ ScanECPGKeywordLookup()

const ScanKeyword* ScanECPGKeywordLookup ( const char *  text)

Definition at line 82 of file ecpg_keywords.c.

References lengthof, NumSQLScanKeywords, ScanKeywordLookup(), and SQLScanKeywords.

83 {
84  const ScanKeyword *res;
85 
86  /* First check SQL symbols defined by the backend. */
88  if (res)
89  return res;
90 
91  /* Try ECPG-specific keywords. */
93  if (res)
94  return res;
95 
96  return NULL;
97 }
const ScanKeyword * ScanKeywordLookup(const char *text, const ScanKeyword *keywords, int num_keywords)
Definition: keywords.c:64
#define lengthof(array)
Definition: c.h:600
static const ScanKeyword ECPGScanKeywords[]
Definition: ecpg_keywords.c:25
const ScanKeyword SQLScanKeywords[]
Definition: keywords.c:36
const int NumSQLScanKeywords
Definition: keywords.c:40
Definition: c.h:487

Variable Documentation

◆ ECPGScanKeywords

const ScanKeyword ECPGScanKeywords[]
static

Definition at line 25 of file ecpg_keywords.c.