Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | Fix valgrind warning | Eugene Sandulenko | |
svn-id: r40309 | |||
2009-05-04 | COMMON: Made Array::resize() init/zero the memory it allocates | Max Horn | |
svn-id: r40304 | |||
2009-05-04 | Fixed new[] / delete mismatch in Common::String | Max Horn | |
svn-id: r40302 | |||
2009-05-03 | COMMON: Optimized MemoryPool::freeUnusedPages (if many pages are phased out ↵ | Max Horn | |
at once, don't copy everything multiple times around) svn-id: r40292 | |||
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: Simplified Common::Stack methods using the recent Common::Array ↵ | Max Horn | |
improvements svn-id: r40267 | |||
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-28 | COMMON: Made Common::List::clear more efficient | Max Horn | |
svn-id: r40172 | |||
2009-04-28 | fixed a typo | Max Horn | |
svn-id: r40171 | |||
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-27 | COMMON: Added Functor2Fun; fixed some typos | Max Horn | |
svn-id: r40160 | |||
2009-04-27 | COMMON: Added Common::List::front() and back() method (similar to std::list) | Max Horn | |
svn-id: r40154 | |||
2009-04-24 | Fixed typo. | Torbjörn Andersson | |
svn-id: r40121 | |||
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-21 | COMMON: Removed copy constructors / assignment operators in cases where they ↵ | Max Horn | |
are identical to the automatically generated ones. Also removed a pointless 'explicit' svn-id: r40049 | |||
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 | |||
2009-04-11 | COMMON: Added unit test for Common::List::size(); made List::size() slightly ↵ | Max Horn | |
more efficient; same for remove() and operator= svn-id: r39921 | |||
2009-04-09 | Rewrote Common::Rect::contains(Rect) to do what the name suggests (check ↵ | Max Horn | |
whether one rect contains the other). Previously, foo.contains(foo) would return false. Added/enabled unit tets for this svn-id: r39911 | |||
2009-04-01 | Formatting. | Johannes Schickel | |
svn-id: r39789 | |||
2009-03-25 | Allow building of psp backend via configure (Part 1 - Still need to add the ↵ | Joost Peters | |
fixup + EBOOT packing steps). Thanks dhewg and fingolfin for assistance. :) svn-id: r39693 | |||
2009-03-24 | cleanup | Max Horn | |
svn-id: r39658 | |||
2009-03-20 | Removed #include nds/jtypes.h from common/scummsys.h -- it already gets ↵ | Max Horn | |
loaded by portdefs.h svn-id: r39562 | |||
2009-03-19 | COMMON: Added a new IS_ALIGNED macro (for now using size_t, we can change it ↵ | Max Horn | |
if this turns out to be not portable enough. Also added a doxygen comment to the ARRAYSIZE macro svn-id: r39542 | |||
2009-03-16 | Added a syncString variation needed for the Cruise engine | Paul Gilbert | |
svn-id: r39442 | |||
2009-03-15 | Moved Tinsel::Serializer to Common::Serializer, so that I can use it in the ↵ | Max Horn | |
SCI engine svn-id: r39428 | |||
2009-03-10 | Fixed warning in list code | Max Horn | |
svn-id: r39287 | |||
2009-03-09 | Rewrote Common::List iterator code to ensure const correctness is preserved. | Max Horn | |
We tried to implement the list iterators in a clever way, to reduce code duplication. But this is essentially impossible to do properly, sadly -- this is one of the places where the ugly drawbacks of C++ really show. As a consequence, our implementation had a bug which allowed one to convert any const_iterator to an iterator, thus allowing modifying elements of const lists. This rewrite reintroduces code duplication but at least ensures that no const list is written to accidentally. Also fix some places which incorrectly used iterator instead of const_iterator or (in the kyra code) accidentally wrote into a const list. svn-id: r39279 | |||
2009-03-07 | Modified HashMap ctr to skip _defaultVal() on PS2 to avoid gcc 3.2.2 ICE | Max Lingua | |
svn-id: r39174 | |||
2009-03-05 | Fix for bug #2664460: Various SeekableReadStream::seek() implementations (as ↵ | Max Horn | |
well as our unit tests, ouch) handled SEEK_END incorrectly (using -offset instead of offset), contrary to what the docs said and what fseek does. Hopefully I found and fixed all affected parts, but still watch out for regressions svn-id: r39135 | |||
2009-03-01 | Fix documentation, debug(C/N) prints to stdout not stderr. | Johannes Schickel | |
svn-id: r39058 | |||
2009-03-01 | COMMON: added a debugC variant which only takes a debug channel mask | Max Horn | |
svn-id: r39054 | |||
2009-02-28 | Patch #2638336: Broken Sword PSX Support | Eugene Sandulenko | |
svn-id: r38956 | |||
2009-02-27 | Clarify timer API. | Willem Jan Palenstijn | |
svn-id: r38938 | |||
2009-02-26 | Commit patch #2641592 "Wrong type promotion for SharedPtr" with a slight ↵ | Johannes Schickel | |
formatting change. svn-id: r38901 | |||
2009-02-24 | Fix my wrong comment on OSystem::updateScreen(). Now it is hopefully correct | Max Horn | |
svn-id: r38860 | |||
2009-02-24 | Add some remarks on OSystem::updateScreen() properties | Max Horn | |
svn-id: r38859 | |||
2009-02-24 | Moved FSDirectory implementation from common/archive.cpp to common/fs.cpp | Max Horn | |
svn-id: r38824 | |||
2009-02-22 | Modified FSDirectory::lookupCache to return a FSNode *pointer*, so that we ↵ | Max Horn | |
can distinguish between lookup failures and invalid cache entries. Also changed SearchSet::createReadStreamForMember to not use hasFile anymore, based on the assumption that any Archive::createReadStreamForMember implementation has to verify whether the member name is valid anyway (clarified the doxygen docs accordingly) svn-id: r38787 | |||
2009-02-22 | Modified ZipArchive::createReadStreamForMember to check whether the zip ↵ | Max Horn | |
archive contains a file with the given name svn-id: r38786 | |||
2009-02-22 | Changed Common::File and FSDirectory to invoke FSNode::exists a few times ↵ | Max Horn | |
less, reducing overhead svn-id: r38780 | |||
2009-02-20 | Disable MSVC warning, which is frequently paranoid. | Travis Howell | |
svn-id: r38575 | |||
2009-02-18 | Fix documentation, warning prints to stderr not stdout. | Johannes Schickel | |
svn-id: r38490 | |||
2009-02-17 | typo | Willem Jan Palenstijn | |
svn-id: r38440 | |||
2009-02-17 | Added an "equals" function to Common::Rect (used by SCI) | Filippos Karapetis | |
svn-id: r38428 | |||
2009-02-16 | More paranoia checks | Max Horn | |
svn-id: r38339 | |||
2009-02-16 | cleanup | Max Horn | |
svn-id: r38338 | |||
2009-02-15 | - Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel. | Johannes Schickel | |
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated). - Update all client code which relied on OSystem::clearScreen so far. svn-id: r38304 | |||
2009-02-15 | Merged internal 'matchPath' method of class Archive into global matchString ↵ | Max Horn | |
function (via an optional 'path mode' in the latter). Also changed Archive::listMatchingMembers to use path mode when matching, just like FSDirectory::listMatchingMembers svn-id: r38277 |