Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: lib/ptable/ptable.c

Issue 1348403002: Consistently use the STATIC_COMMAND macro every time we define a console command. (Closed) Base URL: https://github.com/travisg/lk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/lwip/cmd.c ('k') | lib/sysparam/sysparam.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google, Inc. All rights reserved 2 * Copyright (c) 2013, Google, Inc. All rights reserved
3 * Copyright (c) 2014, Travis Geiselbrecht 3 * Copyright (c) 2014, Travis Geiselbrecht
4 * 4 *
5 * Permission is hereby granted, free of charge, to any person obtaining 5 * Permission is hereby granted, free of charge, to any person obtaining
6 * a copy of this software and associated documentation files 6 * a copy of this software and associated documentation files
7 * (the "Software"), to deal in the Software without restriction, 7 * (the "Software"), to deal in the Software without restriction,
8 * including without limitation the rights to use, copy, modify, merge, 8 * including without limitation the rights to use, copy, modify, merge,
9 * publish, distribute, sublicense, and/or sell copies of the Software, 9 * publish, distribute, sublicense, and/or sell copies of the Software,
10 * and to permit persons to whom the Software is furnished to do so, 10 * and to permit persons to whom the Software is furnished to do so,
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 } else if (!strcmp(argv[1].str, "write")) { 920 } else if (!strcmp(argv[1].str, "write")) {
921 printf("ptable_write result %d\n", ptable_write()); 921 printf("ptable_write result %d\n", ptable_write());
922 } else { 922 } else {
923 goto usage; 923 goto usage;
924 } 924 }
925 925
926 return 0; 926 return 0;
927 } 927 }
928 928
929 STATIC_COMMAND_START 929 STATIC_COMMAND_START
930 { "ptable", "commands for manipulating the flash partition table", &cmd_ptable } , 930 STATIC_COMMAND("ptable", "commands for manipulating the flash partition table", &cmd_ptable)
931 STATIC_COMMAND_END(ptable); 931 STATIC_COMMAND_END(ptable);
932 932
933 #endif // WITH_LIB_CONSOLE 933 #endif // WITH_LIB_CONSOLE
934 934
OLDNEW
« no previous file with comments | « lib/lwip/cmd.c ('k') | lib/sysparam/sysparam.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698