From 0910e767ad5609c2efcf65ddc80a5b7bede434d0 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 3 Jan 2022 10:16:28 -0500 Subject: QPDFJob increment: basic QPDFJob structure Move most of the methods called from qpdf.cc after argument parsing into QPDFJob. In this increment, enough QPDFJob API has been added to handle the branch of QPDFJob::run() that creates output with an appropriate division between qpdf.cc and QPDFJob. There are temporary bits of code to enable everything to compile and pass the test suite, including some duplication and hard-coded values. --- libqpdf/QPDFArgParser.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libqpdf/QPDFArgParser.cc') diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc index 81b6557d..a1e9b785 100644 --- a/libqpdf/QPDFArgParser.cc +++ b/libqpdf/QPDFArgParser.cc @@ -24,6 +24,11 @@ QPDFArgParser::Members::Members( option_table(nullptr), final_check_handler(nullptr) { + // Remove prefix added by libtool for consistency during testing. + if (strncmp(whoami, "lt-", 3) == 0) + { + whoami += 3; + } } QPDFArgParser::QPDFArgParser(int argc, char* argv[], char const* progname_env) : -- cgit v1.2.3-70-g09d2