X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/40647d7b7b7fbeae828e0a032a3c3a5f204cdfa8..f31590988781d77ff5249987801d03a986368ca2:/src/out.c diff --git a/src/out.c b/src/out.c index 6b3f48f..ee1d328 100644 --- a/src/out.c +++ b/src/out.c @@ -6,6 +6,7 @@ extern FILE *out; extern FILE *outh; +extern FILE *outph; extern gboolean for_cpp; @@ -14,6 +15,7 @@ extern char *filebase; int outline = 1; int outhline = 1; +int outphline = 1; static int strchrcnt(char *s, char c) @@ -39,6 +41,8 @@ out_printf(FILE *fp,char *format,...) outline += strchrcnt(s,'\n'); else if(fp == outh) outhline += strchrcnt(s,'\n'); + else if(fp == outph) + outphline += strchrcnt(s,'\n'); else g_assert_not_reached(); @@ -53,6 +57,8 @@ out_addline_infile(FILE *fp, int line) outline++; else if(fp == outh) outhline++; + else if(fp == outph) + outphline++; else g_assert_not_reached(); @@ -71,6 +77,9 @@ out_addline_outfile(FILE *fp) } else if(fp == outh) { outhline++; fprintf(fp,"#line %d \"%s.h\"\n",outhline,filebase); + } else if(fp == outph) { + outphline++; + fprintf(fp,"#line %d \"%s-private.h\"\n",outphline,filebase); } else g_assert_not_reached();