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

Side by Side Diff: third_party/tcmalloc/chromium/src/base/basictypes.h

Issue 7050034: Merge google-perftools r109 (the current contents of third_party/tcmalloc/vendor) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2005, Google Inc. 1 // Copyright (c) 2005, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #ifndef PRIu64 102 #ifndef PRIu64
103 #define PRIu64 "llu" 103 #define PRIu64 "llu"
104 #endif 104 #endif
105 #ifndef PRIxPTR 105 #ifndef PRIxPTR
106 #define PRIxPTR "lx" 106 #define PRIxPTR "lx"
107 #endif 107 #endif
108 108
109 // Also allow for printing of a pthread_t. 109 // Also allow for printing of a pthread_t.
110 #define GPRIuPTHREAD "lu" 110 #define GPRIuPTHREAD "lu"
111 #define GPRIxPTHREAD "lx" 111 #define GPRIxPTHREAD "lx"
112 #if defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(__APPLE__) 112 #if defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(__APPLE__) || define d(__FreeBSD__)
113 #define PRINTABLE_PTHREAD(pthreadt) reinterpret_cast<uintptr_t>(pthreadt) 113 #define PRINTABLE_PTHREAD(pthreadt) reinterpret_cast<uintptr_t>(pthreadt)
114 #else 114 #else
115 #define PRINTABLE_PTHREAD(pthreadt) pthreadt 115 #define PRINTABLE_PTHREAD(pthreadt) pthreadt
116 #endif 116 #endif
117 117
118 // A macro to disallow the evil copy constructor and operator= functions 118 // A macro to disallow the evil copy constructor and operator= functions
119 // This should be used in the private: declarations for a class 119 // This should be used in the private: declarations for a class
120 #define DISALLOW_EVIL_CONSTRUCTORS(TypeName) \ 120 #define DISALLOW_EVIL_CONSTRUCTORS(TypeName) \
121 TypeName(const TypeName&); \ 121 TypeName(const TypeName&); \
122 void operator=(const TypeName&) 122 void operator=(const TypeName&)
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // zeroes (which the loader does for static variables), AND the destructor also 326 // zeroes (which the loader does for static variables), AND the destructor also
327 // does nothing to the storage, then a constructor declared as 327 // does nothing to the storage, then a constructor declared as
328 // explicit MyClass(base::LinkerInitialized x) {} 328 // explicit MyClass(base::LinkerInitialized x) {}
329 // and invoked as 329 // and invoked as
330 // static MyClass my_variable_name(base::LINKER_INITIALIZED); 330 // static MyClass my_variable_name(base::LINKER_INITIALIZED);
331 namespace base { 331 namespace base {
332 enum LinkerInitialized { LINKER_INITIALIZED }; 332 enum LinkerInitialized { LINKER_INITIALIZED };
333 } 333 }
334 334
335 #endif // _BASICTYPES_H_ 335 #endif // _BASICTYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698