diff options
author | lunc <lunc@yandex-team.ru> | 2022-02-10 16:49:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:39 +0300 |
commit | 2a5efb07f92ee222959e5f3f26eddd1d6c7fd7da (patch) | |
tree | dcbe7da9d893c470a4fb41c159d7c232a1fb2613 | |
parent | 1ef52da9919aaa7ec7e3c51da7fdaa637ab133b7 (diff) | |
download | ydb-2a5efb07f92ee222959e5f3f26eddd1d6c7fd7da.tar.gz |
Restoring authorship annotation for <lunc@yandex-team.ru>. Commit 1 of 2.
-rw-r--r-- | library/cpp/http/server/http.cpp | 4 | ||||
-rw-r--r-- | library/cpp/http/server/http.h | 2 | ||||
-rw-r--r-- | util/network/poller.cpp | 2 | ||||
-rw-r--r-- | util/string/util.cpp | 8 | ||||
-rw-r--r-- | util/string/util.h | 38 | ||||
-rw-r--r-- | util/system/filemap.cpp | 2 |
6 files changed, 28 insertions, 28 deletions
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp index 128583bdd7..2d77dc1de1 100644 --- a/library/cpp/http/server/http.cpp +++ b/library/cpp/http/server/http.cpp @@ -396,7 +396,7 @@ public: Options_.MaxQueueSize = maxQS; Requests->Start(Options_.nThreads, Options_.MaxQueueSize); } - + TImpl(THttpServer* parent, ICallBack* cb, TMtpQueueRef mainWorkers, TMtpQueueRef failWorkers, const TOptions& options_) : Requests(mainWorkers) , FailRequests(failWorkers) @@ -481,7 +481,7 @@ private: return pool; } }; - + THttpServer::THttpServer(ICallBack* cb, const TOptions& options, IThreadFactory* pool) : Impl_(new TImpl(this, cb, options, pool)) { diff --git a/library/cpp/http/server/http.h b/library/cpp/http/server/http.h index b292d38f27..552149a136 100644 --- a/library/cpp/http/server/http.h +++ b/library/cpp/http/server/http.h @@ -13,7 +13,7 @@ class IThreadFactory; class TClientRequest; class TClientConnection; - + class THttpServer { friend class TClientRequest; friend class TClientConnection; diff --git a/util/network/poller.cpp b/util/network/poller.cpp index 7954d0e8b5..d19a1a9893 100644 --- a/util/network/poller.cpp +++ b/util/network/poller.cpp @@ -16,7 +16,7 @@ public: for (size_t i = 0; i < ret; ++i) { ev[i] = ExtractEvent(&events[i]); - } + } return ret; } diff --git a/util/string/util.cpp b/util/string/util.cpp index b14f20bf75..320baf7dcd 100644 --- a/util/string/util.cpp +++ b/util/string/util.cpp @@ -13,8 +13,8 @@ int a2i(const TString& s) { //============================== span ===================================== void str_spn::init(const char* charset, bool extended) { - // chars_table_1 is necessary to avoid some unexpected - // multi-threading issues + // chars_table_1 is necessary to avoid some unexpected + // multi-threading issues ui8 chars_table_1[256]; memset(chars_table_1, 0, sizeof(chars_table_1)); if (extended) { @@ -34,9 +34,9 @@ void str_spn::init(const char* charset, bool extended) { } } memcpy(chars_table, chars_table_1, 256); - chars_table_1[0] = 1; + chars_table_1[0] = 1; for (int n = 0; n < 256; n++) { - c_chars_table[n] = !chars_table_1[n]; + c_chars_table[n] = !chars_table_1[n]; } } diff --git a/util/string/util.h b/util/string/util.h index 0d77a5042b..93c1fba5b7 100644 --- a/util/string/util.h +++ b/util/string/util.h @@ -45,19 +45,19 @@ inline void addIfAbsent(TString& s, char lastCh1, char lastCh2) { /// @} -/* - * ------------------------------------------------------------------ - * - * A fast implementation of glibc's functions; - * strspn, strcspn and strpbrk. - * - * ------------------------------------------------------------------ - */ +/* + * ------------------------------------------------------------------ + * + * A fast implementation of glibc's functions; + * strspn, strcspn and strpbrk. + * + * ------------------------------------------------------------------ + */ struct ui8_256 { - // forward chars table + // forward chars table ui8 chars_table[256]; - // reverse (for c* functions) chars table - ui8 c_chars_table[256]; + // reverse (for c* functions) chars table + ui8 c_chars_table[256]; }; class str_spn: public ui8_256 { @@ -67,16 +67,16 @@ public: // interior of brackets [ ], e.g. "a-z0-9" init(charset, extended); } - + /// Return first character in table, like strpbrk() /// That is, skip all characters not in table /// [DIFFERENCE FOR NOT_FOUND CASE: Returns end of string, not NULL] const char* brk(const char* s) const { while (c_chars_table[(ui8)*s]) ++s; - return s; - } - + return s; + } + const char* brk(const char* s, const char* e) const { while (s < e && c_chars_table[(ui8)*s]) ++s; @@ -90,7 +90,7 @@ public: ++s; return s; } - + const char* cbrk(const char* s, const char* e) const { while (s < e && chars_table[(ui8)*s]) ++s; @@ -101,7 +101,7 @@ public: size_t spn(const char* s) const { return cbrk(s) - s; } - + size_t spn(const char* s, const char* e) const { return cbrk(s, e) - s; } @@ -110,7 +110,7 @@ public: size_t cspn(const char* s) const { return brk(s) - s; } - + size_t cspn(const char* s, const char* e) const { return brk(s, e) - s; } @@ -118,7 +118,7 @@ public: char* brk(char* s) const { return const_cast<char*>(brk((const char*)s)); } - + char* cbrk(char* s) const { return const_cast<char*>(cbrk((const char*)s)); } diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp index 7454a4cb94..b3590eb610 100644 --- a/util/system/filemap.cpp +++ b/util/system/filemap.cpp @@ -9,7 +9,7 @@ #if defined(_win_) #include "winint.h" -#elif defined(_unix_) +#elif defined(_unix_) #include <sys/types.h> #include <sys/mman.h> |