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

Side by Side Diff: compat/mac/mach-o/getsect.h

Issue 700143004: C++11: Use type aliases instead of typedefs (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 1 month 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 | « client/simulate_crash_mac.cc ('k') | compat/mac/mach-o/getsect.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 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 14 matching lines...) Expand all
25 25
26 #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 26 #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
27 27
28 #include <mach-o/loader.h> 28 #include <mach-o/loader.h>
29 #include <stdint.h> 29 #include <stdint.h>
30 30
31 #ifdef __cplusplus 31 #ifdef __cplusplus
32 extern "C" { 32 extern "C" {
33 #endif 33 #endif
34 34
35 // Don’t use a typedef to account for the mach_header/mach_header_64 difference 35 // Don’t use a type alias to account for the mach_header/mach_header_64
36 // between the 32-bit and 64-bit versions of getsectiondata() and 36 // difference between the 32-bit and 64-bit versions of getsectiondata() and
37 // getsegmentdata(). This file should be faithfully equivalent to the native 37 // getsegmentdata(). This file should be faithfully equivalent to the native
38 // SDK, and adding typedefs here would pollute the namespace in a way that the 38 // SDK, and adding type aliases here would pollute the namespace in a way that
39 // native SDK does not. 39 // the native SDK does not.
40 40
41 #if !defined(__LP64__) 41 #if !defined(__LP64__)
42 42
43 uint8_t* getsectiondata(const struct mach_header* mhp, 43 uint8_t* getsectiondata(const struct mach_header* mhp,
44 const char* segname, 44 const char* segname,
45 const char* sectname, 45 const char* sectname,
46 unsigned long* size); 46 unsigned long* size);
47 47
48 uint8_t* getsegmentdata( 48 uint8_t* getsegmentdata(
49 const struct mach_header* mhp, const char* segname, unsigned long* size); 49 const struct mach_header* mhp, const char* segname, unsigned long* size);
(...skipping 10 matching lines...) Expand all
60 60
61 #endif 61 #endif
62 62
63 #ifdef __cplusplus 63 #ifdef __cplusplus
64 } // extern "C" 64 } // extern "C"
65 #endif 65 #endif
66 66
67 #endif // MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 67 #endif // MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
68 68
69 #endif // CRASHPAD_COMPAT_MAC_MACH_O_GETSECT_H_ 69 #endif // CRASHPAD_COMPAT_MAC_MACH_O_GETSECT_H_
OLDNEW
« no previous file with comments | « client/simulate_crash_mac.cc ('k') | compat/mac/mach-o/getsect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698