aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-03-18 23:22:54 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-03-19 00:53:18 +0100
commit820a3f04fd4cd967e3831baa835b4b177929f4d3 (patch)
tree6524a93cc46e1d03151fc2fa34602807d303390f /examples
parente316e90d1f3124e1ddb7f33f77b91af178b963bd (diff)
downloadqpdf-820a3f04fd4cd967e3831baa835b4b177929f4d3.tar.zst
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/pdf-attach-file.cc6
-rw-r--r--examples/pdf-bookmarks.cc6
-rw-r--r--examples/pdf-count-strings.cc6
-rw-r--r--examples/pdf-create.cc5
-rw-r--r--examples/pdf-custom-filter.cc6
-rw-r--r--examples/pdf-double-page-size.cc6
-rw-r--r--examples/pdf-filter-tokens.cc6
-rw-r--r--examples/pdf-invert-images.cc6
-rw-r--r--examples/pdf-mod-info.cc6
-rw-r--r--examples/pdf-name-number-tree.cc6
-rw-r--r--examples/pdf-npages.cc6
-rw-r--r--examples/pdf-overlay-page.cc6
-rw-r--r--examples/pdf-parse-content.cc6
-rw-r--r--examples/pdf-set-form-values.cc6
-rw-r--r--examples/pdf-split-pages.cc5
-rw-r--r--examples/qpdf-job.cc6
16 files changed, 0 insertions, 94 deletions
diff --git a/examples/pdf-attach-file.cc b/examples/pdf-attach-file.cc
index af1e5267..2cc30262 100644
--- a/examples/pdf-attach-file.cc
+++ b/examples/pdf-attach-file.cc
@@ -155,12 +155,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
char const* infilename = 0;
char const* password = 0;
char const* attachment = 0;
diff --git a/examples/pdf-bookmarks.cc b/examples/pdf-bookmarks.cc
index 1212b86d..e049e423 100644
--- a/examples/pdf-bookmarks.cc
+++ b/examples/pdf-bookmarks.cc
@@ -157,12 +157,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if ((argc == 2) && (strcmp(argv[1], "--version") == 0))
{
std::cout << whoami << " version 1.5" << std::endl;
diff --git a/examples/pdf-count-strings.cc b/examples/pdf-count-strings.cc
index 4c21bc58..4a1a8e4e 100644
--- a/examples/pdf-count-strings.cc
+++ b/examples/pdf-count-strings.cc
@@ -75,12 +75,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if (argc != 2)
{
usage();
diff --git a/examples/pdf-create.cc b/examples/pdf-create.cc
index f4438eab..b5d87618 100644
--- a/examples/pdf-create.cc
+++ b/examples/pdf-create.cc
@@ -409,11 +409,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
if (argc != 2)
{
usage();
diff --git a/examples/pdf-custom-filter.cc b/examples/pdf-custom-filter.cc
index ad4189a3..b986cfcc 100644
--- a/examples/pdf-custom-filter.cc
+++ b/examples/pdf-custom-filter.cc
@@ -470,12 +470,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
char const* infilename = 0;
char const* outfilename = 0;
bool decode_specialized = false;
diff --git a/examples/pdf-double-page-size.cc b/examples/pdf-double-page-size.cc
index 8f29aad4..a2f79301 100644
--- a/examples/pdf-double-page-size.cc
+++ b/examples/pdf-double-page-size.cc
@@ -49,12 +49,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
// For test suite
bool static_id = false;
if ((argc > 1) && (strcmp(argv[1], " --static-id") == 0))
diff --git a/examples/pdf-filter-tokens.cc b/examples/pdf-filter-tokens.cc
index b71857e3..02c3829e 100644
--- a/examples/pdf-filter-tokens.cc
+++ b/examples/pdf-filter-tokens.cc
@@ -192,12 +192,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if (argc != 3)
{
usage();
diff --git a/examples/pdf-invert-images.cc b/examples/pdf-invert-images.cc
index 178cde95..def1dd19 100644
--- a/examples/pdf-invert-images.cc
+++ b/examples/pdf-invert-images.cc
@@ -109,12 +109,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
// For test suite
bool static_id = false;
if ((argc > 1) && (strcmp(argv[1], " --static-id") == 0))
diff --git a/examples/pdf-mod-info.cc b/examples/pdf-mod-info.cc
index 6067fcfe..4ee4cdd0 100644
--- a/examples/pdf-mod-info.cc
+++ b/examples/pdf-mod-info.cc
@@ -75,12 +75,6 @@ int main(int argc, char* argv[])
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if ((argc == 2) && (! strcmp(argv[1], "--version")) )
{
std::cout << whoami << " version " << version << std::endl;
diff --git a/examples/pdf-name-number-tree.cc b/examples/pdf-name-number-tree.cc
index 2f16b5f0..d8bb233e 100644
--- a/examples/pdf-name-number-tree.cc
+++ b/examples/pdf-name-number-tree.cc
@@ -21,12 +21,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if (argc != 2)
{
usage();
diff --git a/examples/pdf-npages.cc b/examples/pdf-npages.cc
index d39c6434..93378c71 100644
--- a/examples/pdf-npages.cc
+++ b/examples/pdf-npages.cc
@@ -18,12 +18,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if ((argc == 2) && (strcmp(argv[1], "--version") == 0))
{
std::cout << whoami << " version 1.3" << std::endl;
diff --git a/examples/pdf-overlay-page.cc b/examples/pdf-overlay-page.cc
index def047c5..5d5468f1 100644
--- a/examples/pdf-overlay-page.cc
+++ b/examples/pdf-overlay-page.cc
@@ -88,12 +88,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if (argc != 4)
{
usage();
diff --git a/examples/pdf-parse-content.cc b/examples/pdf-parse-content.cc
index 89460e18..dbe3a451 100644
--- a/examples/pdf-parse-content.cc
+++ b/examples/pdf-parse-content.cc
@@ -63,12 +63,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if (argc != 3)
{
usage();
diff --git a/examples/pdf-set-form-values.cc b/examples/pdf-set-form-values.cc
index ddd3b2dd..eab24e4f 100644
--- a/examples/pdf-set-form-values.cc
+++ b/examples/pdf-set-form-values.cc
@@ -24,12 +24,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if (argc != 4)
{
usage();
diff --git a/examples/pdf-split-pages.cc b/examples/pdf-split-pages.cc
index 381480ef..c79177ee 100644
--- a/examples/pdf-split-pages.cc
+++ b/examples/pdf-split-pages.cc
@@ -59,11 +59,6 @@ int main(int argc, char* argv[])
{
char const* whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
// For test suite
if ((argc > 1) && (strcmp(argv[1], " --static-id") == 0))
{
diff --git a/examples/qpdf-job.cc b/examples/qpdf-job.cc
index f3905e0d..ecebca3b 100644
--- a/examples/qpdf-job.cc
+++ b/examples/qpdf-job.cc
@@ -27,12 +27,6 @@ int main(int argc, char* argv[])
{
whoami = QUtil::getWhoami(argv[0]);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
if (argc != 1)
{
usage();