aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorvvvv <vvvv@yandex-team.ru>2022-02-10 16:46:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:37 +0300
commita693106aae8a3a3c7236a4ae953058a9611d7a92 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /contrib
parentad94e93a059747f4fc3d7add88d1a83daf40b733 (diff)
downloadydb-a693106aae8a3a3c7236a4ae953058a9611d7a92.tar.gz
Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/cxxsupp/libcxxrt/guard.cc4
-rw-r--r--contrib/libs/grpc/src/core/lib/iomgr/error.cc6
-rw-r--r--contrib/libs/highwayhash/highwayhash/os_specific.cc10
-rw-r--r--contrib/tools/python/src/Include/pyport.h40
4 files changed, 30 insertions, 30 deletions
diff --git a/contrib/libs/cxxsupp/libcxxrt/guard.cc b/contrib/libs/cxxsupp/libcxxrt/guard.cc
index c34f871e19..10978716e8 100644
--- a/contrib/libs/cxxsupp/libcxxrt/guard.cc
+++ b/contrib/libs/cxxsupp/libcxxrt/guard.cc
@@ -122,7 +122,7 @@ extern "C" int __cxa_guard_acquire(volatile guard_t *guard_object)
// if one is already established and we end up seeing an initialised state
// then it's a fast path, otherwise we'll do something more expensive than
// this test anyway...
- if (INITIALISED == __atomic_load_n(INIT_PART(guard_object), __ATOMIC_RELAXED))
+ if (INITIALISED == __atomic_load_n(INIT_PART(guard_object), __ATOMIC_RELAXED))
return 0;
// Spin trying to do the initialisation
for (;;)
@@ -142,7 +142,7 @@ extern "C" int __cxa_guard_acquire(volatile guard_t *guard_object)
// No need for a memory barrier here,
// see first comment.
- __atomic_store_n(LOCK_PART(guard_object), INITIAL, __ATOMIC_RELAXED);
+ __atomic_store_n(LOCK_PART(guard_object), INITIAL, __ATOMIC_RELAXED);
return 0;
}
// If lock and init bit are in the same word, check again
diff --git a/contrib/libs/grpc/src/core/lib/iomgr/error.cc b/contrib/libs/grpc/src/core/lib/iomgr/error.cc
index 2a2da67679..c4b5c73952 100644
--- a/contrib/libs/grpc/src/core/lib/iomgr/error.cc
+++ b/contrib/libs/grpc/src/core/lib/iomgr/error.cc
@@ -737,9 +737,9 @@ static char* finish_kvs(kv_pairs* kvs) {
return s;
}
-// Newly allocated error string is stored into err object via atomic cas, and this drives coverity crazy
-// Disable allocation checks as the code is fine.
-// coverity[-alloc]
+// Newly allocated error string is stored into err object via atomic cas, and this drives coverity crazy
+// Disable allocation checks as the code is fine.
+// coverity[-alloc]
const char* grpc_error_string(grpc_error* err) {
GPR_TIMER_SCOPE("grpc_error_string", 0);
if (err == GRPC_ERROR_NONE) return no_error_string;
diff --git a/contrib/libs/highwayhash/highwayhash/os_specific.cc b/contrib/libs/highwayhash/highwayhash/os_specific.cc
index 84b0b08821..c28b2c1ae3 100644
--- a/contrib/libs/highwayhash/highwayhash/os_specific.cc
+++ b/contrib/libs/highwayhash/highwayhash/os_specific.cc
@@ -40,7 +40,7 @@
#define OS_LINUX 0
#endif
-#if defined(__MACH__) || defined(__APPLE__)
+#if defined(__MACH__) || defined(__APPLE__)
#define OS_MAC 1
#include <mach/mach.h>
#include <mach/mach_time.h>
@@ -102,7 +102,7 @@ void RaiseThreadPriority() {
// omit: SCHED_RR and SCHED_FIFO with sched_priority max, max-1 and max/2
// lead to 2-3x runtime and higher variability!
#elif OS_FREEBSD
-#elif OS_MAC
+#elif OS_MAC
#else
#error "port"
#endif
@@ -166,7 +166,7 @@ void SetThreadAffinity(ThreadAffinity* affinity) {
const int err = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, pid,
sizeof(cpuset_t), &affinity->set);
CHECK(err == 0);
-#elif OS_MAC
+#elif OS_MAC
#else
#error "port"
#endif
@@ -194,7 +194,7 @@ std::vector<int> AvailableCPUs() {
cpus.push_back(cpu);
}
}
-#elif OS_MAC
+#elif OS_MAC
#else
#error "port"
#endif
@@ -211,7 +211,7 @@ void PinThreadToCPU(const int cpu) {
#elif OS_FREEBSD
CPU_ZERO(&affinity.set);
CPU_SET(cpu, &affinity.set);
-#elif OS_MAC
+#elif OS_MAC
#else
#error "port"
#endif
diff --git a/contrib/tools/python/src/Include/pyport.h b/contrib/tools/python/src/Include/pyport.h
index d5379b8331..ad2ff5929a 100644
--- a/contrib/tools/python/src/Include/pyport.h
+++ b/contrib/tools/python/src/Include/pyport.h
@@ -763,16 +763,16 @@ extern int fdatasync(int);
# define HAVE_DECLSPEC_DLL
#endif
-/*
- * GCC visibility support, introduced in GCC 4.0. Only matters when
- * compiling with gcc's -fvisibility=hidden argument. This applies to all
- * binaries and when embedding, not just libpython.so. See
- * http://gcc.gnu.org/wiki/Visibility for more information.
- */
-#if defined(__GNUC__) && __GNUC__ >= 4
-# define HAVE_ATTRIBUTE_VISIBILITY
-#endif
-
+/*
+ * GCC visibility support, introduced in GCC 4.0. Only matters when
+ * compiling with gcc's -fvisibility=hidden argument. This applies to all
+ * binaries and when embedding, not just libpython.so. See
+ * http://gcc.gnu.org/wiki/Visibility for more information.
+ */
+#if defined(__GNUC__) && __GNUC__ >= 4
+# define HAVE_ATTRIBUTE_VISIBILITY
+#endif
+
/* only get special linkage if built as shared or platform is Cygwin */
#if defined(Py_ENABLE_SHARED)
# if defined(HAVE_DECLSPEC_DLL)
@@ -804,16 +804,16 @@ extern int fdatasync(int);
# endif /* __cplusplus */
# endif /* Py_BUILD_CORE */
# endif /* HAVE_DECLSPEC */
-#elif defined(HAVE_ATTRIBUTE_VISIBILITY)
-# define PyAPI_FUNC(RTYPE) __attribute__((visibility("default"))) RTYPE
-# define PyAPI_DATA(RTYPE) extern __attribute__((visibility("default"))) RTYPE
-# ifdef Py_BUILD_CORE
-# define PyMODINIT_FUNC void
-# elif defined(__cplusplus)
-# define PyMODINIT_FUNC extern "C" __attribute__((visibility("default"))) void
-# else /* __cplusplus */
-# define PyMODINIT_FUNC __attribute__((visibility("default"))) void
-# endif /* Py_BUILD_CORE */
+#elif defined(HAVE_ATTRIBUTE_VISIBILITY)
+# define PyAPI_FUNC(RTYPE) __attribute__((visibility("default"))) RTYPE
+# define PyAPI_DATA(RTYPE) extern __attribute__((visibility("default"))) RTYPE
+# ifdef Py_BUILD_CORE
+# define PyMODINIT_FUNC void
+# elif defined(__cplusplus)
+# define PyMODINIT_FUNC extern "C" __attribute__((visibility("default"))) void
+# else /* __cplusplus */
+# define PyMODINIT_FUNC __attribute__((visibility("default"))) void
+# endif /* Py_BUILD_CORE */
#endif /* Py_ENABLE_SHARED */
/* If no external linkage macros defined by now, create defaults */