mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
!interpreters/minibasic: Align naming of configuration options
Aligns `CONFIG_INTERPRETER_*` options to `CONFIG_INTERPRETERS_*` options to be consistent with other interpreters. BREAKING CHANGE: All configurations using `CONFIG_INTERPRETER_MINIBASIC_*` options will no longer compile due to missing symbol errors. The fix is very quick: any configurations using this options should add a trailing S following INTERPRETER in the affected Kconfig variables. I believe `./tools/refresh.sh` should also be capable of doing this automatically. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
parent
468ded86bb
commit
a604c46b00
5 changed files with 13 additions and 13 deletions
|
|
@ -28,7 +28,7 @@ if(CONFIG_INTERPRETERS_MINIBASIC)
|
|||
script.c
|
||||
basic.c
|
||||
STACKSIZE
|
||||
${CONFIG_INTERPRETER_MINIBASIC_STACKSIZE}
|
||||
${CONFIG_INTERPRETERS_MINIBASIC_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_INTERPRETER_MINIBASIC_PRIORITY})
|
||||
${CONFIG_INTERPRETERS_MINIBASIC_PRIORITY})
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -33,25 +33,25 @@ config INTERPRETERS_MINIBASIC
|
|||
|
||||
if INTERPRETERS_MINIBASIC
|
||||
|
||||
config INTERPRETER_MINIBASIC_PRIORITY
|
||||
config INTERPRETERS_MINIBASIC_PRIORITY
|
||||
int "Basic interpreter priority"
|
||||
default 100
|
||||
---help---
|
||||
Task priority of the Basic interpreter main task
|
||||
|
||||
config INTERPRETER_MINIBASIC_STACKSIZE
|
||||
config INTERPRETERS_MINIBASIC_STACKSIZE
|
||||
int "Basic interpreter stack size"
|
||||
default 4096
|
||||
---help---
|
||||
Size of the stack allocated for the Basic interpreter main task
|
||||
|
||||
config INTERPRETER_MINIBASIC_IOBUFSIZE
|
||||
config INTERPRETERS_MINIBASIC_IOBUFSIZE
|
||||
int "I/O buffer size"
|
||||
default 1024
|
||||
---help---
|
||||
Size of the statically allocated I/O buffer.
|
||||
|
||||
config INTERPRETER_MINIBASIC_TESTSCRIPT
|
||||
config INTERPRETERS_MINIBASIC_TESTSCRIPT
|
||||
bool "Test script"
|
||||
default n
|
||||
---help---
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ MAINSRC = script.c
|
|||
# Mini Basic built-in application info
|
||||
|
||||
PROGNAME = basic
|
||||
PRIORITY = $(CONFIG_INTERPRETER_MINIBASIC_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_INTERPRETER_MINIBASIC_STACKSIZE)
|
||||
PRIORITY = $(CONFIG_INTERPRETERS_MINIBASIC_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_INTERPRETERS_MINIBASIC_STACKSIZE)
|
||||
MODULE = $(CONFIG_INTERPRETERS_MINIBASIC)
|
||||
|
||||
include $(APPDIR)/Application.mk
|
||||
|
|
|
|||
|
|
@ -48,11 +48,11 @@
|
|||
|
||||
/* Configuration */
|
||||
|
||||
#ifndef CONFIG_INTERPRETER_MINIBASIC_IOBUFSIZE
|
||||
# define CONFIG_INTERPRETER_MINIBASIC_IOBUFSIZE 1024
|
||||
#ifndef CONFIG_INTERPRETERS_MINIBASIC_IOBUFSIZE
|
||||
# define CONFIG_INTERPRETERS_MINIBASIC_IOBUFSIZE 1024
|
||||
#endif
|
||||
|
||||
#define IOBUFSIZE CONFIG_INTERPRETER_MINIBASIC_IOBUFSIZE
|
||||
#define IOBUFSIZE CONFIG_INTERPRETERS_MINIBASIC_IOBUFSIZE
|
||||
|
||||
/* Tokens defined */
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_INTERPRETER_MINIBASIC_TESTSCRIPT
|
||||
#ifdef CONFIG_INTERPRETERS_MINIBASIC_TESTSCRIPT
|
||||
/* Here is a simple script to play with */
|
||||
|
||||
static FAR char *script =
|
||||
|
|
@ -147,7 +147,7 @@ int main(int argc, FAR char *argv[])
|
|||
|
||||
if (argc == 1)
|
||||
{
|
||||
#ifdef CONFIG_INTERPRETER_MINIBASIC_TESTSCRIPT
|
||||
#ifdef CONFIG_INTERPRETERS_MINIBASIC_TESTSCRIPT
|
||||
basic(script, stdin, stdout, stderr);
|
||||
#else
|
||||
fprintf(stderr, "ERROR: Missing argument.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue