Coverage Report

Created: 2025-11-07 06:58

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/cryptsetup/lib/nls.h
Line
Count
Source
1
#ifndef CRYPTSETUP_NLS_H
2
#define CRYPTSETUP_NLS_H
3
4
#ifndef LOCALEDIR
5
#define LOCALEDIR "/usr/share/locale"
6
#endif
7
8
#if HAVE_LOCALE_H
9
# include <locale.h>
10
#else
11
# undef setlocale
12
# define setlocale(Category, Locale) /* empty */
13
#endif
14
15
#if ENABLE_NLS
16
# include <libintl.h>
17
0
# define _(Text) gettext (Text)
18
# ifdef gettext_noop
19
#  define N_(String) gettext_noop (String)
20
# else
21
#  define N_(String) (String)
22
# endif
23
#else
24
# undef bindtextdomain
25
# define bindtextdomain(Domain, Directory) /* empty */
26
# undef textdomain
27
# define textdomain(Domain) /* empty */
28
# define _(Text) (Text)
29
# define N_(Text) (Text)
30
# define ngettext(Singular, Plural, Count) \
31
    ( (Count) == 1 ? (Singular) : (Plural) )
32
#endif
33
34
#endif /* CRYPTSETUP_NLS_H */