about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-14 11:22:01 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-14 11:22:01 -0800
commit417db83de5673d26c7b997d27dcbcffda949fcd0 (patch)
tree5becee17f603a3313ea76a3bd0e2ac93a12932e0
parentaba49e6ce9d389950e686d593dd6f6eb91308dc6 (diff)
downloadmu-417db83de5673d26c7b997d27dcbcffda949fcd0.tar.gz
2436
-rw-r--r--057static_dispatch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/057static_dispatch.cc b/057static_dispatch.cc
index a4f230b9..082452ff 100644
--- a/057static_dispatch.cc
+++ b/057static_dispatch.cc
@@ -33,7 +33,7 @@ for (map<string, vector<recipe_ordinal> >::iterator p = Recipe_variants.begin();
 if (contains_key(Recipe_ordinal, result.name)) {
   const recipe_ordinal r = get(Recipe_ordinal, result.name);
   if ((!contains_key(Recipe, r) || get(Recipe, r).has_header)
-      && !header_already_exists(result)) {
+      && !variant_already_exists(result)) {
     string new_name = next_unused_recipe_name(result.name);
     put(Recipe_ordinal, new_name, Next_recipe_ordinal++);
     get(Recipe_variants, result.name).push_back(get(Recipe_ordinal, new_name));
@@ -47,7 +47,7 @@ else {
 }
 
 :(code)
-bool header_already_exists(const recipe& rr) {
+bool variant_already_exists(const recipe& rr) {
   const vector<recipe_ordinal>& variants = get(Recipe_variants, rr.name);
   for (long long int i = 0; i < SIZE(variants); ++i) {
     if (contains_key(Recipe, variants.at(i))