@@ -322,19 +322,19 @@ typedef struct xLIST
322
322
#define listREMOVE_ITEM ( pxItemToRemove ) \
323
323
do { \
324
324
/* 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 ); \
338
338
} while ( 0 )
339
339
340
340
/*
@@ -371,16 +371,16 @@ typedef struct xLIST
371
371
\
372
372
/* Insert a new list item into ( pxList ), but rather than sort the list, \
373
373
* 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
+ \
384
384
( ( pxList )-> uxNumberOfItems ) = ( UBaseType_t ) ( ( ( pxList )-> uxNumberOfItems ) + 1U ); \
385
385
} while ( 0 )
386
386
0 commit comments