Commit Graph

73 Commits

Author SHA1 Message Date
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
Nghia Ho
c28f521a5e Added command history using up/down arrow keys. 2015-08-08 20:54:42 -07:00
Gregory Nutt
d699f5766d Fixes to system/readline/Kconfig 2015-07-30 12:58:03 -06:00
Gregory Nutt
5aa53ea2db Readline: Fix a configuration dependency. If we are not echoing to the console, then we cannot support tab completion 2015-07-30 12:53:04 -06:00
Gregory Nutt
169c3c77f1 Fix some bad conditional compilation and update some comments 2015-07-30 12:40:39 -06:00
Gregory Nutt
820c5c42dd readline/NSH: Extend the tab-completion logic so that NSH commands can also be completed by pressing the tab key 2015-07-30 12:11:58 -06:00
Gregory Nutt
f1b4b4d47a Fix a few mistakes I made on the last commit 2015-07-28 07:30:05 -06:00
Gregory Nutt
766886310d readline: Update initial readline commit -- make option configurable. Add an interface to de-couple the readline implementation from NSH. Misc. updates for coding style 2015-07-28 07:17:50 -06:00
Nghia Ho
bc1c74387f Unix style TAB compleition, for builtin apps only 2015-07-27 22:47:24 -07:00
Gregory Nutt
d5b6949c9f Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation 2015-06-28 08:14:53 -06:00
Gregory Nutt
6e462908ba apps/system: Clean up Kconfig menuing 2015-04-07 13:23:39 -06:00
Gregory Nutt
13854c8b5a Removed forced enable of CONFIG_READLINE_ECHO in apps/system/readline/readline.h 2015-02-01 13:15:31 -06:00
Gregory Nutt
d6bcd1a93a Add an install target to all makefiles. For the import build, the top-level Makefile now does two passes: (1) builds libapp.a, then (2) installs the programs (not yet finished) 2014-09-06 08:00:47 -06:00
Gregory Nutt
171db56b69 Make sure that there is one space after for 2014-04-12 13:28:22 -06:00
Gregory Nutt
749eb6a027 cosmetic update to comments 2013-09-30 17:43:44 -06:00
Gregory Nutt
c4e46f5b62 Changes to NSH and readline to permit NSH to work on a platform with no file system 2013-09-30 11:34:04 -06:00
Gregory Nutt
59a89b687d Clean up some naming: fd vs. fildes vs. filedes and filep vs filp 2013-09-28 16:50:07 -06:00
Gregory Nutt
424fbe6583 .dSYM only needs to be in the same .gitignore files as .exe 2013-05-30 15:02:04 -06:00
Gregory Nutt
f9ab52bb5a Upate .gitignore files. Add .dSYM. Make sure / is present where needed. Add some missing .gitignore files 2013-05-30 14:45:31 -06:00
Gregory Nutt
470a04b8f9 Clone svn:ignore directory atributed to .gitignore files 2013-04-04 14:27:29 -06:00