From dd9398ff7d4776aa67951800aeb402a94d42f50f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 28 Dec 2023 07:07:59 -0800 Subject: build: automate clean-up of shipped scanner and parser * Makefile (shipped): Copy the shipped materials unconditionally, rather than checking if they are different. If a patch exists for a shipped file, then apply it. * lex.yy.c.shipped, y.tab.c.shipped: Updated. * lex.yy.c.patch, y.tab.c.patch: New files. --- lex.yy.c.shipped | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lex.yy.c.shipped') diff --git a/lex.yy.c.shipped b/lex.yy.c.shipped index 64837e26..625c0552 100644 --- a/lex.yy.c.shipped +++ b/lex.yy.c.shipped @@ -4804,8 +4804,8 @@ YY_DECL /* Create the reject buffer large enough to save one state per allowed character. */ if ( ! yyg->yy_state_buf ) yyg->yy_state_buf = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE , yyscanner); - if ( ! yyg->yy_state_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yylex()" ); + if ( ! yyg->yy_state_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yylex()" ); if ( ! yyg->yy_start ) yyg->yy_start = 1; /* first start state */ -- cgit v1.2.3