Lines Matching refs:syntax
229 const char *syntax; /*!< Command syntax strings. */ member
252 #define SHELL_CMD_ARG_REGISTER(syntax, subcmd, help, handler, \ argument
254 static const struct shell_static_entry UTIL_CAT(_shell_, syntax) = \
255 SHELL_CMD_ARG(syntax, subcmd, help, handler, mandatory, optional); \
257 UTIL_CAT(shell_cmd_, syntax), shell_root_cmds, \
258 UTIL_CAT(shell_cmd_, syntax) \
260 .entry = &UTIL_CAT(_shell_, syntax) \
283 #define SHELL_COND_CMD_ARG_REGISTER(flag, syntax, subcmd, help, handler, \ argument
288 SHELL_CMD_ARG_REGISTER(syntax, subcmd, help, handler, \
292 static shell_cmd_handler dummy_##syntax##_handler __unused = \
294 static const union shell_cmd_entry *dummy_subcmd_##syntax \
309 #define SHELL_CMD_REGISTER(syntax, subcmd, help, handler) \ argument
310 SHELL_CMD_ARG_REGISTER(syntax, subcmd, help, handler, 0, 0)
325 #define SHELL_COND_CMD_REGISTER(flag, syntax, subcmd, help, handler) \ argument
326 SHELL_COND_CMD_ARG_REGISTER(flag, syntax, subcmd, help, handler, 0, 0)
463 #define SHELL_CMD_ARG(syntax, subcmd, help, handler, mand, opt) \ argument
464 SHELL_EXPR_CMD_ARG(1, syntax, subcmd, help, handler, mand, opt)
485 #define SHELL_COND_CMD_ARG(flag, syntax, subcmd, help, handler, mand, opt) \ argument
486 SHELL_EXPR_CMD_ARG(IS_ENABLED(flag), syntax, subcmd, help, \
511 .syntax = (_expr) ? (const char *)STRINGIFY(_syntax) : "", \