From: Lennart Poettering Date: Sat, 19 Jul 2008 19:21:15 +0000 (+0200) Subject: redirect gcc output to the proper original lines X-Git-Tag: upstream/0.19~171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be3bdba18c0873fc5f54742a12469a6ffbae9b12;p=platform%2Fupstream%2Flibatasmart.git redirect gcc output to the proper original lines --- diff --git a/strpool.c b/strpool.c index 32f1ed7..51337bd 100644 --- a/strpool.c +++ b/strpool.c @@ -556,6 +556,10 @@ static int process(FILE *in, FILE *out, const char*ifname) { "#define _P(x) (_strpool_ + ((x) - (const char*) 0))\n" "#endif\n\n"); + + if (ifname) + fprintf(out, "#line 1 \"%s\"\n", ifname); + dump_text(out, first); fwrite(remain, 1, remain_size, out);