~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to src/include/parser/parser.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * parser.h
 
4
 *              Definitions for the "raw" parser (flex and bison phases only)
 
5
 *
 
6
 * This is the external API for the raw lexing/parsing functions.
 
7
 *
 
8
 * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
 
9
 * Portions Copyright (c) 1994, Regents of the University of California
 
10
 *
 
11
 * src/include/parser/parser.h
 
12
 *
 
13
 *-------------------------------------------------------------------------
 
14
 */
 
15
#ifndef PARSER_H
 
16
#define PARSER_H
 
17
 
 
18
#include "nodes/parsenodes.h"
 
19
 
 
20
 
 
21
typedef enum
 
22
{
 
23
        BACKSLASH_QUOTE_OFF,
 
24
        BACKSLASH_QUOTE_ON,
 
25
        BACKSLASH_QUOTE_SAFE_ENCODING
 
26
}       BackslashQuoteType;
 
27
 
 
28
/* GUC variables in scan.l (every one of these is a bad idea :-() */
 
29
extern int      backslash_quote;
 
30
extern bool escape_string_warning;
 
31
extern PGDLLIMPORT bool standard_conforming_strings;
 
32
 
 
33
 
 
34
/* Primary entry point for the raw parsing functions */
 
35
extern List *raw_parser(const char *str);
 
36
 
 
37
/* Utility functions exported by gram.y (perhaps these should be elsewhere) */
 
38
extern List *SystemFuncName(char *name);
 
39
extern TypeName *SystemTypeName(char *name);
 
40
 
 
41
#endif   /* PARSER_H */