]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Comment about why stringify is so short
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 18 Nov 2012 13:29:15 +0000 (14:29 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 18 Nov 2012 13:29:15 +0000 (14:29 +0100)
ftepp.c

diff --git a/ftepp.c b/ftepp.c
index fb89682547fd0f107b050e65f58377ad4b9664b4..ad5e7c757549e164e29313ede2cdf8823fc09c78 100644 (file)
--- 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;