diff options
author | Jack Lloyd <[email protected]> | 2015-12-30 23:35:16 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-12-30 23:35:16 -0500 |
commit | d4915aa4cd9c11879780267413f2980d0014240e (patch) | |
tree | 8663a7cde0ad9f7fc632c6c2f5ce33a733f8ed26 /src/cli/math.cpp | |
parent | d27416e791c9aed684efe0d6071fe66a43cf7af0 (diff) |
Avoid having Command* objects be created until requested.
Avoids various static init and destruction hassles.
Diffstat (limited to 'src/cli/math.cpp')
-rw-r--r-- | src/cli/math.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/math.cpp b/src/cli/math.cpp index 07b809d19..27f3660d1 100644 --- a/src/cli/math.cpp +++ b/src/cli/math.cpp @@ -32,7 +32,7 @@ class Gen_Prime : public Command } }; -BOTAN_REGISTER_COMMAND(Gen_Prime); +BOTAN_REGISTER_COMMAND("gen_prime", Gen_Prime); class Is_Prime : public Command { @@ -49,7 +49,7 @@ class Is_Prime : public Command } }; -BOTAN_REGISTER_COMMAND(Is_Prime); +BOTAN_REGISTER_COMMAND("is_prime", Is_Prime); /* * Factor integers using a combination of trial division by small @@ -175,7 +175,7 @@ class Factor : public Command } }; -BOTAN_REGISTER_COMMAND(Factor); +BOTAN_REGISTER_COMMAND("factor", Factor); } |