[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/8] glr.cc: formatting changes.
From: |
Akim Demaille |
Subject: |
[PATCH 2/8] glr.cc: formatting changes. |
Date: |
Wed, 4 Jul 2012 16:52:58 +0200 |
* data/glr.cc: here.
---
data/glr.cc | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/data/glr.cc b/data/glr.cc
index ce3951e..b3280a5 100644
--- a/data/glr.cc
+++ b/data/glr.cc
@@ -234,10 +234,10 @@ b4_copyright([Skeleton interface for Bison GLR parsers in
C++],
]b4_percent_code_get([[requires]])[
-#include <string>
-#include <iostream>
+# include <string>
+# include <iostream>
]b4_percent_define_ifdef([[location_type]], [],
- [[#include "location.hh"]])[
+ [[# include "location.hh"]])[
]b4_YYDEBUG_define[
@@ -245,8 +245,8 @@ b4_copyright([Skeleton interface for Bison GLR parsers in
C++],
If N is 0, then set CURRENT to the empty location which ends
the previous symbol: RHS[0] (always defined). */
-#ifndef YYLLOC_DEFAULT
-# define YYLLOC_DEFAULT(Current, Rhs, N) \
+# ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (N) \
{ \
@@ -258,7 +258,7 @@ b4_copyright([Skeleton interface for Bison GLR parsers in
C++],
(Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
} \
while (/*CONSTCOND*/ 0)
-#endif
+# endif
]b4_namespace_open[
/// A Bison parser.
@@ -266,7 +266,7 @@ b4_copyright([Skeleton interface for Bison GLR parsers in
C++],
{
public:
/// Symbol semantic values.
-#ifndef ]b4_api_PREFIX[STYPE
+# ifndef ]b4_api_PREFIX[STYPE
]m4_ifdef([b4_stype],
[ union semantic_type
{
@@ -275,9 +275,9 @@ b4_user_stype
[m4_if(b4_tag_seen_flag, 0,
[[ typedef int semantic_type;]],
[[ typedef ]b4_api_PREFIX[STYPE semantic_type;]])])[
-#else
+# else
typedef ]b4_api_PREFIX[STYPE semantic_type;
-#endif
+# endif
/// Symbol locations.
typedef ]b4_percent_define_get([[location_type]],
[[location]])[ location_type;
--
1.7.11.1
- [PATCH 0/8] Various improvements prompted by api.prefix, Akim Demaille, 2012/07/04
- [PATCH 3/8] c++: fewer #includes in the headers., Akim Demaille, 2012/07/04
- [PATCH 5/8] api.prefix: do not use #define to handle YYSTYPE_IS_TRIVIAL etc., Akim Demaille, 2012/07/04
- [PATCH 7/8] glr.cc: do not override C++ definitions by C macros., Akim Demaille, 2012/07/04
- [PATCH 1/8] tests: more logs., Akim Demaille, 2012/07/04
- [PATCH 6/8] YYLLOC_DEFAULT: factor, and don't export it in headers., Akim Demaille, 2012/07/04
- [PATCH 2/8] glr.cc: formatting changes.,
Akim Demaille <=
- [PATCH 4/8] tests: portability fixes., Akim Demaille, 2012/07/04
- [PATCH 8/8] tests: headers.at: strengthen., Akim Demaille, 2012/07/04