Restore CurScanPosition() for flex.

Fix it for lex.
This commit is contained in:
Vadim B. Mikheev 1997-09-05 09:05:48 +00:00
parent ce5ea7f381
commit c753a6a1e2

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.17 1997/09/05 00:09:20 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.18 1997/09/05 09:05:48 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@ -298,7 +298,7 @@ unput(char c)
int
CurScanPosition(void)
{
return (parseCh - parseString - yyleng - 1);
return (parseCh - parseString - yyleng);
}
#endif /* !defined(FLEX_SCANNER) */
@ -330,10 +330,7 @@ CurScanPosition(void)
{
printf( "current position is %d\n", yy_c_buf_p - yy_current_buffer->yy_ch_buf - yyleng);
return (parseCh - parseString - yyleng - 1);
#if FALSE
return (yy_c_buf_p - yy_current_buffer->yy_ch_buf - yyleng);
#endif
}
#endif /* FLEX_SCANNER */