diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-20 18:02:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-20 18:02:55 +0000 |
commit | 9c6d2638a2c2b84a434d2a88aebfe03da6c18482 (patch) | |
tree | 4b95f487fa38221ffc958b2c0fbbfc172f292574 /nuttx/examples/nsh/nsh.h | |
parent | c2bbba7b6914bff65b42c1910a31598c2eadb45f (diff) | |
download | px4-nuttx-9c6d2638a2c2b84a434d2a88aebfe03da6c18482.tar.gz px4-nuttx-9c6d2638a2c2b84a434d2a88aebfe03da6c18482.tar.bz2 px4-nuttx-9c6d2638a2c2b84a434d2a88aebfe03da6c18482.zip |
strerror() is big; don't use it unless requested
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@717 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh.h')
-rw-r--r-- | nuttx/examples/nsh/nsh.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nuttx/examples/nsh/nsh.h b/nuttx/examples/nsh/nsh.h index 015c0aa88..71d5d5100 100644 --- a/nuttx/examples/nsh/nsh.h +++ b/nuttx/examples/nsh/nsh.h @@ -50,8 +50,20 @@ * Definitions ****************************************************************************/ +/* This is the maximum number of arguments that will be accepted for a command */ + #define NSH_MAX_ARGUMENTS 6 +/* strerror() produces much nicer output but is, however, quite large and + * will only be used if CONFIG_NSH_STRERROR is defined. + */ + +#ifdef CONFIG_NSH_STRERROR +# define NSH_ERRNO strerror(errno) +#else +# define NSH_ERRNO errno +#endif + /**************************************************************************** * Public Types ****************************************************************************/ |