Browse Source

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

slesarev 3 years ago
parent
commit
5598c5e7bc
4 changed files with 22 additions and 22 deletions
  1. 1 1
      build/ymake_conf.py
  2. 9 9
      contrib/libs/ya.make
  3. 8 8
      util/generic/algorithm.h
  4. 4 4
      util/system/filemap.cpp

+ 1 - 1
build/ymake_conf.py

@@ -561,7 +561,7 @@ class Build(object):
     @property
     def is_valgrind(self):
         return self.build_type == 'valgrind' or self.build_type == 'valgrind-release'
- 
+
     @property
     def is_ide(self):
         return self.is_ide_build_type(self.build_type)

+ 9 - 9
contrib/libs/ya.make

@@ -57,7 +57,7 @@ RECURSE(
     eccodes
     eccodes/python
     eccodes/tools
-    eigen 
+    eigen
     expat
     falconn
     farmhash
@@ -78,7 +78,7 @@ RECURSE(
     fontconfig
     fp16
     freetype
-    fuse 
+    fuse
     fxdiv
     gamma_function_apache_math_port
     gdal
@@ -218,7 +218,7 @@ RECURSE(
     lz4
     lz4/generated
     lzmasdk
-    lzo2 
+    lzo2
     matrixssl
     mecab
     metrohash
@@ -263,7 +263,7 @@ RECURSE(
     osrm
     pam
     pango
-    pcre 
+    pcre
     pcre2
     pdqsort
     pffft
@@ -377,7 +377,7 @@ IF (OS_FREEBSD OR OS_LINUX)
         mod_perl2
         libeatmydata
     )
-ENDIF() 
+ENDIF()
 
 IF (OS_DARWIN)
     RECURSE(
@@ -407,7 +407,7 @@ IF (OS_LINUX)
         uuid
         virtiofsd
     )
-ENDIF() 
+ENDIF()
 
 IF (OS_WINDOWS)
     RECURSE(
@@ -415,18 +415,18 @@ IF (OS_WINDOWS)
         dokany/dokan
         dokany/dokan_fuse
     )
-ELSE() 
+ELSE()
     RECURSE(
         lftp
         unixodbc
     )
-ENDIF() 
+ENDIF()
 
 IF (OS_LINUX OR OS_WINDOWS)
     RECURSE(
         lockless
     )
-ENDIF() 
+ENDIF()
 
 IF (OS_ANDROID)
     RECURSE(

+ 8 - 8
util/generic/algorithm.h

@@ -258,16 +258,16 @@ static inline void MakeHeap(I f, I l, C c) {
     std::make_heap(f, l, c);
 }
 
-template <class I> 
-static inline void SortHeap(I f, I l) { 
+template <class I>
+static inline void SortHeap(I f, I l) {
     std::sort_heap(f, l);
-} 
- 
-template <class I, class C> 
-static inline void SortHeap(I f, I l, C c) { 
+}
+
+template <class I, class C>
+static inline void SortHeap(I f, I l, C c) {
     std::sort_heap(f, l, c);
-} 
- 
+}
+
 template <class I, class T>
 static inline I LowerBound(I f, I l, const T& v) {
     return std::lower_bound(f, l, v);

+ 4 - 4
util/system/filemap.cpp

@@ -139,7 +139,7 @@ public:
         } else {
             Mapping_ = MAP_FAILED;
         }
-#elif defined(_unix_) 
+#elif defined(_unix_)
         if (!(Mode_ & oNotGreedy)) {
             PtrStart_ = mmap((caddr_t) nullptr, Length_, ModeToMmapProt(Mode_), ModeToMmapFlags(Mode_), File_.GetHandle(), 0);
 
@@ -300,7 +300,7 @@ public:
 
     void Evict() {
 #if defined(_unix_)
-//        Evict(PtrStart_, Length_); 
+//        Evict(PtrStart_, Length_);
 #endif
     }
 
@@ -310,7 +310,7 @@ public:
             ::CloseHandle(Mapping_); // != FALSE
             Mapping_ = nullptr;
         }
-#elif defined(_unix_) 
+#elif defined(_unix_)
         if (PtrStart_) {
             munmap((caddr_t)PtrStart_, Length_);
         }
@@ -341,7 +341,7 @@ private:
 
 #if defined(_win_)
     void* Mapping_;
-#elif defined(_unix_) 
+#elif defined(_unix_)
     void* PtrStart_;
 #endif
 };