nuttx-apps/interpreters/quickjs/Kconfig
hanzj b5b54e7663 interpreters/quickjs,testing/nettest: fix typos in Kconfig and source.
Fix spelling errors in QuickJS Kconfig and nettest source:
* "distable" -> "disable" in INTERPRETERS_QUICKJS_NONE description
* "destory" -> "destroy" in INTERPRETERS_QUICKJS_EXT_HOOK option
  and help text (2 occurrences)
* "err_destory" -> "err_destroy" label in nettest_tcpserver.c
  (3 occurrences: 2 goto targets and 1 label definition)

These are cosmetic fixes with no functional change.

Signed-off-by: hanzj <hanzjian@zepp.com>
2026-05-28 15:02:31 +08:00

50 lines
1.2 KiB
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config INTERPRETERS_QUICKJS
tristate "QuickJS JavaScript interpreter"
default n
if INTERPRETERS_QUICKJS
choice
prompt "QuickJS command line interpreter"
default INTERPRETERS_QUICKJS_NONE
config INTERPRETERS_QUICKJS_NONE
bool "Disable quickjs interpreter"
config INTERPRETERS_QUICKJS_MINI
bool "Minimal quickjs interpreter"
config INTERPRETERS_QUICKJS_FULL
bool "normal quickjs interpreter"
endchoice # QuickJS command line interpreter
config INTERPRETERS_QUICKJS_BIGNUM
bool "Bignum support"
default n
---help---
It's depend on libatomic,
Not all platform support it.
config INTERPRETERS_QUICKJS_PRIORITY
int "QuickJS interpreter priority"
default 100
config INTERPRETERS_QUICKJS_STACKSIZE
int "QuickJS interpreter stack size"
default 8192
config INTERPRETERS_QUICKJS_EXT_HOOK
bool "External init/destroy hook"
default n
depends on INTERPRETERS_QUICKJS_MINI
---help---
Since minimal interpreter only support 'console.log',
you can export custom module by implement init/destroy hook.
endif # INTERPRETERS_QUICKJS