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.


const ScanKeywordScanECPGKeywordLookup (const char *text)


static const ScanKeyword ECPGScanKeywords []

Function Documentation

const ScanKeyword* ScanECPGKeywordLookup ( const char *  text)

Definition at line 83 of file ecpg_keywords.c.

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

84 {
85  const ScanKeyword *res;
87  /* First check SQL symbols defined by the backend. */
89  if (res)
90  return res;
92  /* Try ECPG-specific keywords. */
94  if (res)
95  return res;
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:556
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:433

Variable Documentation

const ScanKeyword ECPGScanKeywords[]

Definition at line 25 of file ecpg_keywords.c.