From 8827c058224a05bd79300c3ba0aa057a5f5076c8 Mon Sep 17 00:00:00 2001 From: hanzj Date: Sat, 6 Jun 2026 15:38:29 +0800 Subject: [PATCH] Fix incorrect #endif preprocessor comments in croutine.c and queue.c croutine.c: #if condition is ( configUSE_CO_ROUTINES != 0 ) but the #endif comment incorrectly said == 0, reversing the logic. queue.c: #if condition is ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) but the #endif comment incorrectly said configSUPPORT_STATIC_ALLOCATION, naming the wrong configuration option. These are purely cosmetic comment fixes with zero runtime impact. --- croutine.c | 2 +- queue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/croutine.c b/croutine.c index 84e1b99bd71..f8ab8ff8794 100644 --- a/croutine.c +++ b/croutine.c @@ -402,4 +402,4 @@ } /*-----------------------------------------------------------*/ -#endif /* configUSE_CO_ROUTINES == 0 */ +#endif /* configUSE_CO_ROUTINES != 0 */ diff --git a/queue.c b/queue.c index 25613bf3f8b..37d953ac94b 100644 --- a/queue.c +++ b/queue.c @@ -563,7 +563,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue, return pxNewQueue; } -#endif /* configSUPPORT_STATIC_ALLOCATION */ +#endif /* configSUPPORT_DYNAMIC_ALLOCATION */ /*-----------------------------------------------------------*/ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,