1
0
forked from 0ad/0ad
0ad/source/tools/atlas/GameInterface
janwas c0ed950657 had to remove uint and ulong from lib/types.h due to conflict with other library.
this snowballed into a massive search+destroy of the hodgepodge of
mostly equivalent types we had in use (int, uint, unsigned, unsigned
int, i32, u32, ulong, uintN).

it is more efficient to use 64-bit types in 64-bit mode, so the
preferred default is size_t (for anything remotely resembling a size or
index). tile coordinates are ssize_t to allow more efficient conversion
to/from floating point. flags are int because we almost never need more
than 15 distinct bits, bit test/set is not slower and int is fastest to
type. finally, some data that is pretty much directly passed to OpenGL
is now typed accordingly.

after several hours, the code now requires fewer casts and less
guesswork.

other changes:
- unit and player IDs now have an "invalid id" constant in the
respective class to avoid casting and -1
- fix some endian/64-bit bugs in the map (un)packing. added a
convenience function to write/read a size_t.
- ia32: change CPUID interface to allow passing in ecx (required for
cache topology detection, which I need at work). remove some unneeded
functions from asm, replace with intrinsics where possible.

This was SVN commit r5942.
2008-05-11 18:48:32 +00:00
..
Handlers had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ActorViewer.cpp # SwEng 2007-05-02 12:07:08 +00:00
ActorViewer.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Brushes.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Brushes.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
CommandProc.cpp # Fixes for GCC 2006-11-29 23:37:10 +00:00
CommandProc.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
DeltaArray.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
GameLoop.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
GameLoop.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
InputProcessor.cpp # SwEng 2007-05-02 12:07:08 +00:00
InputProcessor.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
MessagePasser.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
MessagePasserImpl.cpp improvements and fixes: 2008-01-07 20:03:19 +00:00
MessagePasserImpl.h Use one semaphore for the process's lifetime, for efficiency. 2007-09-02 21:16:23 +00:00
Messages.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
MessagesSetup.h Atlas: Ported terrain texture selection panel to JS. Removed textual labels on each texture. 2007-06-14 12:11:22 +00:00
Misc.cpp # Tidied up some code. 2007-01-08 01:56:46 +00:00
Register.cpp #bugfixes 2007-05-11 13:11:25 +00:00
Shareable.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
SharedMemory.h remove mmgr and macros that redefine malloc/new/free 2008-01-19 11:33:11 +00:00
SharedTypes.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
SimState.cpp Atlas: Fixes for compiler warnings and UI layout issues on Windows. Fixed territory updates when deleting units. 2007-06-14 15:42:24 +00:00
SimState.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
View.cpp improvements and fixes: 2008-01-07 20:03:19 +00:00
View.h Fixed non-PCH compiles. 2007-09-02 23:38:58 +00:00