use pikaplatform.h to include libc

This commit is contained in:
root 2021-12-07 15:45:38 +08:00
parent aafc990cdf
commit 85a2734462
24 changed files with 14 additions and 30 deletions

View File

@ -13,7 +13,9 @@
"pikaplatform.h": "c",
"dataarg.h": "c",
"pikastdlib_list.h": "c",
"pikastdlib_memchecker.h": "c"
"pikastdlib_memchecker.h": "c",
"pikaparser.h": "c",
"stdint.h": "c"
},
"python.formatting.provider": "yapf"
}

0
port/linux/api-make-linux.sh Normal file → Executable file
View File

0
port/linux/api-make-win10.sh Normal file → Executable file
View File

0
port/linux/api-make.sh Normal file → Executable file
View File

0
port/linux/gtest.sh Normal file → Executable file
View File

0
port/linux/init.sh Normal file → Executable file
View File

0
port/linux/make.sh Normal file → Executable file
View File

0
port/linux/package/pikascript/rust-msc-latest-linux Normal file → Executable file
View File

0
port/linux/pull-core.sh Normal file → Executable file
View File

0
port/linux/push-core.sh Normal file → Executable file
View File

0
port/linux/test-banchmark.sh Normal file → Executable file
View File

0
port/linux/update-compiler.sh Normal file → Executable file
View File

View File

@ -25,8 +25,8 @@
* SOFTWARE.
*/
#include "PikaPlatform.h"
#include "PikaObj.h"
#include <stdarg.h>
#include "BaseObj.h"
#include "PikaVM.h"
#include "dataArgs.h"

View File

@ -26,10 +26,6 @@
*/
#include "PikaPlatform.h"
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
PIKA_WEAK void __platformDisableIrqHandle(void) {
/* disable irq to support thread */

View File

@ -29,6 +29,9 @@
#define __PIKA_PALTFORM__H
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#if defined(__CC_ARM) || defined(__CLANG_ARM) /* ARM Compiler */
#define PIKA_WEAK __attribute__((weak))

View File

@ -25,8 +25,8 @@
* SOFTWARE.
*/
#include "PikaPlatform.h"
#include "PikaVM.h"
#include <string.h>
#include "BaseObj.h"
#include "PikaObj.h"
#include "PikaParser.h"

View File

@ -26,9 +26,6 @@
*/
#include "dataArg.h"
#include <stdint.h>
#include "dataArgs.h"
#include "dataMemory.h"
#include "dataString.h"

View File

@ -25,11 +25,8 @@
* SOFTWARE.
*/
#include "PikaPlatform.h"
#include "dataArgs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dataLink.h"
#include "dataMemory.h"
#include "dataString.h"

View File

@ -26,8 +26,7 @@
*/
#include "dataMemory.h"
#include <stdint.h>
#include <stdlib.h>
#include "PikaPlatform.h"
PikaMemInfo pikaMemInfo = {0};

View File

@ -28,9 +28,6 @@
#ifndef __MEMORY_H__
#define __MEMORY_H__
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "PikaPlatform.h"
typedef struct {

View File

@ -26,11 +26,8 @@
*/
#include "dataQueue.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dataArgs.h"
#include "PikaPlatform.h"

View File

@ -26,10 +26,7 @@
*/
#include "dataString.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PikaPlatform.h"
char* strAppendWithSize_unlimited(char* strOut, char* pData, int32_t Size) {
int32_t strOut_i = strGetSize(strOut);

View File

@ -27,7 +27,7 @@
#ifndef __MY_TEST_TOOLS_H
#define __MY_TEST_TOOLS_H
#include <stdint.h>
#include "PikaPlatform.h"
/* size */
uint32_t strGetSize(char* pData);

View File

@ -25,9 +25,8 @@
* SOFTWARE.
*/
#include "PikaPlatform.h"
#include "dataStrs.h"
#include <stdarg.h>
#include <stdio.h>
#include "dataString.h"
Args* New_strBuff(void) {