style: introduce & use STRING_1GROW

* src/flex-scanner.h (STRING_1GROW): New.
* src/scan-gram.l, src/scan-skel.l: Use it.
This commit is contained in:
Akim Demaille
2020-06-13 15:20:56 +02:00
parent e088b4f90f
commit b7fbfd050e
3 changed files with 19 additions and 16 deletions
+3 -3
View File
@@ -102,9 +102,9 @@ static void output_mapped_file (char const *name);
{
[^@]+ STRING_GROW ();
"@@" obstack_1grow (&obstack_for_string, '@');
"@{" obstack_1grow (&obstack_for_string, '[');
"@}" obstack_1grow (&obstack_for_string, ']');
"@@" STRING_1GROW ('@');
"@{" STRING_1GROW ('[');
"@}" STRING_1GROW (']');
"@'" continue; /* For starting an argument that begins with whitespace. */
@\n continue;