"type.h" is a very generic name, but this header is very specific to
making the "fundaemtnal" stuff work, it maps genric types in two
distinct ways. Hence let's make clear in the header name already what
this is about.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "type.h"
+#include "types-fundamental.h"
sd_bool bootspec_pick_name_version(
const sd_char *os_pretty_name,
#endif
#include <limits.h>
-#include "type.h"
+#include "types-fundamental.h"
#define _align_(x) __attribute__((__aligned__(x)))
#define _const_ __attribute__((__const__))
'macro-fundamental.h',
'sha256.h',
'string-util-fundamental.h',
- 'type.h')
+ 'types-fundamental.h')
sources = '''
bootspec-fundamental.c
#include <efilib.h>
#endif
-#include "type.h"
+#include "types-fundamental.h"
struct sha256_ctx {
uint32_t H[8];
+++ /dev/null
-/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#pragma once
-
-#ifdef SD_BOOT
-#include <efi.h>
-
-typedef BOOLEAN sd_bool;
-typedef CHAR16 sd_char;
-typedef INTN sd_int;
-typedef UINTN size_t;
-
-#define true TRUE
-#define false FALSE
-#else
-#include <stdbool.h>
-#include <stdint.h>
-
-typedef bool sd_bool;
-typedef char sd_char;
-typedef int sd_int;
-#endif
--- /dev/null
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#ifdef SD_BOOT
+#include <efi.h>
+
+typedef BOOLEAN sd_bool;
+typedef CHAR16 sd_char;
+typedef INTN sd_int;
+typedef UINTN size_t;
+
+#define true TRUE
+#define false FALSE
+#else
+#include <stdbool.h>
+#include <stdint.h>
+
+typedef bool sd_bool;
+typedef char sd_char;
+typedef int sd_int;
+#endif