K 10
svn:author
V 8
wsimpson
K 8
svn:date
V 27
2007-06-29T05:18:01.945287Z
K 7
svn:log
V 973
(PR#39421) BUG: unit_type name translation

trunk revision 13024.

===

Fixed several tests against ruleset name strings.

Renamed name_orig to name_rule (the origin), and name to name_translated.  
Translated names are now only accessed via a central function.  (The function 
existed, but not everybody used it.)

Moved the translation into the accessor functions, as this seemed to be better 
than spread around in 3 places, especially as the other places in the code 
forgot to test for NULL and '\0' (empty string).

Standardized and simplified some parallel function names:
  unit_* take a unit parameter
  utype_* take a unit_type parameter, or return a unit_type result.
  uclass_* take a unit_class parameter, or return a unit_class result.

renamed unit->type to ->utype, fixing references to use unit_type().

renamed unit_type->class to ->uclass, fixing references to use unit_class(),
as "class" is reserved in C++.  Still more uses of class and Class remain.

END
