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

Side by Side Diff: src/common/dwarf/types.h

Issue 1571293003: Define intptr and uintptr in a more generic way (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 Google, Inc. All Rights reserved 1 // Copyright 2008 Google, Inc. All Rights reserved
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer 10 // copyright notice, this list of conditions and the following disclaimer
(...skipping 27 matching lines...) Expand all
38 typedef signed char int8; 38 typedef signed char int8;
39 typedef short int16; 39 typedef short int16;
40 typedef int int32; 40 typedef int int32;
41 typedef long long int64; 41 typedef long long int64;
42 42
43 typedef unsigned char uint8; 43 typedef unsigned char uint8;
44 typedef unsigned short uint16; 44 typedef unsigned short uint16;
45 typedef unsigned int uint32; 45 typedef unsigned int uint32;
46 typedef unsigned long long uint64; 46 typedef unsigned long long uint64;
47 47
48 #ifdef __PTRDIFF_TYPE__ 48 typedef intptr_t intptr;
49 typedef __PTRDIFF_TYPE__ intptr; 49 typedef uintptr_t uintptr;
50 typedef unsigned __PTRDIFF_TYPE__ uintptr;
51 #else
52 #error "Can't find pointer-sized integral types."
53 #endif
54 50
55 #endif // _COMMON_DWARF_TYPES_H__ 51 #endif // _COMMON_DWARF_TYPES_H__
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698