aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol/ArgParser.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-08-12client/Response: new Client wrapper class for writing responsesMax Kellermann1-36/+29
2015-08-11protocol/ArgParser: add overload with max_value parameterMax Kellermann1-5/+21
2015-08-11protocol/ArgParser: use std::numeric_limitsMax Kellermann1-2/+0
Using unsigned(-1) renders undefined behavior.
2015-08-11protocol/ArgParser: overload as ParseCommandArg(), pass referencesMax Kellermann1-10/+10
2015-08-11protocol/ArgParser: add struct RangeArgMax Kellermann1-7/+6
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-09-04protocol/ArgParser: fix integer overflow in parse_range()Max Kellermann1-2/+2
Casting std::numeric_limits<unsigned>::max() to "long" leads to an overflow if sizeof(unsigned)==sizeof(long), and the result will be -1. This happens on some 32 bit architectures, for example ARM and WIN32. Workaround: use std::numeric_limits<int>::max(), which is the largest signed integer. Since sizeof(long)>=sizeof(int), this will never overflow. Fixes Mantis ticket 0004080.
2014-08-29ArgParser: allow fractional seconds in ParseCommandArg(SongTime)Max Kellermann1-4/+4
2014-08-28Playlist: use std::chrono::duration for Seek*()Max Kellermann1-0/+23
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-10-19*: use references instead of pointersMax Kellermann1-6/+6
2013-10-17*: use std::numeric_limitsMax Kellermann1-13/+10
2013-01-03Client: rename the struct client to class ClientMax Kellermann1-6/+6
2013-01-03client: convert to C++Max Kellermann1-3/+3
2012-02-14command: move code to protocol/argparser.cMax Kellermann1-0/+191