apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

macros.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define APT_ARRAY_SIZE(a)   (sizeof(a) / sizeof(a[0]))
 
#define FLAG(f)   (1L << (f))
 
#define SETFLAG(v, f)   ((v) |= FLAG(f))
 
#define CLRFLAG(v, f)   ((v) &=~FLAG(f))
 
#define CHKFLAG(v, f)   ((v) & FLAG(f) ? true : false)
 
#define APT_GCC_VERSION   0
 
#define APT_DEPRECATED
 
#define APT_DEPRECATED_MSG
 
#define APT_PURE
 
#define APT_NORETURN
 
#define APT_PRINTF(n)
 
#define APT_WEAK
 
#define APT_UNUSED
 
#define APT_NONNULL(...)
 
#define APT_MUSTCHECK
 
#define APT_SENTINEL
 
#define APT_PUBLIC
 
#define APT_HIDDEN
 
#define APT_COLD
 
#define APT_HOT
 
#define APT_IGNORE_DEPRECATED_PUSH
 
#define APT_IGNORE_DEPRECATED_POP
 
#define APT_IGNORE_DEPRECATED(XXX)   XXX
 
#define APT_OVERRIDE   /* no c++11 standard */
 
#define APT_PKG_MAJOR   6
 
#define APT_PKG_MINOR   0
 
#define APT_PKG_RELEASE   0
 
#define APT_PKG_ABI   ((APT_PKG_MAJOR * 100) + APT_PKG_MINOR)
 

Variables

static constexpr unsigned long long APT_BUFFER_SIZE = 64 * 1024
 

Macro Definition Documentation

◆ APT_ARRAY_SIZE

#define APT_ARRAY_SIZE (   a)    (sizeof(a) / sizeof(a[0]))

Definition at line 18 of file macros.h.

◆ APT_COLD

#define APT_COLD

Definition at line 86 of file macros.h.

◆ APT_DEPRECATED

#define APT_DEPRECATED

Definition at line 54 of file macros.h.

◆ APT_DEPRECATED_MSG

#define APT_DEPRECATED_MSG

Definition at line 55 of file macros.h.

◆ APT_GCC_VERSION

#define APT_GCC_VERSION   0

Definition at line 29 of file macros.h.

◆ APT_HIDDEN

#define APT_HIDDEN

Definition at line 78 of file macros.h.

◆ APT_HOT

#define APT_HOT

Definition at line 87 of file macros.h.

◆ APT_IGNORE_DEPRECATED

#define APT_IGNORE_DEPRECATED (   XXX)    XXX

Definition at line 105 of file macros.h.

◆ APT_IGNORE_DEPRECATED_POP

#define APT_IGNORE_DEPRECATED_POP

Definition at line 104 of file macros.h.

◆ APT_IGNORE_DEPRECATED_PUSH

#define APT_IGNORE_DEPRECATED_PUSH

Definition at line 103 of file macros.h.

◆ APT_MUSTCHECK

#define APT_MUSTCHECK

Definition at line 68 of file macros.h.

◆ APT_NONNULL

#define APT_NONNULL (   ...)

Definition at line 67 of file macros.h.

◆ APT_NORETURN

#define APT_NORETURN

Definition at line 57 of file macros.h.

◆ APT_OVERRIDE

#define APT_OVERRIDE   /* no c++11 standard */

Definition at line 111 of file macros.h.

◆ APT_PKG_ABI

#define APT_PKG_ABI   ((APT_PKG_MAJOR * 100) + APT_PKG_MINOR)

Definition at line 122 of file macros.h.

◆ APT_PKG_MAJOR

#define APT_PKG_MAJOR   6

Definition at line 119 of file macros.h.

◆ APT_PKG_MINOR

#define APT_PKG_MINOR   0

Definition at line 120 of file macros.h.

◆ APT_PKG_RELEASE

#define APT_PKG_RELEASE   0

Definition at line 121 of file macros.h.

◆ APT_PRINTF

#define APT_PRINTF (   n)

Definition at line 58 of file macros.h.

◆ APT_PUBLIC

#define APT_PUBLIC

Definition at line 77 of file macros.h.

◆ APT_PURE

#define APT_PURE

Definition at line 56 of file macros.h.

◆ APT_SENTINEL

#define APT_SENTINEL

Definition at line 76 of file macros.h.

◆ APT_UNUSED

#define APT_UNUSED

Definition at line 60 of file macros.h.

◆ APT_WEAK

#define APT_WEAK

Definition at line 59 of file macros.h.

◆ CHKFLAG

#define CHKFLAG (   v,
 
)    ((v) & FLAG(f) ? true : false)

Definition at line 24 of file macros.h.

◆ CLRFLAG

#define CLRFLAG (   v,
 
)    ((v) &=~FLAG(f))

Definition at line 23 of file macros.h.

◆ FLAG

#define FLAG (   f)    (1L << (f))

Definition at line 21 of file macros.h.

◆ SETFLAG

#define SETFLAG (   v,
 
)    ((v) |= FLAG(f))

Definition at line 22 of file macros.h.

Variable Documentation

◆ APT_BUFFER_SIZE

constexpr unsigned long long APT_BUFFER_SIZE = 64 * 1024
staticconstexpr

Definition at line 125 of file macros.h.

Referenced by Hashes::AddFD(), CopyFile(), and main().