From 441a224435bcf7d76c66ba2d8055aed55efeb79e Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 18 Nov 2012 14:29:15 +0100 Subject: [PATCH] Comment about why stringify is so short --- ftepp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ftepp.c b/ftepp.c index fb89682..ad5e7c7 100644 --- a/ftepp.c +++ b/ftepp.c @@ -447,6 +447,10 @@ static void ftepp_stringify_token(ftepp_t *ftepp, pptoken *token) case TOKEN_STRINGCONST: ch = token->value; while (*ch) { + /* in preprocessor mode strings already are string, + * so we don't get actual newline bytes here. + * Still need to escape backslashes and quotes. + */ switch (*ch) { case '\\': ftepp_out(ftepp, "\\\\", false); break; case '"': ftepp_out(ftepp, "\\\"", false); break; -- 2.39.2