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

Side by Side Diff: vboot_firmware/include/utility.h

Issue 2833012: Move all system includes in vboot_firmware to sysincludes.h (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Oops, forgot the new header Created 10 years, 6 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 | « vboot_firmware/include/tlcl.h ('k') | vboot_firmware/lib/cgptlib/crc32.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 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* Helper functions/wrappers for memory allocations, manipulation and 6 /* Helper functions/wrappers for memory allocations, manipulation and
7 * comparison. 7 * comparison.
8 */ 8 */
9 9
10 #ifndef VBOOT_REFERENCE_UTILITY_H_ 10 #ifndef VBOOT_REFERENCE_UTILITY_H_
11 #define VBOOT_REFERENCE_UTILITY_H_ 11 #define VBOOT_REFERENCE_UTILITY_H_
12 12
13 #include <stdint.h> 13 #include "sysincludes.h"
14 #include <string.h>
15 14
16 /* Outputs an error message and quits. */ 15 /* Outputs an error message and quits. */
17 void error(const char *format, ...); 16 void error(const char *format, ...);
18 17
19 /* Outputs debug/warning messages. */ 18 /* Outputs debug/warning messages. */
20 void debug(const char *format, ...); 19 void debug(const char *format, ...);
21 20
22 #define assert(expr) do { if (!(expr)) { \ 21 #define assert(expr) do { if (!(expr)) { \
23 error("assert fail: %s at %s:%d\n", \ 22 error("assert fail: %s at %s:%d\n", \
24 #expr, __FILE__, __LINE__); }} while(0) 23 #expr, __FILE__, __LINE__); }} while(0)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #ifndef _STUB_IMPLEMENTATION_ 60 #ifndef _STUB_IMPLEMENTATION_
62 #define malloc _do_not_use_standard_malloc 61 #define malloc _do_not_use_standard_malloc
63 #define free _do_not_use_standard_free 62 #define free _do_not_use_standard_free
64 #define memcmp _do_not_use_standard_memcmp 63 #define memcmp _do_not_use_standard_memcmp
65 #define memcpy _do_not_use_standard_memcpy 64 #define memcpy _do_not_use_standard_memcpy
66 #define memset _do_not_use_standard_memset 65 #define memset _do_not_use_standard_memset
67 #endif 66 #endif
68 67
69 68
70 #endif /* VBOOT_REFERENCE_UTILITY_H_ */ 69 #endif /* VBOOT_REFERENCE_UTILITY_H_ */
OLDNEW
« no previous file with comments | « vboot_firmware/include/tlcl.h ('k') | vboot_firmware/lib/cgptlib/crc32.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698