Commit Graph

125 Commits

Author SHA1 Message Date
Iván Matellanes 3be6ac0d33 msvcirt: Set the error flag in writepad without locking.
writepad() is always called between opfx() and osfx(), so the ios object is already locked.

Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-23 22:04:32 +09:00
Piotr Caban 5c1b944a1c msvcirt/tests: Remove unneeded casts.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-23 22:03:26 +09:00
Iván Matellanes 38fb1062da msvcirt: Implement ostream manipulators.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 23:55:40 +09:00
Iván Matellanes 2cb786b6a0 msvcirt: Implement ostream::operator<< for streambuf.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 23:55:36 +09:00
Iván Matellanes 7ccc6338bc msvcirt: Implement ostream::operator<< for pointers.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 23:55:33 +09:00
Iván Matellanes e4df032cce msvcirt: Implement ostream::operator<< for floats.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 23:55:29 +09:00
Iván Matellanes c969efcaf2 msvcirt: Implement ostream::operator<< for integers.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 23:55:26 +09:00
Iván Matellanes 65935c4c88 msvcirt: Implement ostream::operator<< for strings.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 23:55:22 +09:00
Iván Matellanes 81cf0b2c48 msvcirt: Implement ostream::operator<< for characters.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 23:55:08 +09:00
Iván Matellanes faf7a2701d msvcirt: Add stubs for ostream::operator<<.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 00:58:55 +09:00
Iván Matellanes 025c543442 msvcirt: Fix implementation of strstreambuf::underflow.
Spotted while testing for ostream printing.

Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 00:23:57 +09:00
Iván Matellanes d5f445511e msvcirt: Implement ostream::writepad.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 20:42:41 +09:00
Iván Matellanes 3f32455f01 msvcirt: Implement ostream::tellp.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 20:42:38 +09:00
Iván Matellanes d77342ff96 msvcirt: Implement ostream::seekp.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 20:42:35 +09:00
Iván Matellanes c4a5730ec3 msvcirt: Implement ostream::write.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 20:42:31 +09:00
Iván Matellanes e1b3a52902 msvcirt: Implement ostream::put.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 20:42:27 +09:00
Iván Matellanes 28d400be63 msvcirt: Implement ostream::osfx.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 20:42:24 +09:00
Iván Matellanes 327cada0f1 msvcirt: Implement ostream::opfx.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 20:42:21 +09:00
Iván Matellanes 6fedfa6128 msvcirt: Implement ostream::flush.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 20:42:17 +09:00
Iván Matellanes cf1f23379b msvcirt: Implement ostream constructors/destructors.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 20:42:12 +09:00
Iván Matellanes 849163b1ed msvcirt: Add stub for class ostream.
Signed-off-by: Iván Matellanes <matellanes.ivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 00:35:38 +09:00
Iván Matellanes 8852734146 msvcirt: Avoid superfluous comparison in some compilers.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-29 20:22:22 +09:00
Nikolay Sivov 472f4acb06 msvcirt: Use proper printf format for pointers (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 18:40:33 +09:00
Iván Matellanes b34b65e462 msvcirt: Improve implementation of streambuf::pbackfail.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:16:25 +09:00
Iván Matellanes 6aa589e854 msvcirt: Implement stdiobuf::seekoff.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:16:18 +09:00
Iván Matellanes 66ff2e3bad msvcirt: Implement stdiobuf::setrwbuf.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:16:10 +09:00
Iván Matellanes c5480a8810 msvcirt: Implement stdiobuf::stdiofile.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2015-10-07 13:00:36 +09:00
Iván Matellanes c16e4f5cc5 msvcirt: Implement stdiobuf::sync.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2015-10-07 13:00:33 +09:00
Iván Matellanes 7754619128 msvcirt: Implement stdiobuf::underflow.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2015-10-07 13:00:30 +09:00
Iván Matellanes 608aa13672 msvcirt: Implement stdiobuf::overflow.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2015-10-07 13:00:27 +09:00
Iván Matellanes a9ad6e88d7 msvcirt: Implement stdiobuf constructors and destructor.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2015-10-07 13:00:23 +09:00
Iván Matellanes 8f5e817d84 msvcirt: Add stub of class stdiobuf.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2015-10-07 13:00:15 +09:00
Iván Matellanes 24d57405ac msvcirt: Implement strstreambuf::seekoff. 2015-10-01 00:02:05 +09:00
Iván Matellanes 60d1d6f595 msvcirt: Implement strstreambuf::overflow. 2015-09-18 15:00:23 +02:00
Iván Matellanes 2f70aba8d9 msvcirt: Implement strstreambuf::underflow. 2015-09-18 15:00:21 +02:00
Iván Matellanes ea953271de msvcirt: Implement strstreambuf::sync. 2015-09-18 15:00:17 +02:00
Iván Matellanes 675ad97a69 msvcirt: Implement strstreambuf::setbuf. 2015-09-18 15:00:15 +02:00
Iván Matellanes 0257ebc838 msvcirt: Implement strstreambuf::doallocate. 2015-09-18 15:00:10 +02:00
Iván Matellanes 222cd629a3 msvcirt: Implement strstreambuf::str. 2015-09-18 15:00:05 +02:00
Iván Matellanes a8b26a96b4 msvcirt: Implement strstreambuf::freeze. 2015-09-18 15:00:00 +02:00
Iván Matellanes aa4e2740b7 msvcirt: Implement strstreambuf constructors and destructor. 2015-09-18 14:59:56 +02:00
Iván Matellanes 37de534352 msvcirt: Add stub of class strstreambuf. 2015-09-18 14:59:49 +02:00
Iván Matellanes d5229aeec5 msvcirt: Implement filebuf::seekoff. 2015-08-17 18:19:28 +09:00
Iván Matellanes 0ed82afe9e msvcirt: Implement filebuf::underflow. 2015-08-17 18:19:24 +09:00
Iván Matellanes ed5f60e46f msvcirt: Implement filebuf::overflow. 2015-08-17 18:19:19 +09:00
Iván Matellanes 5ebf8cfc40 msvcirt: Implement filebuf::sync. 2015-08-17 18:19:16 +09:00
Iván Matellanes 28c61981ad msvcirt: Implement filebuf::setbuf. 2015-08-17 18:19:11 +09:00
Iván Matellanes 43bb816373 msvcirt: Implement filebuf::setmode. 2015-08-17 18:19:07 +09:00
Iván Matellanes cac27a40d8 msvcirt: Allocate a buffer if necessary when a file is opened. 2015-08-17 18:18:31 +09:00
Iván Matellanes d669e74527 msvcirt: Implement filebuf status functions. 2015-08-06 21:05:25 +09:00