aboutsummaryrefslogtreecommitdiffstats
path: root/libfonts_used_environs.c
blob: 1ce3c39e15fd7633fa9c32b176383320c2985702 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST


const char *const libfonts_used_environs[] = {
	"LIBFONTS_DEFAULT_SANS_SERIF",
	"LIBFONTS_DEFAULT_SERIF",
	"LIBFONTS_DEFAULT_MONOSPACE",
	"LIBFONTS_FONT_DIRS",
	"XDG_CONFIG_HOME",
	"HOME",
	NULL
};


#else


int
main(void)
{
	size_t i, j, n;
	for (n = 0; n < 100; n++)
		if (!libfonts_used_environs[n])
			break;
	ASSERT(n < 100);
	for (i = 0; i < n; i++)
		for (j = i + 1; j < n; j++)
			ASSERT(strcmp(libfonts_used_environs[i], libfonts_used_environs[j]));
	return 0;
}


#endif