Alter plpgsql's lexer so that yylineno and yymore are not used. This

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 20aea2ec7b278e664e420172160073ccc2ad24ad
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-05-05T16:46:28Z
Releases: 7.4.1
Alter plpgsql's lexer so that yylineno and yymore are not used.  This
avoids 'input buffer overflow' failure on long literals, improves
performance, gives the right answer for line position in functions
containing multiline literals, suppresses annoying compiler warnings,
and generally is so much better I wonder why we didn't do it before.

Files

PathChange+/−
src/pl/plpgsql/src/gram.y modified +25 −26
src/pl/plpgsql/src/pl_comp.c modified +10 −7
src/pl/plpgsql/src/plpgsql.h modified +6 −7
src/pl/plpgsql/src/scan.l modified +91 −48