Sha256: 0405d76b3cca092aa31826b5f42562e95439577cd26168e1c2b989ab6210f569

Contents?: true

Size: 1.1 KB

Versions: 12

Compression:

Stored size: 1.1 KB

Contents

/*-------------------------------------------------------------------------
 *
 * keywords.h
 *	  lexical token lookup for key words in PostgreSQL
 *
 *
 * Portions Copyright (c) 2003-2002, PgPool Global Development Group
 * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * src/include/parser/keywords.h
 *
 *-------------------------------------------------------------------------
 */
#ifndef KEYWORDS_H
#define KEYWORDS_H

/* Keyword categories --- should match lists in gram.y */
#define UNRESERVED_KEYWORD		0
#define COL_NAME_KEYWORD		1
#define TYPE_FUNC_NAME_KEYWORD	2
#define RESERVED_KEYWORD		3


typedef struct ScanKeyword
{
	const char *name;			/* in lower case */
	int16		value;			/* grammar's token code */
	int16		category;		/* see codes above */
} ScanKeyword;

extern PGDLLIMPORT const ScanKeyword ScanKeywords[];
extern PGDLLIMPORT const int NumScanKeywords;

extern const ScanKeyword *ScanKeywordLookup(const char *text,
				  const ScanKeyword *keywords,
				  int num_keywords);

#endif   /* KEYWORDS_H */

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
prestogres-0.4.8 pgpool2/parser/keywords.h
prestogres-0.4.7 pgpool2/parser/keywords.h
prestogres-0.4.6 pgpool2/parser/keywords.h
prestogres-0.4.5 pgpool2/parser/keywords.h
prestogres-0.4.4 pgpool2/parser/keywords.h
prestogres-0.4.3 pgpool2/parser/keywords.h
prestogres-0.4.2 pgpool2/parser/keywords.h
prestogres-0.4.1 pgpool2/parser/keywords.h
prestogres-0.4.0 pgpool2/parser/keywords.h
prestogres-0.3.0 pgpool2/parser/keywords.h
prestogres-0.2.0 pgpool2/parser/keywords.h
prestogres-0.1.0 pgpool2/parser/keywords.h