File: logreport.c

package info (click to toggle)
autotrace 0.31.1-16
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,800 kB
  • sloc: ansic: 15,092; sh: 6,972; makefile: 273
file content (28 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* logreport.c: showing information to the user. */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* Def: HAVE_CONFIG_H */

#include "logreport.h"
#include "message.h"

#ifdef _EXPORTING
/* Says whether to output detailed progress reports, i.e., all the data
   on the fitting, as we run.  (-log)  */
FILE __declspec(dllexport) *log_file = NULL;

#else
/* Says whether to output detailed progress reports, i.e., all the data
   on the fitting, as we run.  (-log)  */
FILE *log_file = NULL;

#endif

void
flush_log_output (void)
{
  if (log_file)
    fflush (log_file);
}