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

Side by Side Diff: mojo/edk/system/memory.h

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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 | « mojo/edk/system/data_pipe_impl.h ('k') | mojo/edk/system/memory_unittest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium 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 #ifndef MOJO_EDK_SYSTEM_MEMORY_H_ 5 #ifndef MOJO_EDK_SYSTEM_MEMORY_H_
6 #define MOJO_EDK_SYSTEM_MEMORY_H_ 6 #define MOJO_EDK_SYSTEM_MEMORY_H_
7 7
8 #include <mojo/macros.h>
8 #include <stddef.h> 9 #include <stddef.h>
9 #include <stdint.h> 10 #include <stdint.h>
10 #include <string.h> // For |memcpy()|. 11 #include <string.h> // For |memcpy()|.
11 12
12 #include <memory> 13 #include <memory>
13 #include <type_traits> 14 #include <type_traits>
14 15
15 #include "mojo/public/c/system/macros.h"
16 #include "mojo/public/cpp/system/macros.h" 16 #include "mojo/public/cpp/system/macros.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace system { 19 namespace system {
20 20
21 namespace internal { 21 namespace internal {
22 22
23 // Yields |(const) char| if |T| is |(const) void|, else |T|: 23 // Yields |(const) char| if |T| is |(const) void|, else |T|:
24 template <typename T> 24 template <typename T>
25 struct VoidToChar { 25 struct VoidToChar {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 TypeNoConst storage_; 410 TypeNoConst storage_;
411 411
412 MOJO_DISALLOW_COPY_AND_ASSIGN(UserPointerPartialReader); 412 MOJO_DISALLOW_COPY_AND_ASSIGN(UserPointerPartialReader);
413 }; 413 };
414 414
415 } // namespace system 415 } // namespace system
416 } // namespace mojo 416 } // namespace mojo
417 417
418 #endif // MOJO_EDK_SYSTEM_MEMORY_H_ 418 #endif // MOJO_EDK_SYSTEM_MEMORY_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/data_pipe_impl.h ('k') | mojo/edk/system/memory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698