|author||Demi Obenour <email@example.com>||2016-09-27 10:54:16 -0400|
|committer||Will Estes <firstname.lastname@example.org>||2016-10-05 19:25:56 -0400|
Fix M4 quoting of section 3.
This fixes M4 quoting of section 3 of the input file, including escape sequences and character constants. Tests were added to verify the behavior in section 3 with respect to quoting. Both escaping of quotes and quoting of potential macro-start characters are tested. Existing tests were also fixed to account for the new -- and now correct -- behavior. Many tests relied on the old behavior of expanding M4 macros in section 3. They needed to be updated for the new behavior.
Diffstat (limited to 'src/filter.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filter.c b/src/filter.c
index 1ac199f..9d0ace5 100644
@@ -390,7 +390,7 @@ int filter_fix_linedirs (struct filter *chain)
/* Adjust the line directives. */
in_gen = true;
snprintf (buf, readsz, "#line %d \"%s\"\n",
- lineno + 1, filename);
+ lineno, filename);
/* it's a #line directive for code we didn't write */