ReactOS 0.4.15-dev-8241-g63935f8
stat.c
Go to the documentation of this file.
1/*
2 * ReactOS log2lines
3 * Written by Jan Roeloffzen
4 *
5 * - Statistics
6 */
7
8#include <stdio.h>
9#include <string.h>
10
11#include "version.h"
12#include "options.h"
13#include "util.h"
14#include "log2lines.h"
15
16void
17stat_print(FILE *outFile, PSUMM psumm)
18{
19 if (outFile)
20 {
21 clilog(outFile, "*** LOG2LINES SUMMARY ***\n");
22 clilog(outFile, "Translated: %d\n", psumm->translated);
23 clilog(outFile, "Reverted: %d\n", psumm->undo);
24 clilog(outFile, "Retranslated: %d\n", psumm->redo);
25 clilog(outFile, "Skipped: %d\n", psumm->skipped);
26 clilog(outFile, "Differ: %d\n", psumm->diff);
27 clilog(outFile, "Differ (function/source): %d\n", psumm->majordiff);
28 clilog(outFile, "Revision conflicts: %d\n", psumm->revconflicts);
29 clilog(outFile, "Regression candidates: %d\n", psumm->regfound);
30 clilog(outFile, "Offset error: %d\n", psumm->offset_errors);
31 clilog(outFile, "Total: %d\n", psumm->total);
32 clilog(outFile, "-------------------------------\n");
33 clilog(outFile, "Log2lines version: " LOG2LINES_VERSION "\n");
34 clilog(outFile, "Directory: %s\n", opt_dir);
35 clilog(outFile, "Passed options: %s\n", opt_scanned);
36 clilog(outFile, "-------------------------------\n");
37 }
38}
39
40void
42{
43 memset(psumm, 0, sizeof(SUMM));
44}
45
46/* EOF */
#define memset(x, y, z)
Definition: compat.h:39
char opt_scanned[LINESIZE]
Definition: options.c:44
char opt_dir[PATH_MAX]
Definition: options.c:40
#define clilog(outFile, fmt,...)
Definition: util.h:27
#define LOG2LINES_VERSION
Definition: version.h:10
int offset_errors
Definition: stat.h:22
int translated
Definition: stat.h:14
int undo
Definition: stat.h:15
int skipped
Definition: stat.h:17
int regfound
Definition: stat.h:21
int total
Definition: stat.h:23
int majordiff
Definition: stat.h:19
int revconflicts
Definition: stat.h:20
int diff
Definition: stat.h:18
int redo
Definition: stat.h:16
void stat_print(FILE *outFile, PSUMM psumm)
Definition: stat.c:17
void stat_clear(PSUMM psumm)
Definition: stat.c:41