X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_test.c;h=acc0ecf99b760c0de60b98145f41a0d4b4a066a0;hb=e3a5bbce4590fbe18daae51087cd5cf4d2246bb9;hp=6da06b9f788417c451523e5deac0d4cfa1c43c90;hpb=b0fe6abd716c2f6c13860ce131f229c44d0295e5;p=u-boot diff --git a/common/cmd_test.c b/common/cmd_test.c index 6da06b9f78..acc0ecf99b 100644 --- a/common/cmd_test.c +++ b/common/cmd_test.c @@ -21,10 +21,19 @@ * MA 02111-1307 USA */ +/* + * Define _STDBOOL_H here to avoid macro expansion of true and false. + * If the future code requires macro true or false, remove this define + * and undef true and false before U_BOOT_CMD. This define and comment + * shall be removed if change to U_BOOT_CMD is made to take string + * instead of stringifying it. + */ +#define _STDBOOL_H + #include #include -int do_test(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_test(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { char * const *ap; int left, adv, expr, last_expr, neg, last_cmp; @@ -150,7 +159,7 @@ U_BOOT_CMD( "[args..]" ); -int do_false(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_false(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { return 1; } @@ -161,7 +170,7 @@ U_BOOT_CMD( NULL ); -int do_true(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_true(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { return 0; }