From 2aeda41a7a58c2ed6f0e5937831f347964399438 Mon Sep 17 00:00:00 2001 From: Yurii Cherniavskyi Date: Thu, 21 Dec 2023 14:18:37 +0200 Subject: [PATCH 1/2] Introduce internal includes section to avoid potential implicit declaration warnings --- libcanard/canard.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libcanard/canard.c b/libcanard/canard.c index d4577bf..5cd28aa 100644 --- a/libcanard/canard.c +++ b/libcanard/canard.c @@ -3,7 +3,6 @@ /// Author: Pavel Kirienko #include "canard.h" -#include "_canard_cavl.h" #include // --------------------------------------------- BUILD CONFIGURATION --------------------------------------------- @@ -38,6 +37,10 @@ # error "Unsupported language: ISO C99 or a newer version is required." #endif +// --------------------------------------------- INTERNAL INCLUDES ---------------------------------------------- + +#include "_canard_cavl.h" + // --------------------------------------------- COMMON DEFINITIONS --------------------------------------------- #define BITS_PER_BYTE 8U From 648de9f4379f2512560c2cce6166922dbf59fa88 Mon Sep 17 00:00:00 2001 From: Yurii Cherniavskyi Date: Mon, 25 Dec 2023 17:48:07 +0200 Subject: [PATCH 2/2] Add revision description and internal includes section comment --- README.md | 5 +++++ libcanard/canard.c | 1 + 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 4ebc819..f651750 100644 --- a/README.md +++ b/README.md @@ -241,6 +241,11 @@ If you find the examples to be unclear or incorrect, please, open a ticket. - Refactor the transfer reassembly state machine to enhance its maintainability and robustness. +#### v3.1.2 + +- Allow redefinition of CANARD_ASSERT via the config header; + see [#219](https://github.com/OpenCyphal/libcanard/pull/219). + ### v3.0 - Update branding as [UAVCAN v1 is renamed to Cyphal](https://forum.opencyphal.org/t/uavcan-v1-is-now-cyphal/1622). diff --git a/libcanard/canard.c b/libcanard/canard.c index 5cd28aa..863de50 100644 --- a/libcanard/canard.c +++ b/libcanard/canard.c @@ -38,6 +38,7 @@ #endif // --------------------------------------------- INTERNAL INCLUDES ---------------------------------------------- +// The internal includes are placed here after the config header is included and CANARD_ASSERT is defined. #include "_canard_cavl.h"