Skip to content

Commit bcfdfb6

Browse files
author
Me No Dev
committed
more bad definitions
interesting that they differ in issues with 1.3 over the same source did pvPort* change in between?
1 parent 0fd1201 commit bcfdfb6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

libraries/ESP8266WiFi/src/lwip/mem.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ typedef size_t mem_size_t;
5151
* allow these defines to be overridden.
5252
*/
5353
#ifndef mem_free
54-
#define mem_free(p) vPortFree(p)
54+
#define mem_free(p) vPortFree(p, "", 0)
5555
#endif
5656
#ifndef mem_malloc
57-
#define mem_malloc(s) pvPortMalloc(s)
57+
#define mem_malloc(s) pvPortMalloc(s, "", 0)
5858
#endif
5959
#ifndef mem_calloc
60-
#define mem_calloc(s) pvPortCalloc(s)
60+
#define mem_calloc(s) pvPortCalloc(s, "", 0)
6161
#endif
6262
#ifndef mem_realloc
63-
#define mem_realloc(p, s) pvPortRealloc(p, s)
63+
#define mem_realloc(p, s) pvPortRealloc(p, s, "", 0)
6464
#endif
6565
#ifndef mem_zalloc
66-
#define mem_zalloc(s) pvPortZalloc(s)
66+
#define mem_zalloc(s) pvPortZalloc(s, "", 0)
6767
#endif
6868

6969
#ifndef os_malloc

libraries/ESP8266WiFi/src/lwip/mem_manager.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "c_types.h"
55

6-
/*------------------------±äÁ¿¶¨Òå------------------------*/
6+
/*------------------------��������------------------------*/
77

88
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
99
#ifndef IOT_SIP_MODE
@@ -61,17 +61,17 @@ static const unsigned short heapSTRUCT_SIZE = ( sizeof( xBlockLink ) + portBYTE_
6161
//static size_t xFreeBytesRemaining = ( ( size_t ) configADJUSTED_HEAP_SIZE ) & ( ( size_t ) ~portBYTE_ALIGNMENT_MASK );
6262

6363

64-
/*------------------------º¯ÊýÉùÃ÷-----------------------------------*/
64+
/*------------------------��������-----------------------------------*/
6565

6666
//static void prvInsertBlockIntoFreeList( xBlockLink *pxBlockToInsert ) ;//ICACHE_FLASH_ATTR;
6767

6868
//static void prvHeapInit( void ) ;//ICACHE_FLASH_ATTR;
6969

7070
void vApplicationMallocFailedHook( void ) ;//ICACHE_FLASH_ATTR;
7171

72-
void *pvPortMalloc( size_t xWantedSize ) ;//ICACHE_FLASH_ATTR;
72+
//void *pvPortMalloc( size_t xWantedSize ) ;//ICACHE_FLASH_ATTR;
7373

74-
void vPortFree( void *pv ) ;//ICACHE_FLASH_ATTR;
74+
//void vPortFree( void *pv ) ;//ICACHE_FLASH_ATTR;
7575

7676
size_t xPortGetFreeHeapSize( void ) ;//ICACHE_FLASH_ATTR;
7777

0 commit comments

Comments
 (0)