int outphline = 1;
static gboolean in_outph = TRUE;
+extern char file_sep;
+
static int
strchrcnt(char *s, char c)
{
va_list ap;
char *s;
+ if (no_write)
+ return;
+
va_start(ap, format);
s = g_strdup_vprintf(format, ap);
va_end(ap);
void
out_addline_infile(FILE *fp, int line)
{
- if(no_lines)
+ if(no_lines || no_write)
return;
if(fp == out) {
void
out_addline_outfile(FILE *fp)
{
- if(no_lines)
+ if(no_lines || no_write)
return;
if(fp == out) {
} else if(fp == outph) {
if(in_outph) return;
outphline++;
- fprintf(fp,"#line %d \"%s-private.h\"\n",outphline,filebase);
+ fprintf(fp,"#line %d \"%s%cprivate.h\"\n",outphline,filebase,file_sep);
in_outph = TRUE;
} else
g_assert_not_reached();