PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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

const ScanKeyword* ScanECPGKeywordLookup ( const char *  text)

Definition at line 83 of file ecpg_keywords.c.

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

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

Variable Documentation

const ScanKeyword ECPGScanKeywords[]
static

Definition at line 25 of file ecpg_keywords.c.