Skip to content

Commit cd2096a

Browse files
committed
Fix formatting
1 parent 1ec813b commit cd2096a

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

include/list.h

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -322,19 +322,19 @@ typedef struct xLIST
322322
#define listREMOVE_ITEM( pxItemToRemove ) \
323323
do { \
324324
/* The list item knows which list it is in. Obtain the list from the list \
325-
* item. */ \
326-
List_t * const pxList = ( pxItemToRemove )->pxContainer; \
327-
\
328-
( pxItemToRemove )->pxNext->pxPrevious = ( pxItemToRemove )->pxPrevious; \
329-
( pxItemToRemove )->pxPrevious->pxNext = ( pxItemToRemove )->pxNext; \
330-
/* Make sure the index is left pointing to a valid item. */ \
331-
if( pxList->pxIndex == ( pxItemToRemove ) ) \
332-
{ \
333-
pxList->pxIndex = ( pxItemToRemove )->pxPrevious; \
334-
} \
335-
\
336-
( pxItemToRemove )->pxContainer = NULL; \
337-
( ( pxList )->uxNumberOfItems ) = ( UBaseType_t ) ( ( ( pxList )->uxNumberOfItems ) - 1U ); \
325+
* item. */ \
326+
List_t * const pxList = ( pxItemToRemove )->pxContainer; \
327+
\
328+
( pxItemToRemove )->pxNext->pxPrevious = ( pxItemToRemove )->pxPrevious; \
329+
( pxItemToRemove )->pxPrevious->pxNext = ( pxItemToRemove )->pxNext; \
330+
/* Make sure the index is left pointing to a valid item. */ \
331+
if( pxList->pxIndex == ( pxItemToRemove ) ) \
332+
{ \
333+
pxList->pxIndex = ( pxItemToRemove )->pxPrevious; \
334+
} \
335+
\
336+
( pxItemToRemove )->pxContainer = NULL; \
337+
( ( pxList )->uxNumberOfItems ) = ( UBaseType_t ) ( ( ( pxList )->uxNumberOfItems ) - 1U ); \
338338
} while( 0 )
339339

340340
/*
@@ -371,16 +371,16 @@ typedef struct xLIST
371371
\
372372
/* Insert a new list item into ( pxList ), but rather than sort the list, \
373373
* makes the new list item the last item to be removed by a call to \
374-
* listGET_OWNER_OF_NEXT_ENTRY(). */ \
375-
( pxNewListItem )->pxNext = pxIndex; \
376-
( pxNewListItem )->pxPrevious = pxIndex->pxPrevious; \
377-
\
378-
pxIndex->pxPrevious->pxNext = ( pxNewListItem ); \
379-
pxIndex->pxPrevious = ( pxNewListItem ); \
380-
\
381-
/* Remember which list the item is in. */ \
382-
( pxNewListItem )->pxContainer = ( pxList ); \
383-
\
374+
* listGET_OWNER_OF_NEXT_ENTRY(). */ \
375+
( pxNewListItem )->pxNext = pxIndex; \
376+
( pxNewListItem )->pxPrevious = pxIndex->pxPrevious; \
377+
\
378+
pxIndex->pxPrevious->pxNext = ( pxNewListItem ); \
379+
pxIndex->pxPrevious = ( pxNewListItem ); \
380+
\
381+
/* Remember which list the item is in. */ \
382+
( pxNewListItem )->pxContainer = ( pxList ); \
383+
\
384384
( ( pxList )->uxNumberOfItems ) = ( UBaseType_t ) ( ( ( pxList )->uxNumberOfItems ) + 1U ); \
385385
} while( 0 )
386386

tasks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
pxTemp = pxDelayedTaskList; \
256256
pxDelayedTaskList = pxOverflowDelayedTaskList; \
257257
pxOverflowDelayedTaskList = pxTemp; \
258-
xNumOfOverflows = ( BaseType_t )( xNumOfOverflows + 1 ); \
258+
xNumOfOverflows = ( BaseType_t ) ( xNumOfOverflows + 1 ); \
259259
prvResetNextTaskUnblockTime(); \
260260
} while( 0 )
261261

@@ -3969,7 +3969,7 @@ BaseType_t xTaskResumeAll( void )
39693969
* previous call to vTaskSuspendAll(). */
39703970
configASSERT( uxSchedulerSuspended != 0U );
39713971

3972-
uxSchedulerSuspended = ( UBaseType_t )( uxSchedulerSuspended - 1U );
3972+
uxSchedulerSuspended = ( UBaseType_t ) ( uxSchedulerSuspended - 1U );
39733973
portRELEASE_TASK_LOCK();
39743974

39753975
if( uxSchedulerSuspended == ( UBaseType_t ) 0U )

0 commit comments

Comments
 (0)