mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-06-07 04:49:04 -04:00
[kernel & MemMang] use space to replace tab and remove meaningless space in the end of each line (#314)
Signed-off-by: Meco Man <920369182@qq.com> Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
This commit is contained in:
parent
46f7feba81
commit
d8770748ff
|
@ -170,7 +170,7 @@ void * pvPortMalloc( size_t xWantedSize )
|
||||||
|
|
||||||
if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
|
if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
|
||||||
{
|
{
|
||||||
/* Traverse the list from the start (lowest address) block until
|
/* Traverse the list from the start (lowest address) block until
|
||||||
* one of adequate size is found. */
|
* one of adequate size is found. */
|
||||||
pxPreviousBlock = &xStart;
|
pxPreviousBlock = &xStart;
|
||||||
pxBlock = xStart.pxNextFreeBlock;
|
pxBlock = xStart.pxNextFreeBlock;
|
||||||
|
|
|
@ -45,8 +45,8 @@
|
||||||
*
|
*
|
||||||
* typedef struct HeapRegion
|
* typedef struct HeapRegion
|
||||||
* {
|
* {
|
||||||
* uint8_t *pucStartAddress; << Start address of a block of memory that will be part of the heap.
|
* uint8_t *pucStartAddress; << Start address of a block of memory that will be part of the heap.
|
||||||
* size_t xSizeInBytes; << Size of the block of memory.
|
* size_t xSizeInBytes; << Size of the block of memory.
|
||||||
* } HeapRegion_t;
|
* } HeapRegion_t;
|
||||||
*
|
*
|
||||||
* The array is terminated using a NULL zero sized region definition, and the
|
* The array is terminated using a NULL zero sized region definition, and the
|
||||||
|
@ -180,7 +180,7 @@ void * pvPortMalloc( size_t xWantedSize )
|
||||||
|
|
||||||
if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
|
if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
|
||||||
{
|
{
|
||||||
/* Traverse the list from the start (lowest address) block until
|
/* Traverse the list from the start (lowest address) block until
|
||||||
* one of adequate size is found. */
|
* one of adequate size is found. */
|
||||||
pxPreviousBlock = &xStart;
|
pxPreviousBlock = &xStart;
|
||||||
pxBlock = xStart.pxNextFreeBlock;
|
pxBlock = xStart.pxNextFreeBlock;
|
||||||
|
|
Loading…
Reference in a new issue