diff options
author | deshevoy <deshevoy@yandex-team.ru> | 2022-02-10 16:46:56 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:56 +0300 |
commit | e988f30484abe5fdeedcc7a5d3c226c01a21800c (patch) | |
tree | 0a217b173aabb57b7e51f8a169989b1a3e0309fe /tools | |
parent | 33ee501c05d3f24036ae89766a858930ae66c548 (diff) | |
download | ydb-e988f30484abe5fdeedcc7a5d3c226c01a21800c.tar.gz |
Restoring authorship annotation for <deshevoy@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rescompressor/main.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/rescompressor/main.cpp b/tools/rescompressor/main.cpp index 9aba1002c5..221bf9fa4d 100644 --- a/tools/rescompressor/main.cpp +++ b/tools/rescompressor/main.cpp @@ -25,8 +25,8 @@ public: } else { WriteIncBin(constname, filename, data); } - WriteFooter(constname); - WriteSymbolSize(constname); + WriteFooter(constname); + WriteSymbolSize(constname); } private: @@ -36,21 +36,21 @@ private: AsmOut << "SECTION .rodata\n"; } - void WriteFooter(TStringBuf constname) { - AsmOut << AsmPrefix << constname << "Size:\n"; - AsmOut << "dd " << AsmPrefix << constname << ".end - " << AsmPrefix << constname << "\n"; + void WriteFooter(TStringBuf constname) { + AsmOut << AsmPrefix << constname << "Size:\n"; + AsmOut << "dd " << AsmPrefix << constname << ".end - " << AsmPrefix << constname << "\n"; } - void WriteSymbolSize(TStringBuf constname) { + void WriteSymbolSize(TStringBuf constname) { AsmOut << "%ifidn __OUTPUT_FORMAT__,elf64\n"; - AsmOut << "size " << AsmPrefix << constname << " " << AsmPrefix << constname << ".end - " << AsmPrefix << constname << "\n"; + AsmOut << "size " << AsmPrefix << constname << " " << AsmPrefix << constname << ".end - " << AsmPrefix << constname << "\n"; AsmOut << "size " << AsmPrefix << constname << "Size 4\n"; AsmOut << "%endif\n"; } void WriteIncBin(TStringBuf constname, TStringBuf filename, const TString& data) { AsmOut << AsmPrefix << constname << ":\nincbin \"" << Basename(filename) << "\"\n"; - AsmOut << ".end:\n"; + AsmOut << ".end:\n"; TFixedBufferFileOutput out(filename.data()); out << data; } @@ -62,7 +62,7 @@ private: AsmOut << IntToString<10, unsigned char>(c) << ","; } AsmOut << IntToString<10, unsigned char>(static_cast<unsigned char>(data[data.size() - 1])) << "\n"; - AsmOut << ".end:\n"; + AsmOut << ".end:\n"; } TString Basename(TStringBuf origin) { |