bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

skeletons: style/comment changes


From: Akim Demaille
Subject: skeletons: style/comment changes
Date: Sun, 9 Sep 2018 13:53:04 +0200

commit 79331541ae60d9d8e08b63e0a8bfc57731ff5b2c
Author: Akim Demaille <address@hidden>
Date:   Sun Sep 9 13:46:42 2018 +0200

    skeletons: style/comment changes
    
    * data/c++.m4, data/c.m4, data/glr.c: Here.

diff --git a/data/c++.m4 b/data/c++.m4
index 0fd46e8e..0b23b3e0 100644
--- a/data/c++.m4
+++ b/data/c++.m4
@@ -24,12 +24,21 @@ b4_percent_define_ifdef([[api.value.union.name]],
 
 m4_include(b4_pkgdatadir/[c.m4])
 
+b4_percent_define_check_kind([api.namespace], [code], [deprecated])
+b4_percent_define_check_kind([parser_class_name], [code], [deprecated])
+
+
+## ----- ##
+## C++.  ##
+## ----- ##
+
 # b4_comment(TEXT, [PREFIX])
 # --------------------------
 # Put TEXT in comment. Prefix all the output lines with PREFIX.
 m4_define([b4_comment],
 [b4_comment_([$1], [$2// ], [$2// ])])
 
+
 # b4_inline(hh|cc)
 # ----------------
 # Expand to `inline\n  ` if $1 is hh.
@@ -40,12 +49,7 @@ m4_define([b4_inline],
   ]],
   [m4_fatal([$0: invalid argument: $1])])])
 
-## -------- ##
-## Checks.  ##
-## -------- ##
 
-b4_percent_define_check_kind([api.namespace], [code], [deprecated])
-b4_percent_define_check_kind([parser_class_name], [code], [deprecated])
 
 ## ---------------- ##
 ## Default values.  ##
diff --git a/data/c.m4 b/data/c.m4
index 346b8fd3..a1c33e9d 100644
--- a/data/c.m4
+++ b/data/c.m4
@@ -263,11 +263,6 @@ m4_define([b4_attribute_define],
 ])
 
 
-## ---------##
-## Values.  ##
-## ---------##
-
-
 # b4_null_define
 # --------------
 # Portability issues: define a YY_NULLPTR appropriate for the current
@@ -288,6 +283,12 @@ m4_define([b4_null_define],
 # Return a null pointer constant.
 m4_define([b4_null], [YY_NULLPTR])
 
+
+
+## ---------##
+## Values.  ##
+## ---------##
+
 # b4_integral_parser_table_define(TABLE-NAME, CONTENT, COMMENT)
 # -------------------------------------------------------------
 # Define "yy<TABLE-NAME>" whose contents is CONTENT.
diff --git a/data/glr.c b/data/glr.c
index 12a7756c..a67c7c87 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -217,9 +217,9 @@ b4_copyright([Skeleton implementation for Bison GLR parsers 
in C],
 
 /* C GLR parser skeleton written by Paul Hilfinger.  */
 
-]b4_identification
+]b4_identification[
 
-b4_percent_code_get([[top]])[
+]b4_percent_code_get([[top]])[
 ]m4_if(b4_api_prefix, [yy], [],
 [[/* Substitute the type names.  */
 #define YYSTYPE ]b4_api_PREFIX[STYPE]b4_locations_if([[




reply via email to

[Prev in Thread] Current Thread [Next in Thread]