Stdio: Added some annotations.

Require Stdio.File to comply with the Stdio.NonblockingStream API.
parent 7ad95293
......@@ -92,6 +92,9 @@ class NonblockingStream
{
inherit Stream;
//! @decl @Pike.Implements(Stream)
@__builtin.Implements(Stream);
//!
NonblockingStream set_read_callback( function f, mixed ... rest );
NonblockingStream set_write_callback( function f, mixed ... rest );
......@@ -130,6 +133,9 @@ class BlockFile
{
inherit Stream;
//! @decl @Pike.Implements(Stream)
@__builtin.Implements(Stream);
//!
int seek(int to, string|void how);
......@@ -183,6 +189,12 @@ class File
{
optional inherit Fd;
//! @decl @Pike.Implements(NonblockingStream)
@__builtin.Implements(NonblockingStream);
//! @decl @Pike.Implements(BlockFile)
@__builtin.Implements(BlockFile);
// This is needed in case we get overloaded by strange code
// (socktest.pike).
protected Fd fd_factory()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment