Commit Graph

92 Commits

Author SHA1 Message Date
Xiang Xiao
c8439368ac system/readline: Make it work without CONFIG_FILE_STREAM
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
Xiang Xiao
35e442d08c system/readline: Move READLINE_HAVE_EXTMATCH inside SYSTEM_READLINE section
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 10:43:47 -03:00
Juha Niskanen
b283289986 apps: fix miscellaneous typos
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-08-26 11:39:28 -07:00
Peter Bee
8b66a6238a apps/system: fix command history behavior (2)
N/A
Fixing "last command" misbehavior when one command in history is a
substring of another.

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
Change-Id: I1ea205e3f2461b6c2377147cb9fc878ba5b19b4f
2021-06-22 10:27:43 -03:00
Alin Jerpelea
84e0ca1310 system: update licenses to Apache
Gregory Nutt is has submitted the SGA

Ken Pettit has submitted the ICLA

David S. Alessio has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 02:42:05 -05:00
Alin Jerpelea
ec339bc49a Makefiles: Gregory Nutt: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Gustavo Henrique Nihei
b843486386 readline: Reset offset when top command is issued repeateadly 2021-05-24 22:01:21 -05:00
chao.an
54bbfee30e system/readline: check the control ascii only to support multi-languages
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-05 08:02:25 +01:00
dongjiuzhu
6189a8df4b app/system/readline: fix compile break
N/A

Change-Id: I562b96492be9976611199e6215c55c03f1e154c8
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-17 20:12:57 -08:00
Xiang Xiao
3edfb4a3ac system/readline: Fix the stack overflow when application name is too long
shouldn't zero the memory after tmp_name

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I527001af08da0865c4054b7a5b6ccaf60f585c06
2020-09-04 08:57:03 +02:00
Ouss4
aa717d59fd system/readline/readline_common.c: Don't save the command again in the
history buffer if it's the one at the top.
2020-08-22 05:11:02 -07:00
Ouss4
a1b8ad9190 system/readline/readline_common.c: Fix nxstyle issues. 2020-08-22 05:11:02 -07:00
Xiang Xiao
deaa6c5b7b build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
and move NUTTXLIB defintion to the common place

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
Xiang Xiao
69f013e74e build: Remve the unnecessary .gitignore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
ead498a788 build: Remove the workaround for the inexistence of .config/Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
547bad9e2a Remove the unnecessary BUILD_FLAT dependence from Kconfig
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 11:46:53 -06:00
Xiang Xiao
1511403fdf Revert "Don't generate .depend anymore"
This reverts commit cc5ad09caa.
2020-03-22 23:09:40 -05:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore 2020-03-22 18:15:21 +00:00
Xiang Xiao
41d88f06e7 Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
Xiang Xiao
1154735ca6 Refine the preprocess conditional guard style 2020-01-31 11:04:10 -06:00
Xiang Xiao
e0dcfa0c55 Remove extra whitespace from files (#43)
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
Alin Jerpelea
967e7e2912 system: readline: Improve security 2020-01-08 20:43:39 +08:00
Xiang Xiao
857158451b Unify the void cast usage
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro

Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Xiang Xiao
7808eb62d2 apps/: In all Make.def files, append to CONFIGURED_APPS patch with the absolute path. 2019-10-17 11:33:59 -06:00
Gregory Nutt
3a23523147 Makefiles: This reverts part of commit cf0365ea9. It restores 'conditional' inclusion of TOPDIR/Make.defs. Otherwise all make targets fail if the board has not been configured. That is okay most of the time, but not for things like clean and distclean which should not depend on being configured. 2019-10-15 09:25:48 +08:00
Xiang Xiao
cf0365ea92 Clean up Makefile under apps folder no functional changes. 2019-10-04 08:35:46 -06:00
Gregory Nutt
ac61c18fcc Move apps/builtins/builtin_forindex.c to nuttx/libs/libc/builtin since it is required by kernel logic as well. Other changes account for movement of builtin.h from nuttx/include/nuttx/binfmt/built.h to nuttx/include/lib/builtin.h. 2019-08-23 09:12:45 -06:00
Gregory Nutt
93de0c232b apps/system/readline_common.c: Correct spelling, matches vs maches. 2019-01-16 10:15:18 -06:00
Gregory Nutt
305278d1ae Application.mk: Fix some issues when building directories such as fsutils/mkfatfs that have not mainobj. In this case, the MAINSRC is undefined and it would generate a bad linker command line. 2018-09-04 13:00:03 -06:00
anchao
b5cfd93444 apps/: Modification to build system: Unified application compilation rules 2018-09-03 09:29:56 -06:00
mst
62134a0419 apps/system/cle: Usage improvements including command line history (taken from readline) and support for addition control characters. 2018-08-05 16:05:59 -06:00
Gregory Nutt
7a8561728c The last change added .PRECIOUS: $(BIN) to everyway Makefile in hopes the libapps.a will not be deleted on Control-C (unproven so far). However, $(BIN) may contain back slashes in some build platforms and that causes problems for make: It can't handle the backslashes in the .PRECIOUS dependency list. $(BIN) replaced with ../../libapp.a, where the number of ../ depends on the depth of the Makefile in the apps/ source tree. 2017-08-13 11:03:17 -06:00
Gregory Nutt
a66da34f18 All Makefiles: Add .PRECIOUS: apps/libapps.a to every Makefile. Hopefully this will end awkward problems when you Control-C out of a build and libapps.a is deleted. 2017-08-13 09:35:14 -06:00
Gregory Nutt
741db21f70 Remvoe std_readline(). This called up_getc() and up_putc() directly, violating the POSIX OS interface. 2016-12-13 18:04:43 -06:00
Gregory Nutt
3e83aa7388 Add apps/include to include path in top-level Make.defs file. Remove multiple definitions of INCDIR opt. 2016-07-11 10:45:17 -06:00
Sebastien Lorquet
2cbad44f1d This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h" 2016-07-11 10:11:18 -06:00
Gregory Nutt
cd741c82cf apps/include: Move all header files associated with modules in apps/system to apps/include/system 2016-07-01 06:48:22 -06:00
Sebastien Lorquet
bfff5e7179 Add empty preconfig rules to 'leaf' makefiles 2016-06-02 16:24:30 +02:00
Sebastien Lorquet
9a406515d7 make the full tree use wildcards make.defs 2016-06-02 16:21:21 +02:00
Nghia Ho
e6f6ae0803 handle when CONFIG_READLINE_MAX_EXTCMDS == 0 2015-11-03 09:49:43 -08:00
nghiaho12
94696500dd readline: Support the case where CONFIG_READLINE_MAX_BUILTINS==0 2015-11-03 07:44:50 -06:00
Gregory Nutt
273a083d20 Misc cosmetic changes from review of last merge 2015-11-02 09:11:06 -06:00
Gregory Nutt
646febbe86 Merged in nghiaho12/apps/nghia/improve_tab_completion (pull request #18)
better TAB completion
2015-11-02 06:53:30 -06:00
Nghia Ho
211f8bf76d bug fix:: Never reach readline_prompt() in nsh_initialize, moved it up to the top. Works now.
enhancement: TAB completion now works like Unix, it will autocomplete as much as possible for
multiple matches.
2015-11-01 01:41:01 -07:00
Gregory Nutt
9cb2849742 Standardize the width of all comment boxes in header files 2015-10-02 17:35:18 -06:00
Gregory Nutt
0629c5466e Standardize the width of all comment boxes in C file 2015-10-02 17:33:30 -06:00
Gregory Nutt
e3ad56043e Standardize naming used for public data and function groupings 2015-10-02 16:20:33 -06:00
Paul A. Patience
266cc147c4 Correct #if to #ifdef when the macro can be undefined 2015-09-01 13:44:06 -04:00
Gregory Nutt
7c13bac893 Replace some C99 style C with NuttX standard C89 style 2015-08-09 09:58:59 -06:00
Gregory Nutt
d63ce7f5bb readline(): A a configuration option to enable/disable command line history; Additional cosmetic changes from code review 2015-08-09 08:15:23 -06:00