Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-10-19 | Added operator== and != to Common::Array | Max Horn | |
svn-id: r45247 | |||
2009-07-13 | Unify PS2 and non-PS2 alloc code in Common::Array code (if this causes ↵ | Max Horn | |
regressions somewhere, we better find a fix that also works on PS2) svn-id: r42455 | |||
2009-07-12 | Added a temporary work-around for PS2 backend in common/array.h | Max Lingua | |
cause its vintage compiler does not support "new T[newCapacity]()" but only "new T[newCapacity]", this will let it compile through. It's ifdef'd as __PLAYSTATION2__, so it won't make a difference for other backends with more modern tools. svn-id: r42402 | |||
2009-05-26 | Fixed a bug in Common::Array (including a unit test for it), and changed the ↵ | Max Horn | |
way the internal storage growth over time. The bug could result in incorrect results when using push_back (or insert_at) to insert data from an array into itself if this insertions would cause the internal array storage to grow. Also added a unit test for this bug. Furthermore, if the internal storage needs to grow, it will now be resized to the next power of two, instead of being increased by 32. svn-id: r40907 | |||
2009-05-10 | Changed Common::Array::resize() to default init new array elements | Max Horn | |
svn-id: r40430 | |||
2009-05-05 | COMMON: Changed Array destructor to reset _storage and _size to 0 -- this ↵ | Max Horn | |
helps to find 'Array used after being disposed' bugs svn-id: r40326 | |||
2009-05-04 | COMMON: Made Array::resize() init/zero the memory it allocates | Max Horn | |
svn-id: r40304 | |||
2009-05-03 | COMMON: Check for failed memory allocations; changed Common::String to use ↵ | Max Horn | |
new/delete instead of malloc/free svn-id: r40291 | |||
2009-05-03 | COMMON: Changed Array::resize to not shrink the internal storage if we ↵ | Max Horn | |
shrink the array svn-id: r40262 | |||
2009-04-27 | COMMON: Improved efficiency of some Common::List methods; added more unit ↵ | Max Horn | |
tests and some doxygen comments for Common::List and Common::Array svn-id: r40164 | |||
2009-04-27 | COMMON: Made sure Common::List and Common::array each have all ↵ | Max Horn | |
front/back/push_back/push_front, as have their STL counterparts svn-id: r40163 | |||
2009-04-22 | COMMON: changed class StringList to a simple typedef; enhanced the ↵ | Max Horn | |
Common::Array constructor which converts regular arrays to Array objects to be more flexible in its type (allows e.g. to assign an array of char* to a StringList svn-id: r40077 | |||
2009-04-20 | COMMON & TESTS: Added new constructor to Array<T>, namely Array(const T* ↵ | Max Horn | |
data, int n), which makes it possible to clone a regular array into a Common::Array; added a unit test for that and slightly extended existing Common::Array unit tests svn-id: r40027 | |||
2008-08-20 | Unified member names in container/storage classes Array, HashMap and String: ↵ | Max Horn | |
_storage, _size, _capacity svn-id: r34052 | |||
2008-05-07 | Proper delete[] formatting (this time all occurences should've been changed...) | Johannes Schickel | |
svn-id: r31929 | |||
2008-05-03 | Formatting. | Johannes Schickel | |
svn-id: r31852 | |||
2008-04-14 | Removed Common::Array::contains() | Max Horn | |
svn-id: r31501 | |||
2008-02-27 | Added Array::resize() method | Max Horn | |
svn-id: r30983 | |||
2008-02-27 | Added Array::resize() method, matching vector::resize() from the std C++ lib | Max Horn | |
svn-id: r30982 | |||
2007-11-11 | Cleanup. | Johannes Schickel | |
svn-id: r29476 | |||
2007-09-19 | Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵ | Nicola Mettifogo | |
been updated. svn-id: r28966 | |||
2007-09-18 | Must include stdafx.h before scummsys.h | Max Horn | |
svn-id: r28949 | |||
2007-05-30 | Updated legal headers in source files, based on what Pidgin (the IM client ↵ | Max Horn | |
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024 | |||
2007-05-23 | Commit of patch #1715313 ("CORE: STL like algorithm implementation"). | Johannes Schickel | |
svn-id: r26929 | |||
2007-03-12 | Protect Array<> and HashMap<> instances against self assignments | Max Horn | |
svn-id: r26115 | |||
2007-03-09 | Removing some unnecessary #includes | Max Horn | |
svn-id: r26044 | |||
2006-10-13 | Fixes compiling for me with g++ (GCC) 4.1.2 20061007 (prerelease) (Debian ↵ | Johannes Schickel | |
4.1.1-16) on amd64. svn-id: r24298 | |||
2006-03-28 | Renamed various container isEmpty() methods to empty() to match STL conventions | Max Horn | |
svn-id: r21472 | |||
2006-02-11 | Change CVS keywords to SVN keywords | Max Horn | |
svn-id: r20510 | |||
2006-01-18 | Update copyright notice | Eugene Sandulenko | |
svn-id: r20088 | |||
2005-10-18 | Update FSF address. Eek. Actually that took place on May 1, 2005 | Eugene Sandulenko | |
svn-id: r19142 | |||
2005-07-30 | Remove trailing whitespaces. | Eugene Sandulenko | |
svn-id: r18604 | |||
2005-06-21 | Patches needed to build for SYMBIAN32 WINS/GCC added. | Lars Persson | |
Test built for Symbian and run on P910i without any major problems. Test built for MSVC6. Changed parts seems to compile ok but there are some problems with MSVC6 and some of the targets which the EPOC build does n't support (KYRA,SAGA). svn-id: r18430 | |||
2005-01-01 | Updated copyright | Max Horn | |
svn-id: r16398 | |||
2004-09-28 | Preserve the order of config file sections -> to suite people who manually ↵ | Max Horn | |
edit the config file svn-id: r15322 | |||
2004-08-12 | Fix compilation of remove_at() in array.h. It was never tested before. | Eugene Sandulenko | |
Make stacks' pop() return top value, not just move stack pointer. svn-id: r14565 | |||
2004-04-09 | Renamed template class 'List' to 'Array', since that is really what it is (a ↵ | Max Horn | |
resizable array, not a linked list) svn-id: r13520 |