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

Commit34a1114

Browse files
committed
Although the flex documentation avers that yyalloc and yyrealloc take
size_t arguments, the emitted scanner actually prototypes them withtype yy_size_t, which is sometimes not the same thing depending onflex version and platform. Easiest fix seems to be to use yy_size_t.Per buildfarm results.
1 parent91e7192 commit34a1114

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/parser/scan.l

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
2626
* IDENTIFICATION
27-
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.155 2009/07/1302:02:20 tgl Exp $
27+
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.156 2009/07/1303:11:12 tgl Exp $
2828
*
2929
*-------------------------------------------------------------------------
3030
*/
@@ -1211,13 +1211,13 @@ check_escape_warning(base_yyscan_t yyscanner)
12111211
*/
12121212

12131213
void *
1214-
base_yyalloc(size_t bytes,base_yyscan_t yyscanner)
1214+
base_yyalloc(yy_size_t bytes,base_yyscan_t yyscanner)
12151215
{
12161216
returnpalloc(bytes);
12171217
}
12181218

12191219
void *
1220-
base_yyrealloc(void *ptr,size_t bytes,base_yyscan_t yyscanner)
1220+
base_yyrealloc(void *ptr,yy_size_t bytes,base_yyscan_t yyscanner)
12211221
{
12221222
if (ptr)
12231223
returnrepalloc(ptr, bytes);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp