summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2017-11-28 22:12:43 +0300
committerKirill Volinsky <mataes2007@gmail.com>2017-11-28 22:12:43 +0300
commit80221d816eeb98f0df38e0243390033c614952f3 (patch)
tree7618176108093921b6934343bc2f76a66ea97730 /tools
parent25df99ba7462958f2cb9075020ec1c9a5a7c9f50 (diff)
Source files converted to utf-8
Diffstat (limited to 'tools')
-rw-r--r--tools/MakeDef/h_object.h4
-rw-r--r--tools/MakeDef/h_util.h2
-rw-r--r--tools/MakeDef/tcollect.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/tools/MakeDef/h_object.h b/tools/MakeDef/h_object.h
index d786c62031..1074db7b00 100644
--- a/tools/MakeDef/h_object.h
+++ b/tools/MakeDef/h_object.h
@@ -22,7 +22,7 @@ struct HObject : public HRegisteredObject
virtual ~HObject() {}
};
-//====[ ]================
+//====[ Пул для ускорения выделений маленьких кусочков памяти ]================
struct HDataPage
{
@@ -83,7 +83,7 @@ inline HSmallAllocator& ALLOCATOR( void* Obj )
return *( HSmallAllocator* )p[ -1 ];
}
-//====[ HRegisteredObject ]======================
+//====[ Реализация инлайновых методов HRegisteredObject ]======================
#if !defined( __NO_MEM_MANAGER__ )
inline void* HRegisteredObject::operator new( size_t sz, HSmallAllocator& A )
diff --git a/tools/MakeDef/h_util.h b/tools/MakeDef/h_util.h
index 8f3862000c..cbbbd9b3ed 100644
--- a/tools/MakeDef/h_util.h
+++ b/tools/MakeDef/h_util.h
@@ -36,7 +36,7 @@ bool fileExists(char* fileName);
char* replaceExt(const char* fileName, char* ext, char* buffer);
int shareFile(const char* fileName, bool ifRead, bool ifWrite);
-//----------------- ----------------
+//----------------- ‘ункции дл¤ работы с расширенными строками ----------------
int cstrlen(const char *);
size_t getStrNumber(char* sText);
diff --git a/tools/MakeDef/tcollect.cpp b/tools/MakeDef/tcollect.cpp
index b3c531ea2b..6773a5c382 100644
--- a/tools/MakeDef/tcollect.cpp
+++ b/tools/MakeDef/tcollect.cpp
@@ -200,12 +200,12 @@ bool HCollection::shiftItem(ccIndex pItemNo, int direction)
return false;
switch (direction) {
- case 1: //
+ case 1: // Раздвинуть массив на один элемент
memmove(items + pItemNo + 1, items + pItemNo, sizeof(void*)*(count - pItemNo));
items[pItemNo] = NULL;
return true;
- case -1: //
+ case -1: // Сдвинуть массив на один элемент
memmove(items + pItemNo, items + pItemNo + 1, sizeof(void*)*(count - pItemNo));
items[count] = NULL;
return true;