xapian-core  1.4.21
Macros
version.h File Reference

Define preprocessor symbols for the library version. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define XAPIAN_ENABLE_VISIBILITY
 The library was compiled with GCC's -fvisibility=hidden option. More...
 
#define XAPIAN_VERSION   "1.4.21"
 The version of Xapian as a C string literal. More...
 
#define XAPIAN_MAJOR_VERSION   1
 The major component of the Xapian version. More...
 
#define XAPIAN_MINOR_VERSION   4
 The minor component of the Xapian version. More...
 
#define XAPIAN_REVISION   21
 The revision component of the Xapian version. More...
 
#define XAPIAN_DOCID_BASE_TYPE   int
 Base (signed) type for Xapian::docid and related types. More...
 
#define XAPIAN_TERMCOUNT_BASE_TYPE   int
 Base (signed) type for Xapian::termcount and related types. More...
 
#define XAPIAN_TERMPOS_BASE_TYPE   int
 Base (signed) type for Xapian::termpos. More...
 
#define XAPIAN_TOTALLENGTH_TYPE   unsigned long
 Type for returning total document length. More...
 
#define XAPIAN_REVISION_TYPE   unsigned long
 Underlying type for Xapian::rev. More...
 
#define XAPIAN_HAS_CHERT_BACKEND   1
 XAPIAN_HAS_CHERT_BACKEND Defined if the chert backend is enabled. More...
 
#define XAPIAN_HAS_GLASS_BACKEND   1
 XAPIAN_HAS_GLASS_BACKEND Defined if the glass backend is enabled. More...
 
#define XAPIAN_HAS_INMEMORY_BACKEND   1
 XAPIAN_HAS_INMEMORY_BACKEND Defined if the inmemory backend is enabled. More...
 
#define XAPIAN_HAS_REMOTE_BACKEND   1
 XAPIAN_HAS_REMOTE_BACKEND Defined if the remote backend is enabled. More...
 
#define XAPIAN_AT_LEAST(A, B, C)
 XAPIAN_AT_LEAST(A,B,C) checks for xapian-core >= A.B.C - use like so: More...
 

Detailed Description

Define preprocessor symbols for the library version.

Definition in file version.h.

Macro Definition Documentation

◆ XAPIAN_AT_LEAST

#define XAPIAN_AT_LEAST (   A,
  B,
  C 
)
Value:
Definition: unittest.cc:682
#define XAPIAN_MAJOR_VERSION
The major component of the Xapian version.
Definition: version.h:44
#define XAPIAN_REVISION
The revision component of the Xapian version.
Definition: version.h:54
Definition: unittest.cc:672
#define XAPIAN_MINOR_VERSION
The minor component of the Xapian version.
Definition: version.h:49
#define C(X)

XAPIAN_AT_LEAST(A,B,C) checks for xapian-core >= A.B.C - use like so:

#if XAPIAN_AT_LEAST(1,4,2)
/* Code needing features needing Xapian >= 1.4.2. */
#endif

Added in Xapian 1.4.2.

Definition at line 92 of file version.h.

◆ XAPIAN_DOCID_BASE_TYPE

#define XAPIAN_DOCID_BASE_TYPE   int

Base (signed) type for Xapian::docid and related types.

Definition at line 57 of file version.h.

◆ XAPIAN_ENABLE_VISIBILITY

#define XAPIAN_ENABLE_VISIBILITY

The library was compiled with GCC's -fvisibility=hidden option.

Definition at line 36 of file version.h.

◆ XAPIAN_HAS_CHERT_BACKEND

#define XAPIAN_HAS_CHERT_BACKEND   1

XAPIAN_HAS_CHERT_BACKEND Defined if the chert backend is enabled.

Definition at line 72 of file version.h.

◆ XAPIAN_HAS_GLASS_BACKEND

#define XAPIAN_HAS_GLASS_BACKEND   1

XAPIAN_HAS_GLASS_BACKEND Defined if the glass backend is enabled.

Definition at line 75 of file version.h.

◆ XAPIAN_HAS_INMEMORY_BACKEND

#define XAPIAN_HAS_INMEMORY_BACKEND   1

XAPIAN_HAS_INMEMORY_BACKEND Defined if the inmemory backend is enabled.

Definition at line 78 of file version.h.

◆ XAPIAN_HAS_REMOTE_BACKEND

#define XAPIAN_HAS_REMOTE_BACKEND   1

XAPIAN_HAS_REMOTE_BACKEND Defined if the remote backend is enabled.

Definition at line 81 of file version.h.

◆ XAPIAN_MAJOR_VERSION

#define XAPIAN_MAJOR_VERSION   1

The major component of the Xapian version.

E.g. for Xapian 1.0.14 this would be: 1

Definition at line 44 of file version.h.

◆ XAPIAN_MINOR_VERSION

#define XAPIAN_MINOR_VERSION   4

The minor component of the Xapian version.

E.g. for Xapian 1.0.14 this would be: 0

Definition at line 49 of file version.h.

◆ XAPIAN_REVISION

#define XAPIAN_REVISION   21

The revision component of the Xapian version.

E.g. for Xapian 1.0.14 this would be: 14

Definition at line 54 of file version.h.

◆ XAPIAN_REVISION_TYPE

#define XAPIAN_REVISION_TYPE   unsigned long

Underlying type for Xapian::rev.

Definition at line 69 of file version.h.

◆ XAPIAN_TERMCOUNT_BASE_TYPE

#define XAPIAN_TERMCOUNT_BASE_TYPE   int

Base (signed) type for Xapian::termcount and related types.

Definition at line 60 of file version.h.

◆ XAPIAN_TERMPOS_BASE_TYPE

#define XAPIAN_TERMPOS_BASE_TYPE   int

Base (signed) type for Xapian::termpos.

Definition at line 63 of file version.h.

◆ XAPIAN_TOTALLENGTH_TYPE

#define XAPIAN_TOTALLENGTH_TYPE   unsigned long

Type for returning total document length.

Definition at line 66 of file version.h.

◆ XAPIAN_VERSION

#define XAPIAN_VERSION   "1.4.21"

The version of Xapian as a C string literal.

Definition at line 39 of file version.h.