summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2009-07-13 03:11:12 +0000
committerTom Lane2009-07-13 03:11:12 +0000
commit382cb7aa0b929975c2158642f3e52263cffc64a3 (patch)
tree8a527bf2c7790a1b5f0a680ad7f7829212938641
parent44210093ff313a713fd563f2740628f3bdac0c67 (diff)
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.
-rw-r--r--src/backend/parser/scan.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l
index 096931fde7..0d423c8ef7 100644
--- a/src/backend/parser/scan.l
+++ b/src/backend/parser/scan.l
@@ -1211,13 +1211,13 @@ check_escape_warning(base_yyscan_t yyscanner)
*/
void *
-base_yyalloc(size_t bytes, base_yyscan_t yyscanner)
+base_yyalloc(yy_size_t bytes, base_yyscan_t yyscanner)
{
return palloc(bytes);
}
void *
-base_yyrealloc(void *ptr, size_t bytes, base_yyscan_t yyscanner)
+base_yyrealloc(void *ptr, yy_size_t bytes, base_yyscan_t yyscanner)
{
if (ptr)
return repalloc(ptr, bytes);