aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2009-05-03COMMON: Simplified Common::Stack methods using the recent Common::Array ↵Max Horn
improvements svn-id: r40267
2009-05-03COMMON: Changed Array::resize to not shrink the internal storage if we ↵Max Horn
shrink the array svn-id: r40262
2009-04-28COMMON: Made Common::List::clear more efficientMax Horn
svn-id: r40172
2009-04-28fixed a typoMax Horn
svn-id: r40171
2009-04-27COMMON: 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-27COMMON: 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-27COMMON: Added Functor2Fun; fixed some typosMax Horn
svn-id: r40160
2009-04-27COMMON: Added Common::List::front() and back() method (similar to std::list)Max Horn
svn-id: r40154
2009-04-24Fixed typo.Torbjörn Andersson
svn-id: r40121
2009-04-22COMMON: 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-21COMMON: 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-20COMMON & 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-11COMMON: 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-09Rewrote 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-01Formatting.Johannes Schickel
svn-id: r39789
2009-03-25Allow 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-24cleanupMax Horn
svn-id: r39658
2009-03-20Removed #include nds/jtypes.h from common/scummsys.h -- it already gets ↵Max Horn
loaded by portdefs.h svn-id: r39562
2009-03-19COMMON: 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-16Added a syncString variation needed for the Cruise enginePaul Gilbert
svn-id: r39442
2009-03-15Moved Tinsel::Serializer to Common::Serializer, so that I can use it in the ↵Max Horn
SCI engine svn-id: r39428
2009-03-10Fixed warning in list codeMax Horn
svn-id: r39287
2009-03-09Rewrote 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-07Modified HashMap ctr to skip _defaultVal() on PS2 to avoid gcc 3.2.2 ICEMax Lingua
svn-id: r39174
2009-03-05Fix 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-01Fix documentation, debug(C/N) prints to stdout not stderr.Johannes Schickel
svn-id: r39058
2009-03-01COMMON: added a debugC variant which only takes a debug channel maskMax Horn
svn-id: r39054
2009-02-28Patch #2638336: Broken Sword PSX SupportEugene Sandulenko
svn-id: r38956
2009-02-27Clarify timer API.Willem Jan Palenstijn
svn-id: r38938
2009-02-26Commit patch #2641592 "Wrong type promotion for SharedPtr" with a slight ↵Johannes Schickel
formatting change. svn-id: r38901
2009-02-24Fix my wrong comment on OSystem::updateScreen(). Now it is hopefully correctMax Horn
svn-id: r38860
2009-02-24Add some remarks on OSystem::updateScreen() propertiesMax Horn
svn-id: r38859
2009-02-24Moved FSDirectory implementation from common/archive.cpp to common/fs.cppMax Horn
svn-id: r38824
2009-02-22Modified 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-22Modified ZipArchive::createReadStreamForMember to check whether the zip ↵Max Horn
archive contains a file with the given name svn-id: r38786
2009-02-22Changed Common::File and FSDirectory to invoke FSNode::exists a few times ↵Max Horn
less, reducing overhead svn-id: r38780
2009-02-20Disable MSVC warning, which is frequently paranoid.Travis Howell
svn-id: r38575
2009-02-18Fix documentation, warning prints to stderr not stdout.Johannes Schickel
svn-id: r38490
2009-02-17typoWillem Jan Palenstijn
svn-id: r38440
2009-02-17Added an "equals" function to Common::Rect (used by SCI)Filippos Karapetis
svn-id: r38428
2009-02-16More paranoia checksMax Horn
svn-id: r38339
2009-02-16cleanupMax 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-15Merged 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
2009-02-15Merged rev 38209 from 0.13 to trunk: XML parsing fixOystein Eftevaag
svn-id: r38241
2009-02-13Changed OverlayColor from int16 to uint16 to fix the strange colours thatTorbjörn Andersson
appeared in the GUI with r36288. At least, it fixes the problem for me. I hope I didn't accidentally break anything else. svn-id: r36298
2009-01-30Removed default implementations of OSystem::getOverlayHeight() and ↵Max Horn
getOverlayWidth() svn-id: r36152
2009-01-30Document OSystem::copyRectToOverlay params more explicitly (esp. the pitch ↵Max Horn
param, which differs from that of copyRectToScreen) svn-id: r36150
2009-01-30do not include common/debug.h from common/util.hMax Horn
svn-id: r36143
2009-01-30Renamed SpecialDebugLevel to DebugChannelMax Horn
svn-id: r36142