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

Side by Side Diff: src/platform.h

Issue 115756: Split nested namespaces declaration in two lines in accordance with C++ Style Guide. (Closed)
Patch Set: Created 11 years, 7 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 enum { 53 enum {
54 FP_NAN, 54 FP_NAN,
55 FP_INFINITE, 55 FP_INFINITE,
56 FP_ZERO, 56 FP_ZERO,
57 FP_SUBNORMAL, 57 FP_SUBNORMAL,
58 FP_NORMAL 58 FP_NORMAL
59 }; 59 };
60 60
61 #define INFINITY HUGE_VAL 61 #define INFINITY HUGE_VAL
62 62
63 namespace v8 { namespace internal { 63 namespace v8 {
64 namespace internal {
64 int isfinite(double x); 65 int isfinite(double x);
65 } } 66 } }
66 int isnan(double x); 67 int isnan(double x);
67 int isinf(double x); 68 int isinf(double x);
68 int isless(double x, double y); 69 int isless(double x, double y);
69 int isgreater(double x, double y); 70 int isgreater(double x, double y);
70 int fpclassify(double x); 71 int fpclassify(double x);
71 int signbit(double x); 72 int signbit(double x);
72 73
73 int strncasecmp(const char* s1, const char* s2, int n); 74 int strncasecmp(const char* s1, const char* s2, int n);
(...skipping 24 matching lines...) Expand all
98 // only when compiling with GCC versions affected by the bug (2.96.x - 4.0.x) 99 // only when compiling with GCC versions affected by the bug (2.96.x - 4.0.x)
99 // __GNUC_PREREQ is not defined in GCC for Mac OS X, so we define our own macro 100 // __GNUC_PREREQ is not defined in GCC for Mac OS X, so we define our own macro
100 #if __GNUC_VERSION__ >= 29600 && __GNUC_VERSION__ < 40100 101 #if __GNUC_VERSION__ >= 29600 && __GNUC_VERSION__ < 40100
101 #include <limits> 102 #include <limits>
102 #undef INFINITY 103 #undef INFINITY
103 #define INFINITY std::numeric_limits<double>::infinity() 104 #define INFINITY std::numeric_limits<double>::infinity()
104 #endif 105 #endif
105 106
106 #endif // __GNUC__ 107 #endif // __GNUC__
107 108
108 namespace v8 { namespace internal { 109 namespace v8 {
110 namespace internal {
109 111
110 double ceiling(double x); 112 double ceiling(double x);
111 113
112 // Forward declarations. 114 // Forward declarations.
113 class Socket; 115 class Socket;
114 116
115 // ---------------------------------------------------------------------------- 117 // ----------------------------------------------------------------------------
116 // OS 118 // OS
117 // 119 //
118 // This class has static methods for the different platform specific 120 // This class has static methods for the different platform specific
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 bool active_; 531 bool active_;
530 PlatformData* data_; // Platform specific data. 532 PlatformData* data_; // Platform specific data.
531 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 533 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
532 }; 534 };
533 535
534 #endif // ENABLE_LOGGING_AND_PROFILING 536 #endif // ENABLE_LOGGING_AND_PROFILING
535 537
536 } } // namespace v8::internal 538 } } // namespace v8::internal
537 539
538 #endif // V8_PLATFORM_H_ 540 #endif // V8_PLATFORM_H_
OLDNEW
« src/accessors.h ('K') | « src/parser.cc ('k') | src/platform-freebsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698