This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 24ceca27a31be614eec5572bd373a1b953559ce1
Author: wangjianyu3 <[email protected]>
AuthorDate: Tue Oct 27 00:05:19 2026 +0800

    system/nxinit: sort g_builtin alphabetically
    
    Entries were mostly alphabetical but the tail drifted and ifdef'd
    commands were grouped separately. Sort the whole table by command
    name regardless of ifdef guards. Pure reorder, no behavior change.
    
    Assisted-by: OpenCode:mimo-v2.6-pro
    Signed-off-by: wangjianyu3 <[email protected]>
---
 system/nxinit/builtin.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/system/nxinit/builtin.c b/system/nxinit/builtin.c
index 1e3104a45..71a847382 100644
--- a/system/nxinit/builtin.c
+++ b/system/nxinit/builtin.c
@@ -113,17 +113,17 @@ static const struct cmd_map_s g_builtin[] =
 {
 #ifdef CONFIG_BOARDCTL_BOOT_IMAGE
   {"boot", 1, 3, cmd_boot},
-#endif
-#ifdef CONFIG_BOARDCTL_START_CPU
-  {"start_cpu", 1, 3, cmd_start_cpu},
-#endif
-#ifdef CONFIG_NETUTILS_NETINIT
-  {"netinit", 1, 1, cmd_netinit},
 #endif
   {"class_start", 2, 2, cmd_class_start},
   {"class_stop", 2, 2, cmd_class_stop},
   {"exec", 3, 99, cmd_exec},
   {"exec_start", 2, 2, cmd_exec_start},
+#ifdef CONFIG_NETUTILS_NETINIT
+  {"netinit", 1, 1, cmd_netinit},
+#endif
+#ifdef CONFIG_RPTUN
+  {"rptun", 3, 3, cmd_rptun},
+#endif
 #ifndef CONFIG_DISABLE_ENVIRON
   {"set", 3, 3, cmd_set},
 #endif
@@ -131,11 +131,11 @@ static const struct cmd_map_s g_builtin[] =
   {"setprop", 3, 3, cmd_setprop},
 #endif
   {"start", 2, 2, cmd_start},
+#ifdef CONFIG_BOARDCTL_START_CPU
+  {"start_cpu", 1, 3, cmd_start_cpu},
+#endif
   {"stop", 2, 2, cmd_stop},
   {"trigger", 2, 2, cmd_trigger},
-#ifdef CONFIG_RPTUN
-  {"rptun", 3, 3, cmd_rptun},
-#endif
   {"unlink", 2, 2, cmd_unlink},
 };
 

Reply via email to