Verify two-way correspondence between translation table and system variables.

This commit is contained in:
Dianne Skoll
2024-12-11 19:48:19 -05:00
parent 82e068fcca
commit a894076bfc
7 changed files with 330 additions and 36 deletions
+2
View File
@@ -100,6 +100,7 @@ ClearTranslationTable(void)
XlateItem *item;
XlateItem *next;
ClearSysvarTranslations();
item = hash_table_next(&TranslationTable, NULL);
while(item) {
next = hash_table_next(&TranslationTable, item);
@@ -234,6 +235,7 @@ InsertTranslation(char const *orig, char const *translated)
return E_NO_MEM;
}
hash_table_insert(&TranslationTable, item);
PropagateTranslationToSysvar(orig, translated);
return OK;
}