]> git.pond.sub.org Git - empserver/commit - include/nat.h
Use int instead of long for flags
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Jan 2013 13:11:43 +0000 (14:11 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:57:51 +0000 (06:57 +0200)
commite51b3fb8421295a90ebede10c8c76fce6f1ebbf9
treeff5b9d36c6ac26ef9a4ddfec449aa1d0bc4671f9
parent77f8846273b156803ad7bc876c1d2188ca5f8804
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.
include/land.h
include/nat.h
include/ship.h
src/lib/common/nsc.c
tests/fairland/fairland.xdump
tests/files/files.xdump
tests/normalize.pl
tests/smoke/smoke.out
tests/smoke/smoke.xdump