diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-02-10 16:38:22 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-02-10 17:44:23 +0100 |
commit | f23b879ff5cb259660aa0b66556258e4c23f2488 (patch) | |
tree | 14cbafdaa19dd3eacf17c9a1d70afa70151399db /README | |
parent | 8b2d233283859d5a6cebe1f368d790fbd13ecf13 (diff) | |
download | bison-f23b879ff5cb259660aa0b66556258e4c23f2488.tar.gz |
doc: a single space before closing comments
I don't think this style:
/* If buffer is full, make it bigger. */
if (i == length)
{
length *= 2;
symbuf = (char *) realloc (symbuf, length + 1);
}
/* Add this character to the buffer. */
symbuf[i++] = c;
/* Get another character. */
c = getchar ();
or more readable than
/* If buffer is full, make it bigger. */
if (i == length)
{
length *= 2;
symbuf = (char *) realloc (symbuf, length + 1);
}
/* Add this character to the buffer. */
symbuf[i++] = c;
/* Get another character. */
c = getchar ();
Actually, I think the latter is more readable, and helps with width
issues in the PDF. As a matter of fact, I would happily move to //
only for single line comments.
* doc/bison.texi: A single space before closing comments.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions