Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc753a6a

Browse files
committed
Restore CurScanPosition() for flex.
Fix it for lex.
1 parentce5ea7f commitc753a6a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎src/backend/parser/scan.l

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.17 1997/09/0500:09:20 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.18 1997/09/05 09:05:48 vadim Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -298,7 +298,7 @@ unput(char c)
298298
int
299299
CurScanPosition(void)
300300
{
301-
return (parseCh - parseString - yyleng -1);
301+
return (parseCh - parseString - yyleng);
302302
}
303303
#endif/* !defined(FLEX_SCANNER) */
304304

@@ -330,10 +330,7 @@ CurScanPosition(void)
330330
{
331331
printf("current position is %d\n", yy_c_buf_p - yy_current_buffer->yy_ch_buf - yyleng);
332332

333-
return (parseCh - parseString - yyleng -1);
334-
#if FALSE
335333
return (yy_c_buf_p - yy_current_buffer->yy_ch_buf - yyleng);
336-
#endif
337334
}
338335

339336
#endif/* FLEX_SCANNER */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp