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.


const ScanKeywordScanECPGKeywordLookup (const char *text)


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;
86  /* First check SQL symbols defined by the backend. */
88  if (res)
89  return res;
91  /* Try ECPG-specific keywords. */
93  if (res)
94  return res;
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:629
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:516

Variable Documentation

◆ ECPGScanKeywords

const ScanKeyword ECPGScanKeywords[]

Definition at line 25 of file ecpg_keywords.c.