From 28427f57ceb6f70c3a84696a9275c60ed72d1f52 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 30 Jul 2012 15:32:29 +0200 Subject: [PATCH] skeletons: style changes * data/glr.c, data/lalr1.cc: Use more consistent comments, and YY_NULL declaration. --- data/glr.c | 4 ++-- data/lalr1.cc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/glr.c b/data/glr.c index 935ee96a..6a12cfbd 100644 --- a/data/glr.c +++ b/data/glr.c @@ -214,13 +214,13 @@ b4_percent_code_get([[top]])[ #define yynerrs ]b4_prefix[nerrs]b4_locations_if([[ #define yylloc ]b4_prefix[lloc]])])[ -/* Copy the first part of user declarations. */ +/* First part of user declarations. */ ]b4_user_pre_prologue[ ]b4_null_define[ ]b4_defines_if([[#include "@basename(]b4_spec_defines_file[@)"]], - [b4_shared_declarations])[ + [b4_shared_declarations])[ /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE diff --git a/data/lalr1.cc b/data/lalr1.cc index f71be3f2..3d6bdca9 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -358,17 +358,17 @@ m4_if(b4_prefix, [yy], [], // Take the name prefix into account. #define yylex b4_prefix[]lex])[ -/* First part of user declarations. */ +// First part of user declarations. ]b4_user_pre_prologue[ +]b4_null_define[ + #include "@basename(]b4_spec_defines_file[@)" /* User implementation prologue. */ ]b4_user_post_prologue[ ]b4_percent_code_get[ -]b4_null_define[ - #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS -- 2.45.2