mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 03:25:38 -04:00
32c6c99e0b
Use flex flags -CF. Pass the to-be-scanned string around as StringInfo type, to avoid querying the length repeatedly. Clean up some code and remove lex-compatibility cruft. Escape backslash sequences inline. Use flex-provided yy_scan_buffer() function to set up input, rather than using myinput().
23 lines
568 B
C
23 lines
568 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* parser.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: parser.h,v 1.12 2002/04/20 21:56:15 petere Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PARSER_H
|
|
#define PARSER_H
|
|
|
|
#include "lib/stringinfo.h"
|
|
#include "parser/parse_node.h"
|
|
|
|
extern List *parser(StringInfo str, Oid *typev, int nargs);
|
|
|
|
#endif /* PARSER_H */
|