Although the flex documentation avers that yyalloc and yyrealloc take
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Jul 2009 03:11:12 +0000 (03:11 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Jul 2009 03:11:12 +0000 (03:11 +0000)
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.

src/backend/parser/scan.l

index 096931fde7a7578b82209d10f390aadd14c8f106..0d423c8ef759f389e0f092524b22a89e0fb19aeb 100644 (file)
@@ -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);