diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-11-29 13:12:38 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-29 13:12:38 +0100 |
commit | 90986d4dbbd38e2e89f986d621e301304210452e (patch) | |
tree | cb7959bfc62be9765e55d2591f71a532f832a896 /cmdline | |
parent | 875a9e54ba956dace823866bca7935f6ab8e8d06 (diff) |
use function pointers instead of weak symbols for cmdline parsing
Passing function pointers around while working on this was very icky,
but if weak symbols are too much to ask for…
Reverts "do not use "-Wl,-Bsymbolic-functions" during the build to avoid
breakage" aka a5fc9be36211a290a7abc3ca2a8bf98943bc1f57.
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-cache.cc | 2 | ||||
-rw-r--r-- | cmdline/apt-cdrom.cc | 2 | ||||
-rw-r--r-- | cmdline/apt-config.cc | 2 | ||||
-rw-r--r-- | cmdline/apt-extracttemplates.cc | 2 | ||||
-rw-r--r-- | cmdline/apt-get.cc | 2 | ||||
-rw-r--r-- | cmdline/apt-helper.cc | 2 | ||||
-rw-r--r-- | cmdline/apt-internal-solver.cc | 2 | ||||
-rw-r--r-- | cmdline/apt-mark.cc | 2 | ||||
-rw-r--r-- | cmdline/apt-sortpkgs.cc | 2 | ||||
-rw-r--r-- | cmdline/apt.cc | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index b70e1db38..4a592da8f 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -1247,7 +1247,7 @@ int main(int argc,const char *argv[]) /*{{{*/ // Parse the command line and initialize the package library CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CACHE, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CACHE, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); InitOutput(); diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index 4a24f198c..d8a2d84cf 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -229,7 +229,7 @@ int main(int argc,const char *argv[]) /*{{{*/ // Parse the command line and initialize the package library CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CDROM, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CDROM, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); InitOutput(); diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index c364b8cdf..b86a0fd97 100644 --- a/cmdline/apt-config.cc +++ b/cmdline/apt-config.cc @@ -101,7 +101,7 @@ int main(int argc,const char *argv[]) /*{{{*/ // Parse the command line and initialize the package library CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CONFIG, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CONFIG, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); std::vector<std::string> const langs = APT::Configuration::getLanguages(true); _config->Clear("Acquire::Languages"); diff --git a/cmdline/apt-extracttemplates.cc b/cmdline/apt-extracttemplates.cc index 0e60ff5fb..d1345400b 100644 --- a/cmdline/apt-extracttemplates.cc +++ b/cmdline/apt-extracttemplates.cc @@ -342,7 +342,7 @@ int main(int argc, const char **argv) /*{{{*/ InitLocale(); CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_EXTRACTTEMPLATES, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_EXTRACTTEMPLATES, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); Go(CmdL); diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 5002ec1b8..b8d72a0bc 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -434,7 +434,7 @@ int main(int argc,const char *argv[]) /*{{{*/ // Parse the command line and initialize the package library CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_GET, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_GET, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); InitSignals(); InitOutput(); diff --git a/cmdline/apt-helper.cc b/cmdline/apt-helper.cc index 176a67e03..1be122ad0 100644 --- a/cmdline/apt-helper.cc +++ b/cmdline/apt-helper.cc @@ -131,7 +131,7 @@ int main(int argc,const char *argv[]) /*{{{*/ InitLocale(); CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_HELPER, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_HELPER, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); InitOutput(); diff --git a/cmdline/apt-internal-solver.cc b/cmdline/apt-internal-solver.cc index ae90c1655..90800e1d9 100644 --- a/cmdline/apt-internal-solver.cc +++ b/cmdline/apt-internal-solver.cc @@ -71,7 +71,7 @@ int main(int argc,const char *argv[]) /*{{{*/ DropPrivileges(); CommandLine CmdL; - ParseCommandLine(CmdL, APT_CMD::APT_INTERNAL_SOLVER, &_config, NULL, argc, argv); + ParseCommandLine(CmdL, APT_CMD::APT_INTERNAL_SOLVER, &_config, NULL, argc, argv, &ShowHelp, &GetCommands); if (CmdL.FileList[0] != 0 && strcmp(CmdL.FileList[0], "scenario") == 0) { diff --git a/cmdline/apt-mark.cc b/cmdline/apt-mark.cc index 132bd7ef6..2491a8ebf 100644 --- a/cmdline/apt-mark.cc +++ b/cmdline/apt-mark.cc @@ -322,7 +322,7 @@ int main(int argc,const char *argv[]) /*{{{*/ InitLocale(); CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_MARK, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_MARK, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); InitOutput(); diff --git a/cmdline/apt-sortpkgs.cc b/cmdline/apt-sortpkgs.cc index a4707a974..7e3301a05 100644 --- a/cmdline/apt-sortpkgs.cc +++ b/cmdline/apt-sortpkgs.cc @@ -155,7 +155,7 @@ int main(int argc,const char *argv[]) /*{{{*/ InitLocale(); CommandLine CmdL; - ParseCommandLine(CmdL, APT_CMD::APT_SORTPKG, &_config, &_system, argc, argv); + ParseCommandLine(CmdL, APT_CMD::APT_SORTPKG, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); // Match the operation for (unsigned int I = 0; I != CmdL.FileSize(); I++) diff --git a/cmdline/apt.cc b/cmdline/apt.cc index 761ad60db..64d374e1f 100644 --- a/cmdline/apt.cc +++ b/cmdline/apt.cc @@ -100,7 +100,7 @@ int main(int argc, const char *argv[]) /*{{{*/ InitLocale(); CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); int const quiet = _config->FindI("quiet", 0); if (quiet == 2) |