diff options
author | Bruno Haible <bruno@clisp.org> | 2003-04-14 10:18:32 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2003-04-14 10:18:32 +0000 |
commit | 5e30c2698e2f96abb2ccf69e24f086bc9bd71883 (patch) | |
tree | 80d5121c339f20ee62d2fbe2d8944163c56a2474 /src | |
parent | 6bbdde4f5f769875e153315b06a303e92fa008f0 (diff) | |
download | gperf-5e30c2698e2f96abb2ccf69e24f086bc9bd71883.tar.gz |
Omit the multicompare code output if it is not needed.
Diffstat (limited to 'src')
-rw-r--r-- | src/output.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output.cc b/src/output.cc index 23363f4..40bfb44 100644 --- a/src/output.cc +++ b/src/output.cc @@ -1334,7 +1334,7 @@ Output::output_lookup_function_body (const Output_Compare& comparison) const printf (" if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)\n" " {\n"); - if (option[DUP]) + if (option[DUP] && _total_duplicates > 0) { if (option[LENTABLE]) printf (" register %s%s *lengthptr;\n", @@ -1358,7 +1358,7 @@ Output::output_lookup_function_body (const Output_Compare& comparison) const output_switches (_head, num_switches, switch_size, _min_hash_value, _max_hash_value, 10); - if (option[DUP]) + if (option[DUP] && _total_duplicates > 0) { int indent = 8; printf ("%*s return 0;\n" |