mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
rename __pika_cfg_valied.h to pikaConfigValid.h
This commit is contained in:
parent
4418347bbd
commit
d69ccb035d
2
src/.gitignore
vendored
2
src/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
*kite*
|
||||
*.o
|
@ -561,8 +561,7 @@ void obj_run(PikaObj* self, char* cmd) {
|
||||
// obj_deinit(globals);
|
||||
}
|
||||
|
||||
#define RX_Buff_SIZE 128
|
||||
char rxBuff[RX_Buff_SIZE] = {0};
|
||||
char rxBuff[PIKA_SHELL_LINE_BUFF_SIZE] = {0};
|
||||
char rx_char = 0;
|
||||
static void clearBuff(char* buff, int size) {
|
||||
for (int i = 0; i < size; i++) {
|
||||
@ -596,7 +595,7 @@ void pikaScriptShell(PikaObj* self) {
|
||||
}
|
||||
obj_run(self, rxBuff);
|
||||
__platform_printf(">>> ");
|
||||
clearBuff(rxBuff, RX_Buff_SIZE);
|
||||
clearBuff(rxBuff, PIKA_SHELL_LINE_BUFF_SIZE);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
@ -29,7 +29,6 @@
|
||||
#define _Process__H
|
||||
|
||||
|
||||
#include "./__pika_cfg_valid.h"
|
||||
|
||||
/*! \NOTE: Make sure #include "plooc_class.h" is close to the class definition
|
||||
*/
|
||||
|
@ -25,6 +25,9 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* micro pika configuration */
|
||||
#include "./pikaConfigValid.h"
|
||||
|
||||
#ifndef __PIKA_PALTFORM__H
|
||||
#define __PIKA_PALTFORM__H
|
||||
#include <stdarg.h>
|
||||
|
@ -33,7 +33,7 @@
|
||||
#else
|
||||
|
||||
/* default configuration */
|
||||
|
||||
#define PIKA_SHELL_LINE_BUFF_SIZE 128
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user