[parrot/parrot] 1e41ce: Fix several issues related to positioning and seek...
GitHub
noreply at github.com
Sun Jun 10 01:37:30 UTC 2012
Branch: refs/heads/whiteknight/io_cleanup1
Home: https://github.com/parrot/parrot
Commit: 1e41ce0375df35927734f1db10034f3c3265df8e
https://github.com/parrot/parrot/commit/1e41ce0375df35927734f1db10034f3c3265df8e
Author: Whiteknight <wknight8111 at gmail.com>
Date: 2012-06-09 (Sat, 09 Jun 2012)
Changed paths:
M src/io/api.c
M src/io/utilities.c
Log Message:
-----------
Fix several issues related to positioning and seek. When we're reading a number of characters from the buffer, make sure to count the ones we've already read. Use ->get_position to get the current cursor position instead of ->tell to get the file descriptor on-disk position when calculating SEEK_CUR offsets.
Commit: 0124c074c0b7635c3318fe02c49d5962696b7c83
https://github.com/parrot/parrot/commit/0124c074c0b7635c3318fe02c49d5962696b7c83
Author: Whiteknight <wknight8111 at gmail.com>
Date: 2012-06-09 (Sat, 09 Jun 2012)
Changed paths:
M src/io/buffer.c
M src/io/utilities.c
M src/pmc/handle.pmc
Log Message:
-----------
Handle BUFFER_SIZE_ANY correctly, so we don't attempt a multi-terabyte allocation. Make sure to use the record_separator character when using the readline method. Reclaims almost all of the filehandle tests
Commit: 21d786930a68930a94007cfa5d3db6f46d53b990
https://github.com/parrot/parrot/commit/21d786930a68930a94007cfa5d3db6f46d53b990
Author: Whiteknight <wknight8111 at gmail.com>
Date: 2012-06-09 (Sat, 09 Jun 2012)
Changed paths:
M src/io/api.c
M src/pmc/filehandle.pmc
Log Message:
-----------
Some simplifications to FileHandle.readall()
Commit: 42a24e9c2f97de323aa0dd248ba42318713db75c
https://github.com/parrot/parrot/commit/42a24e9c2f97de323aa0dd248ba42318713db75c
Author: Whiteknight <wknight8111 at gmail.com>
Date: 2012-06-09 (Sat, 09 Jun 2012)
Changed paths:
M include/parrot/io.h
M src/io/api.c
M src/io/buffer.c
M src/pmc/filehandle.pmc
Log Message:
-----------
Re-implement the lousy string-based interface for querying and configuring buffers on FileHandles. Leave large notes about how this is a temporary hack to maintain compatibility with an old and sub-optimal interface.
Compare: https://github.com/parrot/parrot/compare/1f03c5b...42a24e9
More information about the parrot-commits
mailing list