From 0ef26fec6301bdaeec4aa7deeeeeae9c785432a3 Mon Sep 17 00:00:00 2001 From: David Rebbe Date: Wed, 25 Mar 2026 13:28:56 +0000 Subject: [PATCH] C2: Fix preprocessor defines for libclang parsing --- include/icsneo/icsneoc2messages.h | 10 +++++----- include/icsneo/icsneoc2types.h | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/include/icsneo/icsneoc2messages.h b/include/icsneo/icsneoc2messages.h index ef0afed..f19f6ad 100644 --- a/include/icsneo/icsneoc2messages.h +++ b/include/icsneo/icsneoc2messages.h @@ -97,11 +97,11 @@ icsneoc2_error_t icsneoc2_message_data_set(icsneoc2_message_t* message, uint8_t* */ icsneoc2_error_t icsneoc2_message_data_get(icsneoc2_message_t* message, uint8_t* data, size_t* data_length); -#define ICSNEOC2_MESSAGE_CAN_FLAGS_RTR UINT64_C(0x01) // Remote Transmission Request -#define ICSNEOC2_MESSAGE_CAN_FLAGS_IDE UINT64_C(0x02) // Identifier Extension -#define ICSNEOC2_MESSAGE_CAN_FLAGS_FDF UINT64_C(0x04) // FD Format Indicator -#define ICSNEOC2_MESSAGE_CAN_FLAGS_BRS UINT64_C(0x08) // Bit Rate Switch (FD only) -#define ICSNEOC2_MESSAGE_CAN_FLAGS_ESI UINT64_C(0x10) // Error State Indicator (FD only) +#define ICSNEOC2_MESSAGE_CAN_FLAGS_RTR 0x01 // Remote Transmission Request +#define ICSNEOC2_MESSAGE_CAN_FLAGS_IDE 0x02 // Identifier Extension +#define ICSNEOC2_MESSAGE_CAN_FLAGS_FDF 0x04 // FD Format Indicator +#define ICSNEOC2_MESSAGE_CAN_FLAGS_BRS 0x08 // Bit Rate Switch (FD only) +#define ICSNEOC2_MESSAGE_CAN_FLAGS_ESI 0x10 // Error State Indicator (FD only) typedef uint64_t icsneoc2_message_can_flags_t; diff --git a/include/icsneo/icsneoc2types.h b/include/icsneo/icsneoc2types.h index f4e78eb..cc10720 100644 --- a/include/icsneo/icsneoc2types.h +++ b/include/icsneo/icsneoc2types.h @@ -6,11 +6,11 @@ extern "C" { #include -#define ICSNEOC2_OPEN_OPTIONS_NONE UINT32_C(0x0) // No options -#define ICSNEOC2_OPEN_OPTIONS_GO_ONLINE UINT32_C(0x1) // After opening, go online -#define ICSNEOC2_OPEN_OPTIONS_SYNC_RTC UINT32_C(0x2) // After opening, sync RTC -#define ICSNEOC2_OPEN_OPTIONS_ENABLE_AUTO_UPDATE UINT32_C(0x4) // After opening, enable auto update -#define ICSNEOC2_OPEN_OPTIONS_FORCE_UPDATE UINT32_C(0x8) // After opening, force update +#define ICSNEOC2_OPEN_OPTIONS_NONE 0x0 // No options +#define ICSNEOC2_OPEN_OPTIONS_GO_ONLINE 0x1 // After opening, go online +#define ICSNEOC2_OPEN_OPTIONS_SYNC_RTC 0x2 // After opening, sync RTC +#define ICSNEOC2_OPEN_OPTIONS_ENABLE_AUTO_UPDATE 0x4 // After opening, enable auto update +#define ICSNEOC2_OPEN_OPTIONS_FORCE_UPDATE 0x8 // After opening, force update typedef uint32_t icsneoc2_open_options_t; @@ -366,9 +366,9 @@ typedef enum _icsneoc2_disk_layout_t { typedef uint8_t icsneoc2_disk_layout_t; -#define ICSNEOC2_DISK_FORMAT_FLAGS_PRESENT UINT32_C(0x1) // Indicates that the disk is present -#define ICSNEOC2_DISK_FORMAT_FLAGS_INITIALIZED UINT32_C(0x2) // Indicates that the disk is initialized -#define ICSNEOC2_DISK_FORMAT_FLAGS_FORMATTED UINT32_C(0x4) // Indicates that the disk is already formatted +#define ICSNEOC2_DISK_FORMAT_FLAGS_PRESENT 0x1 // Indicates that the disk is present +#define ICSNEOC2_DISK_FORMAT_FLAGS_INITIALIZED 0x2 // Indicates that the disk is initialized +#define ICSNEOC2_DISK_FORMAT_FLAGS_FORMATTED 0x4 // Indicates that the disk is already formatted typedef uint32_t icsneoc2_disk_format_flags_t;