diff options
author | deshevoy <deshevoy@yandex-team.ru> | 2022-02-10 16:46:57 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:57 +0300 |
commit | 28148f76dbfcc644d96427d41c92f36cbf2fdc6e (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /tools/rescompressor | |
parent | e988f30484abe5fdeedcc7a5d3c226c01a21800c (diff) | |
download | ydb-28148f76dbfcc644d96427d41c92f36cbf2fdc6e.tar.gz |
Restoring authorship annotation for <deshevoy@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'tools/rescompressor')
-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 221bf9fa4d..9aba1002c5 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) { |