mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
command: Remove the cmd_tbl_t typedef
We should not use typedefs in U-Boot. They cannot be used as forward declarations which means that header files must include the full header to access them. Drop the typedef and rename the struct to remove the _s suffix which is now not useful. This requires quite a few header-file additions. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -50,7 +50,8 @@ const struct {
|
||||
{0, "-e", OP_FILE_EXISTS, 4},
|
||||
};
|
||||
|
||||
static int do_test(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_test(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
char * const *ap;
|
||||
int i, op, left, adv, expr, last_expr, last_unop, last_binop;
|
||||
@@ -190,7 +191,8 @@ U_BOOT_CMD(
|
||||
"[args..]"
|
||||
);
|
||||
|
||||
static int do_false(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_false(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -201,7 +203,8 @@ U_BOOT_CMD(
|
||||
NULL
|
||||
);
|
||||
|
||||
static int do_true(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_true(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user