Commit 820a3f04fd4cd967e3831baa835b4b177929f4d3
Committed by
Jay Berkenbilt
1 parent
e316e90d
Remove "lt-" workarounds
The executables that libtool built invoked the underlying binary with an "lt-" prefix. The code contained numerous workarounds for testing, which can now be removed.
Showing
25 changed files
with
1 additions
and
142 deletions
examples/pdf-attach-file.cc
| ... | ... | @@ -155,12 +155,6 @@ int main(int argc, char* argv[]) |
| 155 | 155 | { |
| 156 | 156 | whoami = QUtil::getWhoami(argv[0]); |
| 157 | 157 | |
| 158 | - // For libtool's sake.... | |
| 159 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 160 | - { | |
| 161 | - whoami += 3; | |
| 162 | - } | |
| 163 | - | |
| 164 | 158 | char const* infilename = 0; |
| 165 | 159 | char const* password = 0; |
| 166 | 160 | char const* attachment = 0; | ... | ... |
examples/pdf-bookmarks.cc
| ... | ... | @@ -157,12 +157,6 @@ int main(int argc, char* argv[]) |
| 157 | 157 | { |
| 158 | 158 | whoami = QUtil::getWhoami(argv[0]); |
| 159 | 159 | |
| 160 | - // For libtool's sake.... | |
| 161 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 162 | - { | |
| 163 | - whoami += 3; | |
| 164 | - } | |
| 165 | - | |
| 166 | 160 | if ((argc == 2) && (strcmp(argv[1], "--version") == 0)) |
| 167 | 161 | { |
| 168 | 162 | std::cout << whoami << " version 1.5" << std::endl; | ... | ... |
examples/pdf-count-strings.cc
examples/pdf-create.cc
examples/pdf-custom-filter.cc
| ... | ... | @@ -470,12 +470,6 @@ int main(int argc, char* argv[]) |
| 470 | 470 | { |
| 471 | 471 | whoami = QUtil::getWhoami(argv[0]); |
| 472 | 472 | |
| 473 | - // For libtool's sake.... | |
| 474 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 475 | - { | |
| 476 | - whoami += 3; | |
| 477 | - } | |
| 478 | - | |
| 479 | 473 | char const* infilename = 0; |
| 480 | 474 | char const* outfilename = 0; |
| 481 | 475 | bool decode_specialized = false; | ... | ... |
examples/pdf-double-page-size.cc
| ... | ... | @@ -49,12 +49,6 @@ int main(int argc, char* argv[]) |
| 49 | 49 | { |
| 50 | 50 | whoami = QUtil::getWhoami(argv[0]); |
| 51 | 51 | |
| 52 | - // For libtool's sake.... | |
| 53 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 54 | - { | |
| 55 | - whoami += 3; | |
| 56 | - } | |
| 57 | - | |
| 58 | 52 | // For test suite |
| 59 | 53 | bool static_id = false; |
| 60 | 54 | if ((argc > 1) && (strcmp(argv[1], " --static-id") == 0)) | ... | ... |
examples/pdf-filter-tokens.cc
examples/pdf-invert-images.cc
| ... | ... | @@ -109,12 +109,6 @@ int main(int argc, char* argv[]) |
| 109 | 109 | { |
| 110 | 110 | whoami = QUtil::getWhoami(argv[0]); |
| 111 | 111 | |
| 112 | - // For libtool's sake.... | |
| 113 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 114 | - { | |
| 115 | - whoami += 3; | |
| 116 | - } | |
| 117 | - | |
| 118 | 112 | // For test suite |
| 119 | 113 | bool static_id = false; |
| 120 | 114 | if ((argc > 1) && (strcmp(argv[1], " --static-id") == 0)) | ... | ... |
examples/pdf-mod-info.cc
| ... | ... | @@ -75,12 +75,6 @@ int main(int argc, char* argv[]) |
| 75 | 75 | |
| 76 | 76 | whoami = QUtil::getWhoami(argv[0]); |
| 77 | 77 | |
| 78 | - // For libtool's sake.... | |
| 79 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 80 | - { | |
| 81 | - whoami += 3; | |
| 82 | - } | |
| 83 | - | |
| 84 | 78 | if ((argc == 2) && (! strcmp(argv[1], "--version")) ) |
| 85 | 79 | { |
| 86 | 80 | std::cout << whoami << " version " << version << std::endl; | ... | ... |
examples/pdf-name-number-tree.cc
examples/pdf-npages.cc
| ... | ... | @@ -18,12 +18,6 @@ int main(int argc, char* argv[]) |
| 18 | 18 | { |
| 19 | 19 | whoami = QUtil::getWhoami(argv[0]); |
| 20 | 20 | |
| 21 | - // For libtool's sake.... | |
| 22 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 23 | - { | |
| 24 | - whoami += 3; | |
| 25 | - } | |
| 26 | - | |
| 27 | 21 | if ((argc == 2) && (strcmp(argv[1], "--version") == 0)) |
| 28 | 22 | { |
| 29 | 23 | std::cout << whoami << " version 1.3" << std::endl; | ... | ... |
examples/pdf-overlay-page.cc
examples/pdf-parse-content.cc
examples/pdf-set-form-values.cc
examples/pdf-split-pages.cc
| ... | ... | @@ -59,11 +59,6 @@ int main(int argc, char* argv[]) |
| 59 | 59 | { |
| 60 | 60 | char const* whoami = QUtil::getWhoami(argv[0]); |
| 61 | 61 | |
| 62 | - // For libtool's sake.... | |
| 63 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 64 | - { | |
| 65 | - whoami += 3; | |
| 66 | - } | |
| 67 | 62 | // For test suite |
| 68 | 63 | if ((argc > 1) && (strcmp(argv[1], " --static-id") == 0)) |
| 69 | 64 | { | ... | ... |
examples/qpdf-job.cc
libqpdf/QPDFArgParser.cc
| ... | ... | @@ -21,13 +21,7 @@ QPDFArgParser::Members::Members( |
| 21 | 21 | final_check_handler(nullptr) |
| 22 | 22 | { |
| 23 | 23 | auto tmp = QUtil::make_unique_cstr(argv[0]); |
| 24 | - char* p = QUtil::getWhoami(tmp.get()); | |
| 25 | - // Remove prefix added by libtool for consistency during testing. | |
| 26 | - if (strncmp(p, "lt-", 3) == 0) | |
| 27 | - { | |
| 28 | - p += 3; | |
| 29 | - } | |
| 30 | - whoami = p; | |
| 24 | + whoami = QUtil::getWhoami(tmp.get()); | |
| 31 | 25 | } |
| 32 | 26 | |
| 33 | 27 | QPDFArgParser::QPDFArgParser(int argc, char const* const argv[], | ... | ... |
qpdf/pdf_from_scratch.cc
qpdf/qpdf.cc
| ... | ... | @@ -33,12 +33,6 @@ int realmain(int argc, char* argv[]) |
| 33 | 33 | whoami = QUtil::getWhoami(argv[0]); |
| 34 | 34 | QUtil::setLineBuf(stdout); |
| 35 | 35 | |
| 36 | - // Remove prefix added by libtool for consistency during testing. | |
| 37 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 38 | - { | |
| 39 | - whoami += 3; | |
| 40 | - } | |
| 41 | - | |
| 42 | 36 | QPDFJob j; |
| 43 | 37 | try |
| 44 | 38 | { | ... | ... |
qpdf/test_driver.cc
qpdf/test_large_file.cc
| ... | ... | @@ -306,11 +306,6 @@ int main(int argc, char* argv[]) |
| 306 | 306 | whoami = QUtil::getWhoami(argv[0]); |
| 307 | 307 | QUtil::setLineBuf(stdout); |
| 308 | 308 | |
| 309 | - // For libtool's sake.... | |
| 310 | - if (strncmp(whoami, "lt-", 3) == 0) | |
| 311 | - { | |
| 312 | - whoami += 3; | |
| 313 | - } | |
| 314 | 309 | if (argc != 4) |
| 315 | 310 | { |
| 316 | 311 | usage(); | ... | ... |
qpdf/test_pdf_doc_encoding.cc
qpdf/test_pdf_unicode.cc
qpdf/test_tokenizer.cc
zlib-flate/zlib-flate.cc