aboutsummaryrefslogtreecommitdiffstats
path: root/libfonts_used_environs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfonts_used_environs.c')
-rw-r--r--libfonts_used_environs.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/libfonts_used_environs.c b/libfonts_used_environs.c
new file mode 100644
index 0000000..54232b4
--- /dev/null
+++ b/libfonts_used_environs.c
@@ -0,0 +1,34 @@
+/* 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",
+ "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