redirect gcc output to the proper original lines
authorLennart Poettering <lennart@poettering.net>
Sat, 19 Jul 2008 19:21:15 +0000 (21:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 19 Jul 2008 19:21:15 +0000 (21:21 +0200)
strpool.c

index 32f1ed7..51337bd 100644 (file)
--- 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);