Skip to content

Commit 34a1114

Browse files
committed
Although the flex documentation avers that yyalloc and yyrealloc take
size_t arguments, the emitted scanner actually prototypes them with type yy_size_t, which is sometimes not the same thing depending on flex version and platform. Easiest fix seems to be to use yy_size_t. Per buildfarm results.
1 parent 91e7192 commit 34a1114

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/13 02:02:20 tgl Exp $
27+
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.156 2009/07/13 03: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
return palloc(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
return repalloc(ptr, bytes);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy