Skip to content
Snippets Groups Projects
Commit 2bc548c9 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Stdio: Stricter handling of zero.

parent 9e53c78f
Branches
Tags
No related merge requests found
......@@ -439,11 +439,11 @@ class InputController
{
private object infd, term;
private int enabled = -1;
private function(:int) close_callback = 0;
private function(:int)|zero close_callback = 0;
private string prefix="";
private mapping(int:function|mapping(string:function)) bindings=([]);
private function grab_binding = 0;
private mapping oldattrs = 0;
private function|zero grab_binding = 0;
private mapping|zero oldattrs = 0;
int dumb=0;
......@@ -1254,12 +1254,12 @@ class History
private OutputController output_controller;
private InputController input_controller;
private string prompt="";
private array(string) prompt_attrs=0;
private array(string)|zero prompt_attrs=0;
private string text="", readtext;
private function(string|zero:void) newline_func;
private int cursorpos = 0;
private int mark = 0;
/* private */ History historyobj = 0;
/* private */ object(History)|zero historyobj = 0;
private int hide = 0;
private array(string) kill_ring=({});
......
......@@ -629,7 +629,7 @@ class File
private void _async_check_cb(mixed|void ignored)
{
// Copy the args to avoid races.
function(int, mixed ...:void) cb = _async_cb;
function(int, __unknown__ ...:void) cb = _async_cb;
array args = _async_args;
_async_cb = 0;
_async_args = 0;
......@@ -3402,13 +3402,13 @@ protected class nb_sendfile
}
// Make sure we get rid of any references...
to_write = 0;
to_write = ({});
trailers = 0;
from = 0;
to = 0;
backend = 0;
array(mixed) a = args;
function(int, mixed ...:void) cb = callback;
function(int, __unknown__ ...:void) cb = callback;
args = 0;
callback = 0;
if (cb) {
......@@ -3700,7 +3700,7 @@ class UDP
inherit _Stdio.UDP;
private array extra=0;
private function(mapping,mixed...:void) callback=0;
private function(mapping, __unknown__ ...:void) callback=0;
//! @decl UDP set_nonblocking()
//! @decl UDP set_nonblocking(void|function(mapping(string:int|string), @
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment