1
0
forked from 0ad/0ad
0ad/source/gui
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
..
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
CButton.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CButton.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CCheckBox.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CCheckBox.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CDropDown.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CDropDown.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CGUI.cpp improvements and fixes: 2008-01-07 20:03:19 +00:00
CGUI.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CGUIList.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
CGUIList.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CGUIScrollBarStyle.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CGUIScrollBarVertical.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CGUIScrollBarVertical.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CGUISprite.cpp # housekeeping 2006-07-20 14:37:58 +00:00
CGUISprite.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CImage.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CImage.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CInput.cpp Changed console character to a _ since the vertical line glyph didn't seem to be available on OS X. 2007-10-13 18:22:20 +00:00
CInput.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CList.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
CList.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CProgressBar.cpp # Fixed some warnings and potentially misleading code 2007-05-29 19:01:21 +00:00
CProgressBar.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CRadioButton.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CRadioButton.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CText.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CText.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
CTooltip.cpp # Slightly tidied up string code. 2007-02-01 14:46:14 +00:00
CTooltip.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
GUI.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
GUIbase.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
GUIbase.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
GUIRenderer.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
GUIRenderer.h # GCC 4.1.1 compatibility 2006-09-30 15:46:40 +00:00
GUItext.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
GUItext.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
GUITooltip.cpp improvements and fixes: 2008-01-07 20:03:19 +00:00
GUITooltip.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
GUItypes.h Updated CList to fit JS interface, also added CDropDown in GUI.h 2005-04-23 23:20:50 +00:00
GUIutil.cpp remove mmgr and macros that redefine malloc/new/free 2008-01-19 11:33:11 +00:00
GUIutil.h Console: changed things so declaring variables while an entity is selected will no longer define a new property in that entity. Kind of broke the ability to access properties of the selected object without typing selection[0], due to other bugs. 2007-06-16 22:07:40 +00:00
IGUIButtonBehavior.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
IGUIButtonBehavior.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
IGUIObject.cpp Atlas: Updated wxJS to latest SVN version. Made the JS runtime have a greater lifetime than all the wx windows, to avoid garbage collection problems. 2007-06-08 22:56:01 +00:00
IGUIObject.h Atlas: Updated wxJS to latest SVN version. Made the JS runtime have a greater lifetime than all the wx windows, to avoid garbage collection problems. 2007-06-08 22:56:01 +00:00
IGUIScrollBar.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
IGUIScrollBar.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
IGUIScrollBarOwner.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
IGUIScrollBarOwner.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
IGUITextOwner.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
IGUITextOwner.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
MiniMap.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
MiniMap.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