Skip to content
Snippets Groups Projects
Commit c753a6a1 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev
Browse files

Restore CurScanPosition() for flex.

Fix it for lex.
parent ce5ea7f3
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -298,7 +298,7 @@ unput(char c)
int int
CurScanPosition(void) CurScanPosition(void)
{ {
return (parseCh - parseString - yyleng - 1); return (parseCh - parseString - yyleng);
} }
#endif /* !defined(FLEX_SCANNER) */ #endif /* !defined(FLEX_SCANNER) */
...@@ -330,10 +330,7 @@ CurScanPosition(void) ...@@ -330,10 +330,7 @@ CurScanPosition(void)
{ {
printf( "current position is %d\n", yy_c_buf_p - yy_current_buffer->yy_ch_buf - yyleng); 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); return (yy_c_buf_p - yy_current_buffer->yy_ch_buf - yyleng);
#endif
} }
#endif /* FLEX_SCANNER */ #endif /* FLEX_SCANNER */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment