winmm: Parse MCI colon notation as in T:MM:SS:F (3rd)

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Fri Jan 27 03:42:11 CST 2012


Hi,

finally, the colon syntax parser to allow you to easily play an audio CD.
Unsurprisingly, colon notation works everywhere, because the parser
has no idea of the semantic of the input, all it knows is MCI_INTEGER.

The strtol family of functions really prevent reliable software.
Their skipping of whitespace may be practical for PERL, but here
it allows bogus input like "2: 1:4: 3" to be accepted as colon syntax.

Negative integers must be accepted as well, as with mciavi:
 put a window at -3 -5 200 100
 step a by -1 ; synonym to step a by 1 reverse

Regards,
	Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winmm-Parse-MCI-colon-notation-as-in-T-MM-SS-F.patch
Type: application/octet-stream
Size: 7018 bytes
Desc: 0001-winmm-Parse-MCI-colon-notation-as-in-T-MM-SS-F.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120127/af331397/attachment-0001.obj>


More information about the wine-patches mailing list