Use int instead of long for flags

As long as symbol_by_value(), show_capab() and togg() support only
int, flags need to fit into int.

Not a problem in practice, because no machine capable of running
Empire has int narrower than 32 bits, and 32 bits suffice.

Some flags members are long instead of int: struct lchrstr member
l_flags, struct natstr member nat_flags, struct mchrstr member m_flags
are long.  Waste of space on machines with long wider than int.
Change them to int.

Rearrange struct lchrstr and struct natstr to avoid holes.
This commit is contained in:
Markus Armbruster 2013-01-13 14:11:43 +01:00
parent 77f8846273
commit e51b3fb842
9 changed files with 379 additions and 379 deletions

View file

@ -91,11 +91,11 @@ while (<>) {
# TODO don't do that, use xdump meta instead
s/(^| )[0-9]{10,}/${1}0/g
if $dump =~ /^[a-z]/;
# timeused in xdump country (column 9)
s/^(($xdfld_re ){9})([0-9]+) /${1}255 /
# timeused in xdump country timeused (column 10)
s/^(($xdfld_re ){10})([0-9]+) /${1}255 /
if $dump eq 'country';
# timeused in xdump nat (column 14)
s/^(($xdfld_re ){14})([0-9]+) /${1}255 /
# timeused in xdump nat (column 15)
s/^(($xdfld_re ){15})([0-9]+) /${1}255 /
if $dump eq 'nat';
# duration in xdump news (column 4)
s/^(($xdfld_re ){4})([0-9]+) /${1}0 /