mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-06 20:00:45 +08:00
Indent the define statement by two spaces
follow the code style convention Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
7032c72f2f
commit
e81227f99d
@ -1025,7 +1025,7 @@ int cmd_irqinfo(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv);
|
|||||||
# ifndef CONFIG_NSH_DISABLE_RMDIR
|
# ifndef CONFIG_NSH_DISABLE_RMDIR
|
||||||
int cmd_rmdir(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv);
|
int cmd_rmdir(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv);
|
||||||
# endif
|
# endif
|
||||||
# endif /* NSH_HAVE_DIROPTS */
|
#endif /* NSH_HAVE_DIROPTS */
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||||
# if defined(CONFIG_DEV_LOOP) && !defined(CONFIG_NSH_DISABLE_LOSETUP)
|
# if defined(CONFIG_DEV_LOOP) && !defined(CONFIG_NSH_DISABLE_LOSETUP)
|
||||||
|
@ -168,7 +168,7 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
{ "dd", cmd_dd, 3, 7,
|
{ "dd", cmd_dd, 3, 7,
|
||||||
"if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] "
|
"if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] "
|
||||||
"[skip=<sectors>] [verify]" },
|
"[skip=<sectors>] [verify]" },
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) && !defined(CONFIG_NSH_DISABLE_DELROUTE)
|
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) && !defined(CONFIG_NSH_DISABLE_DELROUTE)
|
||||||
{ "delroute", cmd_delroute, 2, 3, "<target> [<netmask>]" },
|
{ "delroute", cmd_delroute, 2, 3, "<target> [<netmask>]" },
|
||||||
@ -239,7 +239,7 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
#ifndef CONFIG_NSH_DISABLE_HELP
|
#ifndef CONFIG_NSH_DISABLE_HELP
|
||||||
# ifdef CONFIG_NSH_HELP_TERSE
|
# ifdef CONFIG_NSH_HELP_TERSE
|
||||||
{ "help", cmd_help, 1, 2, "[<cmd>]" },
|
{ "help", cmd_help, 1, 2, "[<cmd>]" },
|
||||||
#else
|
# else
|
||||||
{ "help", cmd_help, 1, 3, "[-v] [<cmd>]" },
|
{ "help", cmd_help, 1, 3, "[-v] [<cmd>]" },
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
@ -311,9 +311,9 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_MODULE) && !defined(CONFIG_NSH_DISABLE_MODCMDS)
|
#if defined(CONFIG_MODULE) && !defined(CONFIG_NSH_DISABLE_MODCMDS)
|
||||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MODULE)
|
# if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MODULE)
|
||||||
{ "lsmod", cmd_lsmod, 1, 1, NULL },
|
{ "lsmod", cmd_lsmod, 1, 1, NULL },
|
||||||
#endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_NSH_DISABLE_MB
|
#ifndef CONFIG_NSH_DISABLE_MB
|
||||||
@ -370,15 +370,15 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT)
|
#if !defined(CONFIG_DISABLE_MOUNTPOINT)
|
||||||
#ifndef CONFIG_NSH_DISABLE_MOUNT
|
# ifndef CONFIG_NSH_DISABLE_MOUNT
|
||||||
#if defined(NSH_HAVE_CATFILE) && defined(HAVE_MOUNT_LIST)
|
# if defined(NSH_HAVE_CATFILE) && defined(HAVE_MOUNT_LIST)
|
||||||
{ "mount", cmd_mount, 1, 7,
|
{ "mount", cmd_mount, 1, 7,
|
||||||
"[-t <fstype> [-o <options>] [<block-device>] <mount-point>]" },
|
"[-t <fstype> [-o <options>] [<block-device>] <mount-point>]" },
|
||||||
#else
|
# else
|
||||||
{ "mount", cmd_mount, 4, 7,
|
{ "mount", cmd_mount, 4, 7,
|
||||||
"-t <fstype> [-o <options>] [<block-device>] <mount-point>" },
|
"-t <fstype> [-o <options>] [<block-device>] <mount-point>" },
|
||||||
#endif
|
# endif
|
||||||
#endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NSH_HAVE_DIROPTS
|
#ifdef NSH_HAVE_DIROPTS
|
||||||
@ -557,11 +557,11 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_NSH_DISABLE_UNAME
|
#ifndef CONFIG_NSH_DISABLE_UNAME
|
||||||
#ifdef CONFIG_NET
|
# ifdef CONFIG_NET
|
||||||
{ "uname", cmd_uname, 1, 7, "[-a | -imnoprsv]" },
|
{ "uname", cmd_uname, 1, 7, "[-a | -imnoprsv]" },
|
||||||
#else
|
# else
|
||||||
{ "uname", cmd_uname, 1, 7, "[-a | -imoprsv]" },
|
{ "uname", cmd_uname, 1, 7, "[-a | -imoprsv]" },
|
||||||
#endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT)
|
#if !defined(CONFIG_DISABLE_MOUNTPOINT)
|
||||||
|
@ -53,18 +53,18 @@
|
|||||||
* unnecessary "weak" functions can be excluded from the link.
|
* unnecessary "weak" functions can be excluded from the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
# ifndef __CYGWIN__
|
#ifndef __CYGWIN__
|
||||||
# define CONFIG_HAVE_WEAKFUNCTIONS 1
|
# define CONFIG_HAVE_WEAKFUNCTIONS 1
|
||||||
# define weak_alias(name, aliasname) \
|
# define weak_alias(name, aliasname) \
|
||||||
extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
|
extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
|
||||||
# define weak_function __attribute__ ((weak))
|
# define weak_function __attribute__ ((weak))
|
||||||
# define weak_const_function __attribute__ ((weak, __const__))
|
# define weak_const_function __attribute__ ((weak, __const__))
|
||||||
# else
|
#else
|
||||||
# undef CONFIG_HAVE_WEAKFUNCTIONS
|
# undef CONFIG_HAVE_WEAKFUNCTIONS
|
||||||
# define weak_alias(name, aliasname)
|
# define weak_alias(name, aliasname)
|
||||||
# define weak_function
|
# define weak_function
|
||||||
# define weak_const_function
|
# define weak_const_function
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
/* The noreturn attribute informs GCC that the function will not return. */
|
/* The noreturn attribute informs GCC that the function will not return. */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user