summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2012-12-14 13:56:11 +0100
committerAkim Demaille <akim@lrde.epita.fr>2012-12-14 13:58:04 +0100
commitb9278c7d174c1be5d7482343c5e433f428657ed0 (patch)
tree90b6cb9385cd4cb10505f4e0b799ee3a2c7448a2 /src
parente96b1b2c452d62d0fe9cef4338c882db0b7d0691 (diff)
parent2bd435c36c0dfdefb07cef05dec851ec75bab20b (diff)
downloadbison-b9278c7d174c1be5d7482343c5e433f428657ed0.tar.gz
Merge branch 'origin/maint'
* origin/maint: maint: credit Wojciech Polak maint: post-release administrivia version 2.7 yacc.c: scope reduction tests: C90 compliance fix C90 compliance glr.c: scope reduction gnulib: update Conflicts: NEWS gnulib src/scan-gram.l src/system.h
Diffstat (limited to 'src')
-rw-r--r--src/graphviz.h52
-rw-r--r--src/ielr.c8
-rw-r--r--src/scan-gram.l2
-rw-r--r--src/system.h2
4 files changed, 37 insertions, 27 deletions
diff --git a/src/graphviz.h b/src/graphviz.h
index 371b15c5..239cdd21 100644
--- a/src/graphviz.h
+++ b/src/graphviz.h
@@ -24,38 +24,48 @@
#include "state.h"
-/// Begin a Dot graph.
-/// \param fout output stream.
+/** Begin a Dot graph.
+ *
+ * \param fout output stream.
+ */
void start_graph (FILE *fout);
-/// Output a Dot node.
-/// \param id identifier of the node
-/// \param label human readable label of the node (no Dot escaping needed).
-/// \param fout output stream.
+/** Output a Dot node.
+ *
+ * \param id identifier of the node
+ * \param label human readable label of the node (no Dot escaping needed).
+ * \param fout output stream.
+ */
void output_node (int id, char const *label, FILE *fout);
-/// Output a Dot edge.
-/// \param source id of the source node
-/// \param destination id of the target node
-/// \param label human readable label of the edge
-/// (no Dot escaping needed). Can be 0.
-/// \param style Dot style of the edge (e.g., "dotted" or "solid").
-/// \param fout output stream.
+/** Output a Dot edge.
+ * \param source id of the source node
+ * \param destination id of the target node
+ * \param label human readable label of the edge
+ * (no Dot escaping needed). Can be 0.
+ * \param style Dot style of the edge (e.g., "dotted" or "solid").
+ * \param fout output stream.
+ */
void output_edge (int source, int destination, char const *label,
char const *style, FILE *fout);
-/// Output a reduction.
-/// \param s current state
-/// \param reds the set of reductions
-/// \param fout output stream.
+/** Output a reduction.
+ * \param s current state
+ * \param reds the set of reductions
+ * \param fout output stream.
+ */
void output_red (state const *s, reductions const *reds, FILE *fout);
-/// End a Dot graph.
-/// \param fout output stream.
+/** End a Dot graph.
+ *
+ * \param fout output stream.
+ */
void finish_graph (FILE *fout);
-/// Escape a lookahead token.
-/// \param name the token.
+/** Escape a lookahead token.
+ *
+ * \param name the token.
+ */
char const *escape (char const *name);
#endif /* ! GRAPHVIZ_H_ */
diff --git a/src/ielr.c b/src/ielr.c
index 39e9cb66..997ba13a 100644
--- a/src/ielr.c
+++ b/src/ielr.c
@@ -758,8 +758,8 @@ ielr_compute_state (bitsetv follow_kernel_items, bitsetv always_follows,
if (!bitset_empty_p (lookaheads[i]))
break;
}
- // bitset_equal_p uses the size of the first argument, so
- // lookaheads[i] must be the second argument.
+ /* bitset_equal_p uses the size of the first argument,
+ so lookaheads[i] must be the second argument. */
else if (!bitset_equal_p ((*this_isocorep)->lookaheads[i],
lookaheads[i]))
break;
@@ -1187,8 +1187,8 @@ ielr (void)
free (to_state);
if (lr_type == LR_TYPE__CANONICAL_LR)
{
- // Reduction lookaheads are computed in ielr_split_states above but are
- // timed as part of phase 4.
+ /* Reduction lookaheads are computed in ielr_split_states above
+ but are timed as part of phase 4. */
set_goto_map ();
}
else
diff --git a/src/scan-gram.l b/src/scan-gram.l
index e6f42ea9..d02b26bb 100644
--- a/src/scan-gram.l
+++ b/src/scan-gram.l
@@ -1012,7 +1012,7 @@ unexpected_end (boundary start, char const *msgid, char const *token_end)
loc.start = start;
loc.end = scanner_cursor;
token_end = quote (token_end);
- // Instead of '\'', display "'".
+ /* Instead of '\'', display "'". */
if (STREQ (token_end, "'\\''"))
token_end = "\"'\"";
complain (&loc, complaint, _(msgid), token_end);
diff --git a/src/system.h b/src/system.h
index 987ebe2a..01cce6dc 100644
--- a/src/system.h
+++ b/src/system.h
@@ -65,7 +65,7 @@
typedef size_t uintptr_t;
#endif
-// Version mismatch.
+/* Version mismatch. */
#define EX_MISMATCH 63
/*---------.