alienwalker 3 лет назад
Родитель
Сommit
69fcea56db
2 измененных файлов с 1 добавлено и 5 удалено
  1. 1 1
      components/common/c_common.c
  2. 0 4
      components/common/c_common.h

+ 1 - 1
components/common/c_common.c

@@ -403,7 +403,7 @@ LUAT_WEAK int32_t OS_ReSizeBuffer(Buffer_Struct *Buf, uint32_t Size)
 //	if (Old)
 //	{
 //		memcpy(New, Old, Buf->Pos);
-//		OS_Free(Old);
+//		free(Old);
 //	}
 	New = luat_heap_realloc(Buf->Data, Size);
 	if (New)

+ 0 - 4
components/common/c_common.h

@@ -325,10 +325,6 @@ uint8_t OS_IsSchedulerRun(void);
 #endif
 uint32_t OS_EnterCritical(void);
 void OS_ExitCritical(uint32_t Critical);
-void *OS_Malloc(uint32_t Size);
-void *OS_Zalloc(uint32_t Size);
-void OS_Free(void *p);
-void *OS_Realloc(void *buf, uint32_t size);
 void OS_MemInfo(uint32_t *curalloc, uint32_t *totfree, uint32_t *maxfree);
 int32_t OS_InitBuffer(Buffer_Struct *Buf, uint32_t Size);
 void OS_DeInitBuffer(Buffer_Struct *Buf);