From: Wolfgang (Blub) Bumiller Date: Sun, 18 Nov 2012 13:29:15 +0000 (+0100) Subject: Comment about why stringify is so short X-Git-Tag: 0.1.9~404^2~20 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=441a224435bcf7d76c66ba2d8055aed55efeb79e;p=xonotic%2Fgmqcc.git Comment about why stringify is so short --- 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;