Coverage Report

Created: 2026-10-17 06:23

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gdbm/src/version.c
Line
Count
Source
1
/* version.c - This is file contains the version number for gdbm source. */
2
3
/* This file is part of GDBM, the GNU data base manager.
4
   Copyright (C) 1990-2025 Free Software Foundation, Inc.
5
6
   GDBM is free software; you can redistribute it and/or modify
7
   it under the terms of the GNU General Public License as published by
8
   the Free Software Foundation; either version 3, or (at your option)
9
   any later version.
10
11
   GDBM is distributed in the hope that it will be useful,
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
   GNU General Public License for more details.
15
16
   You should have received a copy of the GNU General Public License
17
   along with GDBM. If not, see <http://www.gnu.org/licenses/>.   */
18
19
#include "autoconf.h"
20
#include "gdbm.h"
21
22
/* Keep a string with the version number in it.
23
   The DIST_DATE magic below is replaced by the actual date when
24
   making the distdir. */
25
const char * gdbm_version = "GDBM version " PACKAGE_VERSION ". "
26
/*@DIST_DATE@*/
27
#if defined(__STDC__) && defined(__DATE__) && defined(__TIME__)
28
    " (built " __DATE__ " " __TIME__ ")"
29
#endif
30
;
31
int const gdbm_version_number[3] = {
32
  GDBM_VERSION_MAJOR,
33
  GDBM_VERSION_MINOR,
34
  GDBM_VERSION_PATCH
35
};
36
37
int
38
gdbm_version_cmp (int const a[], int const b[])
39
0
{
40
0
  if (a[0] > b[0])
41
0
    return 1;
42
0
  else if (a[0] < b[0])
43
0
    return -1;
44
45
0
  if (a[1] > b[1])
46
0
    return 1;
47
0
  else if (a[1] < b[1])
48
0
    return -1;
49
50
0
  if (a[2] > b[2])
51
0
    return 1;
52
0
  else if (a[2] < b[2])
53
0
    return -1;
54
55
0
  return 0;
56
0
}