0ad/source/ps
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
..
GameSetup had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
scripting had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
tests pending improvements and partial fixes to self-tests 2008-01-03 22:07:18 +00:00
XML had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
CConsole.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
CConsole.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
CLogger.cpp fix: CLogger's ELogMethod is now inside the class and does not use names that are vulnerable to macro destruction (fixes a conflict with Windows system header's #define ERROR) 2007-12-29 16:22:23 +00:00
CLogger.h fix: CLogger's ELogMethod is now inside the class and does not use names that are vulnerable to macro destruction (fixes a conflict with Windows system header's #define ERROR) 2007-12-29 16:22:23 +00:00
ConfigDB.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
ConfigDB.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CStr.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
CStr.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
DllLoader.cpp fix: CLogger's ELogMethod is now inside the class and does not use names that are vulnerable to macro destruction (fixes a conflict with Windows system header's #define ERROR) 2007-12-29 16:22:23 +00:00
DllLoader.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Errors.cpp # new year's cleanup (reduce dependencies, clean up headers) 2007-01-01 21:25:47 +00:00
Errors.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
FileIo.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
FileIo.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
Filesystem.cpp improvements and fixes: 2008-01-07 20:03:19 +00:00
Filesystem.h improvements and fixes: 2008-01-07 20:03:19 +00:00
Font.cpp fix: CLogger's ELogMethod is now inside the class and does not use names that are vulnerable to macro destruction (fixes a conflict with Windows system header's #define ERROR) 2007-12-29 16:22:23 +00:00
Font.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Game.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
Game.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
GameAttributes.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
GameAttributes.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
GameRecord.cpp Fixed file properties - removed svn:executable and svn:keywords (left over from CVS conversion?) from all files; set svn:eol-style=native for *.cpp, *.h (and fixed files with inconsistent line endings) 2006-04-23 23:14:18 +00:00
GameRecord.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Globals.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
Globals.h pending improvements and partial fixes to self-tests 2008-01-03 22:07:18 +00:00
Hotkey.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
Hotkey.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
i18n.cpp fix: CLogger's ELogMethod is now inside the class and does not use names that are vulnerable to macro destruction (fixes a conflict with Windows system header's #define ERROR) 2007-12-29 16:22:23 +00:00
i18n.h Fixed file properties - removed svn:executable and svn:keywords (left over from CVS conversion?) from all files; set svn:eol-style=native for *.cpp, *.h (and fixed files with inconsistent line endings) 2006-04-23 23:14:18 +00:00
Interact.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
Interact.h Territorial limits applied 2007-07-14 06:15:19 +00:00
KeyName.cpp # SwEng 2007-05-04 17:30:32 +00:00
KeyName.h # SwEng 2007-05-02 12:07:08 +00:00
Loader.cpp improvements and fixes: 2008-01-07 20:03:19 +00:00
Loader.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
LoaderThunks.h # housekeeping 2007-02-01 01:34:17 +00:00
Overlay.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Overlay.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Parser.cpp . split up lib.h/.cpp, include the remnants from PCH, remove (pretty much universal) include of it. 2007-05-09 21:01:11 +00:00
Parser.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Player.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
Player.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
Profile.cpp Fixed unused argument warning. 2008-04-15 13:49:08 +00:00
Profile.h Profiler: Added malloc-counting to GCC. Fixed counting of unlogged allocations in the root node. 2007-06-15 17:03:26 +00:00
ProfileViewer.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
ProfileViewer.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
Pyrogenesis.cpp part4: adapt codebase to changes in lib/ 2007-12-20 20:21:45 +00:00
Pyrogenesis.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
Singleton.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
StringConvert.cpp # SwEng 2007-05-04 17:30:32 +00:00
StringConvert.h Fixed file properties - removed svn:executable and svn:keywords (left over from CVS conversion?) from all files; set svn:eol-style=native for *.cpp, *.h (and fixed files with inconsistent line endings) 2006-04-23 23:14:18 +00:00
ThreadUtil.h . split up lib.h/.cpp, include the remnants from PCH, remove (pretty much universal) include of it. 2007-05-09 21:01:11 +00:00
UniDoubler.h Fixed file properties - removed svn:executable and svn:keywords (left over from CVS conversion?) from all files; set svn:eol-style=native for *.cpp, *.h (and fixed files with inconsistent line endings) 2006-04-23 23:14:18 +00:00
utf16string.h part4: adapt codebase to changes in lib/ 2007-12-20 20:21:45 +00:00
Util.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
Util.h Fixed file properties - removed svn:executable and svn:keywords (left over from CVS conversion?) from all files; set svn:eol-style=native for *.cpp, *.h (and fixed files with inconsistent line endings) 2006-04-23 23:14:18 +00:00
Vector2D.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
World.cpp fix: CLogger's ELogMethod is now inside the class and does not use names that are vulnerable to macro destruction (fixes a conflict with Windows system header's #define ERROR) 2007-12-29 16:22:23 +00:00
World.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00