summaryrefslogtreecommitdiff
path: root/src/parse-gram.c
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-25 12:10:30 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-25 12:16:57 +0200
commitb74fc07d21ba81954ea30fd87a1ae8bd324cb182 (patch)
tree2773107de8513012a64e859db1720e518ef365da /src/parse-gram.c
parent3ab12c1036812ef855385c947598284241f746b1 (diff)
downloadbison-b74fc07d21ba81954ea30fd87a1ae8bd324cb182.tar.gz
style: c: fix a few minor issues about indentation of cpp directives
* README-hacking.md: More about cpp. * data/skeletons/c.m4, data/skeletons/yacc.c: Style changes.
Diffstat (limited to 'src/parse-gram.c')
-rw-r--r--src/parse-gram.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/parse-gram.c b/src/parse-gram.c
index f4f1c708..63842113 100644
--- a/src/parse-gram.c
+++ b/src/parse-gram.c
@@ -689,7 +689,7 @@ yysymbol_name (yysymbol_kind_t yysymbol)
}
#endif
-# ifdef YYPRINT
+#ifdef YYPRINT
/* YYTOKNUM[NUM] -- (External) token number corresponding to the
(internal) symbol number NUM (which must be that of a token). */
static const yytype_int16 yytoknum[] =
@@ -702,7 +702,7 @@ static const yytype_int16 yytoknum[] =
305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
315
};
-# endif
+#endif
#define YYPACT_NINF (-80)
@@ -977,8 +977,8 @@ do { \
This macro was not mandated originally: define only if we know
we won't break user code: when these are the locations we know. */
-#ifndef YY_LOCATION_PRINT
-# if defined GRAM_LTYPE_IS_TRIVIAL && GRAM_LTYPE_IS_TRIVIAL
+# ifndef YY_LOCATION_PRINT
+# if defined GRAM_LTYPE_IS_TRIVIAL && GRAM_LTYPE_IS_TRIVIAL
/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
@@ -1008,13 +1008,13 @@ yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
return res;
}
-# define YY_LOCATION_PRINT(File, Loc) \
+# define YY_LOCATION_PRINT(File, Loc) \
yy_location_print_ (File, &(Loc))
-# else
-# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
-# endif
-#endif
+# else
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+# endif
+# endif /* !defined YY_LOCATION_PRINT */
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
@@ -1906,7 +1906,7 @@ yysetstate:
YYSTACK_RELOCATE (yyss_alloc, yyss);
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
YYSTACK_RELOCATE (yyls_alloc, yyls);
-# undef YYSTACK_RELOCATE
+# undef YYSTACK_RELOCATE
if (yyss1 != yyssa)
YYSTACK_FREE (yyss1);
}