#include "alloc-util.h"
#include "hashmap.h"
#include "memory-util.h"
+#include "strv-fundamental.h"
typedef enum ExtractFlags ExtractFlags;
#include "stat-util.h"
#include "string-table.h"
#include "string-util.h"
+#include "strv.h"
#include "virt.h"
enum {
#include "secure-boot.h"
#include "shim.h"
#include "smbios.h"
+#include "strv-fundamental.h"
#include "ticks.h"
#include "tpm2-pcr.h"
#include "uki.h"
return (uint8_t*) p + n;
}
-#define _STRV_FOREACH(s, l, i) \
- for (typeof(*(l)) *s, *i = (l); (s = i) && *i; i++)
-
-#define STRV_FOREACH(s, l) \
- _STRV_FOREACH(s, l, UNIQ_T(i, UNIQ))
-
static inline bool ascii_isdigit(sd_char a) {
/* A pure ASCII, locale independent version of isdigit() */
return a >= '0' && a <= '9';
--- /dev/null
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#include "macro-fundamental.h"
+
+#define _STRV_FOREACH(s, l, i) \
+ for (typeof(*(l)) *s, *i = (l); (s = i) && *i; i++)
+
+#define STRV_FOREACH(s, l) \
+ _STRV_FOREACH(s, l, UNIQ_T(i, UNIQ))
#include "path-util.h"
#include "stdio-util.h"
#include "string-util.h"
+#include "strv.h"
#include "sysupdate-instance.h"
#include "sysupdate-pattern.h"