From 184614f36cf17739e425ae3f9b042c190df99d83 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sun, 6 Sep 2026 19:28:34 +0300
Subject: [PATCH 46/46] rulesave: Rename save_strvec() as save_helptext()

See RM #2223

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 tools/ruleutil/rulesave.c | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/tools/ruleutil/rulesave.c b/tools/ruleutil/rulesave.c
index 183a5fc45c..77e71acbd6 100644
--- a/tools/ruleutil/rulesave.c
+++ b/tools/ruleutil/rulesave.c
@@ -352,11 +352,11 @@ static bool save_uclass_vec(struct section_file *sfile,
 }
 
 /**********************************************************************//**
-  Save strvec as ruleset vector of strings
+  Save helptext as ruleset vector of strings
 **************************************************************************/
-static bool save_strvec(struct section_file *sfile,
-                        struct strvec *to_save,
-                        const char *path, const char *entry)
+static bool save_helptext(struct section_file *sfile,
+                          struct strvec *to_save,
+                          const char *path, const char *entry)
 {
   if (to_save != nullptr) {
     int sect_count = strvec_size(to_save);
@@ -471,7 +471,7 @@ static bool save_buildings_ruleset(const char *filename, const char *name)
                                "%s.flags", path);
       }
 
-      save_strvec(sfile, pb->helptext, path, "helptext");
+      save_helptext(sfile, pb->helptext, path, "helptext");
     }
   } improvement_re_active_iterate_end;
 
@@ -703,7 +703,7 @@ static bool save_cities_ruleset(const char *filename, const char *name)
       secfile_insert_str(sfile, s->graphic_alt, "%s.graphic_alt", path);
     }
 
-    save_strvec(sfile, s->helptext, path, "helptext");
+    save_helptext(sfile, s->helptext, path, "helptext");
 
   } specialist_type_iterate_end;
 
@@ -1811,7 +1811,7 @@ static bool save_game_ruleset(const char *filename, const char *name)
                              "%s.flags", path);
     }
 
-    save_strvec(sfile, pgood->helptext, path, "helptext");
+    save_helptext(sfile, pgood->helptext, path, "helptext");
   } goods_type_re_active_iterate_end;
 
   /* Clauses */
@@ -1852,7 +1852,7 @@ static bool save_game_ruleset(const char *filename, const char *name)
 
     if (pcounter->helptext != nullptr
         && strvec_size(pcounter->helptext) > 0) {
-      save_strvec(sfile, pcounter->helptext, path, "helptext");
+      save_helptext(sfile, pcounter->helptext, path, "helptext");
     }
   } counters_re_iterate_end;
 
@@ -1971,7 +1971,7 @@ static bool save_governments_ruleset(const char *filename, const char *name)
       }
     }
 
-    save_strvec(sfile, pg->helptext, path, "helptext");
+    save_helptext(sfile, pg->helptext, path, "helptext");
 
   } governments_re_active_iterate_end;
 
@@ -1997,7 +1997,7 @@ static bool save_governments_ruleset(const char *filename, const char *name)
 
       save_reqs_vector(sfile, &(pmul->reqs), path, "reqs");
 
-      save_strvec(sfile, pmul->helptext, path, "helptext");
+      save_helptext(sfile, pmul->helptext, path, "helptext");
     }
   } multipliers_iterate_end;
 
@@ -2469,7 +2469,7 @@ static bool save_techs_ruleset(const char *filename, const char *name)
         secfile_insert_int(sfile, pa->cost, "%s.cost", path);
       }
 
-      save_strvec(sfile, pa->helptext, path, "helptext");
+      save_helptext(sfile, pa->helptext, path, "helptext");
     }
 
   } advance_re_active_iterate_end;
@@ -2761,7 +2761,7 @@ static bool save_terrain_ruleset(const char *filename, const char *name)
 
     rgbcolor_save(sfile, pterr->rgb, "%s.color", path);
 
-    save_strvec(sfile, pterr->helptext, path, "helptext");
+    save_helptext(sfile, pterr->helptext, path, "helptext");
 
   } terrain_type_iterate_end;
 
@@ -2976,7 +2976,7 @@ static bool save_terrain_ruleset(const char *filename, const char *name)
                              "%s.bridged_over", path);
     }
 
-    save_strvec(sfile, pextra->helptext, path, "helptext");
+    save_helptext(sfile, pextra->helptext, path, "helptext");
 
   } extra_type_re_active_iterate_end;
 
@@ -3275,7 +3275,7 @@ static bool save_units_ruleset(const char *filename, const char *name)
                              "%s.flags", path);
     }
 
-    save_strvec(sfile, puc->helptext, path, "helptext");
+    save_helptext(sfile, puc->helptext, path, "helptext");
 
   } unit_class_re_active_iterate_end;
 
@@ -3411,7 +3411,7 @@ static bool save_units_ruleset(const char *filename, const char *name)
                                "%s.roles", path);
       }
 
-      save_strvec(sfile, put->helptext, path, "helptext");
+      save_helptext(sfile, put->helptext, path, "helptext");
     }
   } unit_type_re_active_iterate_end;
 
-- 
2.53.0

