Lines Matching refs:outs
92 struct OutStruct *outs = &per->outs; in tool_header_cb() local
112 if(outs->utf8seq[0]) in tool_header_cb()
113 memset(outs->utf8seq, 0, sizeof(outs->utf8seq)); in tool_header_cb()
215 if(outs->stream) { in tool_header_cb()
222 outs->filename = aprintf("%s/%s", per->config->output_dir, in tool_header_cb()
225 if(!outs->filename) in tool_header_cb()
229 outs->filename = filename; in tool_header_cb()
231 outs->is_cd_filename = TRUE; in tool_header_cb()
232 outs->s_isreg = TRUE; in tool_header_cb()
233 outs->fopened = FALSE; in tool_header_cb()
234 outs->alloc_filename = TRUE; in tool_header_cb()
236 if(!tool_create_output_file(outs, per->config)) in tool_header_cb()
238 if(tool_write_headers(&per->hdrcbdata, outs->stream)) in tool_header_cb()
243 if(!outs->stream && !tool_create_output_file(outs, per->config)) in tool_header_cb()
245 if(tool_write_headers(&per->hdrcbdata, outs->stream)) in tool_header_cb()
289 if(!outs->stream && !tool_create_output_file(outs, per->config)) in tool_header_cb()
300 fprintf(outs->stream, BOLD "%.*s" BOLDOFF ":", (int)namelen, ptr); in tool_header_cb()
302 fwrite(&value[1], cb - namelen - 1, 1, outs->stream); in tool_header_cb()
306 outs->stream); in tool_header_cb()
309 fwrite(&value[1], cb - namelen - 1, 1, outs->stream); in tool_header_cb()
314 fwrite(ptr, cb, 1, outs->stream); in tool_header_cb()