Browse Source

Restoring authorship annotation for <ivanmorozov@yandex-team.ru>. Commit 2 of 2.

ivanmorozov 3 years ago
parent
commit
464ba3814a

+ 2 - 2
build/plugins/res.py

@@ -37,10 +37,10 @@ def remove_prefix(text, prefix):
 def onfat_resource(unit, *args):
     unit.onpeerdir(['library/cpp/resource'])
 
-    # Since the maximum length of lpCommandLine string for CreateProcess is 8kb (windows) characters, 
+    # Since the maximum length of lpCommandLine string for CreateProcess is 8kb (windows) characters,
     # we make several calls of rescompiler
     # https://msdn.microsoft.com/ru-ru/library/windows/desktop/ms682425.aspx
-    for part_args in split(args, 8000): 
+    for part_args in split(args, 8000):
         output = listid(part_args) + '.cpp'
         inputs = [x for x, y in iterpair(part_args) if x != '-']
         if inputs:

+ 3 - 3
contrib/libs/libiconv/dynamic/libiconv.exports

@@ -1,4 +1,4 @@
-C libiconv 
-C libiconv_open 
-C libiconv_close 
+C libiconv
+C libiconv_open
+C libiconv_close
 C libiconvctl

+ 2 - 2
contrib/libs/libidn/dynamic/libidn.exports

@@ -1,5 +1,5 @@
-C idna_to_ascii_4i 
-C idna_to_unicode_44i 
+C idna_to_ascii_4i
+C idna_to_unicode_44i
 C idna_to_ascii_4z
 C idna_to_unicode_44z
 C punycode_encode

+ 5 - 5
library/cpp/balloc/balloc.cpp

@@ -72,7 +72,7 @@ namespace NBalloc {
         tls.Mode = Disabled;
 #endif
     }
- 
+
     static void Y_FORCE_INLINE Enable() {
         tls.Mode = ToBeEnabled;
     }
@@ -278,10 +278,10 @@ extern "C" bool IsOwnedByBalloc(void* ptr) {
     return NBalloc::IsOwnedByBalloc(ptr);
 }
 
-extern "C" bool BallocDisabled() { 
-    return NBalloc::IsDisabled(); 
-} 
- 
+extern "C" bool BallocDisabled() {
+    return NBalloc::IsDisabled();
+}
+
 extern "C" void DisableBalloc() {
     NBalloc::Disable();
 }

+ 8 - 8
library/cpp/balloc/malloc-info.cpp

@@ -6,7 +6,7 @@ using namespace NMalloc;
 
 extern "C" void DisableBalloc();
 extern "C" void EnableBalloc();
-extern "C" bool BallocDisabled(); 
+extern "C" bool BallocDisabled();
 
 namespace {
     bool SetAllocParam(const char* name, const char* value) {
@@ -21,13 +21,13 @@ namespace {
         }
         return false;
     }
- 
+
     bool CheckAllocParam(const char* name, bool defaultValue) {
-        if (strcmp(name, "disable") == 0) { 
-            return BallocDisabled(); 
-        } 
-        return defaultValue; 
-    } 
+        if (strcmp(name, "disable") == 0) {
+            return BallocDisabled();
+        }
+        return defaultValue;
+    }
 }
 
 TMallocInfo NMalloc::MallocInfo() {
@@ -35,7 +35,7 @@ TMallocInfo NMalloc::MallocInfo() {
 
     r.Name = "balloc";
     r.SetParam = SetAllocParam;
-    r.CheckParam = CheckAllocParam; 
+    r.CheckParam = CheckAllocParam;
 
     return r;
 }

+ 1 - 1
library/cpp/balloc/optional/operators.cpp

@@ -1 +1 @@
-#include "operators.h" 
+#include "operators.h"

+ 11 - 11
library/cpp/balloc/optional/operators.h

@@ -1,15 +1,15 @@
-#pragma once 
- 
+#pragma once
+
 #include <library/cpp/malloc/api/malloc.h>
-#include <util/string/type.h> 
- 
-inline bool BallocEnabled() { 
-    return !::NMalloc::MallocInfo().CheckParam("disable", true); 
-} 
- 
-inline void ThreadDisableBalloc() { 
-    ::NMalloc::MallocInfo().SetParam("disable", "true"); 
-} 
+#include <util/string/type.h>
+
+inline bool BallocEnabled() {
+    return !::NMalloc::MallocInfo().CheckParam("disable", true);
+}
+
+inline void ThreadDisableBalloc() {
+    ::NMalloc::MallocInfo().SetParam("disable", "true");
+}
 
 inline void ThreadEnableBalloc() {
     ::NMalloc::MallocInfo().SetParam("disable", "false");

+ 12 - 12
library/cpp/balloc/optional/ya.make

@@ -1,15 +1,15 @@
-LIBRARY() 
- 
-OWNER(ivanmorozov) 
- 
-SRCS( 
-    operators.cpp 
-) 
- 
-PEERDIR( 
+LIBRARY()
+
+OWNER(ivanmorozov)
+
+SRCS(
+    operators.cpp
+)
+
+PEERDIR(
     library/cpp/malloc/api
-) 
- 
-END() 
+)
+
+END()
 
 NEED_CHECK()

+ 5 - 5
library/cpp/http/misc/httpreqdata.cpp

@@ -65,9 +65,9 @@ const char* TBaseServerRequestData::RemoteAddr() const {
 }
 
 const char* TBaseServerRequestData::HeaderIn(TStringBuf key) const {
-    auto it = HeadersIn_.find(key); 
+    auto it = HeadersIn_.find(key);
 
-    if (it == HeadersIn_.end()) { 
+    if (it == HeadersIn_.end()) {
         return nullptr;
     }
 
@@ -108,7 +108,7 @@ const char* TBaseServerRequestData::Environment(const char* key) const {
 }
 
 void TBaseServerRequestData::Clear() {
-    HeadersIn_.clear(); 
+    HeadersIn_.clear();
     Addr = Path = Search = nullptr;
     OrigSearch = {};
     SearchLength = 0;
@@ -180,7 +180,7 @@ bool TBaseServerRequestData::Parse(const char* origReq) {
 }
 
 void TBaseServerRequestData::AddHeader(const TString& name, const TString& value) {
-    HeadersIn_[name] = value; 
+    HeadersIn_[name] = value;
 
     if (stricmp(name.data(), "Host") == 0) {
         size_t hostLen = strcspn(value.data(), ":");
@@ -192,5 +192,5 @@ void TBaseServerRequestData::AddHeader(const TString& name, const TString& value
 
 void TBaseServerRequestData::SetPath(const TString& path) {
     PathStorage = TBuffer(path.data(), path.size() + 1);
-    Path = PathStorage.Data(); 
+    Path = PathStorage.Data();
 }

+ 5 - 5
library/cpp/http/misc/httpreqdata.h

@@ -61,11 +61,11 @@ public:
     const char* HeaderIn(TStringBuf key) const;
 
     const THttpHeadersContainer& HeadersIn() const {
-        return HeadersIn_; 
-    } 
- 
+        return HeadersIn_;
+    }
+
     inline size_t HeadersCount() const noexcept {
-        return HeadersIn_.size(); 
+        return HeadersIn_.size();
     }
 
     TString HeaderByIndex(size_t n) const noexcept;
@@ -87,7 +87,7 @@ public:
     void AddHeader(const TString& name, const TString& value);
 
 private:
-    TBuffer PathStorage; 
+    TBuffer PathStorage;
     mutable char* Addr;
     TString Host;
     TString Port;

Some files were not shown because too many files changed in this diff