#include "assert.h" #include "files/files.h" #include "files/methods/methods.h" #include "object.h" #include "unix/files.h" static bool statusinteger(const object file) { return statusunix(streamfrom(file).integer); } static bool statusnull(const object file) { return (streamfrom(file).type != nulltype); } status_function * const status_[alltypes] = { [integertype] = statusinteger, [nulltype] = statusnull };