mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
use pikaplatform.h to include libc
This commit is contained in:
parent
aafc990cdf
commit
85a2734462
4
port/linux/.vscode/settings.json
vendored
4
port/linux/.vscode/settings.json
vendored
@ -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
0
port/linux/api-make-linux.sh
Normal file → Executable file
0
port/linux/api-make-win10.sh
Normal file → Executable file
0
port/linux/api-make-win10.sh
Normal file → Executable file
0
port/linux/api-make.sh
Normal file → Executable file
0
port/linux/api-make.sh
Normal file → Executable file
0
port/linux/gtest.sh
Normal file → Executable file
0
port/linux/gtest.sh
Normal file → Executable file
0
port/linux/init.sh
Normal file → Executable file
0
port/linux/init.sh
Normal file → Executable file
0
port/linux/make.sh
Normal file → Executable file
0
port/linux/make.sh
Normal file → Executable file
0
port/linux/package/pikascript/rust-msc-latest-linux
Normal file → Executable file
0
port/linux/package/pikascript/rust-msc-latest-linux
Normal file → Executable file
0
port/linux/pull-core.sh
Normal file → Executable file
0
port/linux/pull-core.sh
Normal file → Executable file
0
port/linux/push-core.sh
Normal file → Executable file
0
port/linux/push-core.sh
Normal file → Executable file
0
port/linux/test-banchmark.sh
Normal file → Executable file
0
port/linux/test-banchmark.sh
Normal file → Executable file
0
port/linux/update-compiler.sh
Normal file → Executable file
0
port/linux/update-compiler.sh
Normal file → Executable file
@ -25,8 +25,8 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "PikaPlatform.h"
|
||||
#include "PikaObj.h"
|
||||
#include <stdarg.h>
|
||||
#include "BaseObj.h"
|
||||
#include "PikaVM.h"
|
||||
#include "dataArgs.h"
|
||||
|
@ -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 */
|
||||
|
@ -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))
|
||||
|
@ -25,8 +25,8 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "PikaPlatform.h"
|
||||
#include "PikaVM.h"
|
||||
#include <string.h>
|
||||
#include "BaseObj.h"
|
||||
#include "PikaObj.h"
|
||||
#include "PikaParser.h"
|
||||
|
@ -26,9 +26,6 @@
|
||||
*/
|
||||
|
||||
#include "dataArg.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "dataArgs.h"
|
||||
#include "dataMemory.h"
|
||||
#include "dataString.h"
|
||||
|
@ -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"
|
||||
|
@ -26,8 +26,7 @@
|
||||
*/
|
||||
|
||||
#include "dataMemory.h"
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaPlatform.h"
|
||||
|
||||
PikaMemInfo pikaMemInfo = {0};
|
||||
|
||||
|
@ -28,9 +28,6 @@
|
||||
#ifndef __MEMORY_H__
|
||||
#define __MEMORY_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "PikaPlatform.h"
|
||||
|
||||
typedef struct {
|
||||
|
@ -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"
|
||||
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -25,9 +25,8 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "PikaPlatform.h"
|
||||
#include "dataStrs.h"
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include "dataString.h"
|
||||
|
||||
Args* New_strBuff(void) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user