pike.git / src / post_modules / GL / gen.pike

version» Context lines:

pike.git/src/post_modules/GL/gen.pike:431:    res += " add_integer_constant(\""+co+"\", "+    (string)constants[co]+", 0);\n";    res += " post_init();\n";    res += "}\n";    return res;   }      void main(int argc, array(string) argv)   {    array(string) f = Stdio.File("stdin")->read()/"@@"; -  write(({f[0],gen(),@f[1..]})*""); +  write(({ f[0], +  sprintf("\n#line 1 %O\n", "generated by " + __FILE__), +  gen(), +  sprintf("\n#line %d \"auto.c.in\"\n", sizeof(f[0]/"\n")), +  @f[1..]})*"");   }