Add more error codes for check_wuffs_version

This commit is contained in:
Nigel Tao committed 2018-05-29 14:33:15 +10:00
1 parent 87ab36f8c4
commit 1211e16e3c
16 files changed
+492 -320

No files matched your search

+3 -1
View File
@@ -39,9 +39,11 @@ var StatusList = [...]Status{
// TODO: sort these somehow, when the list has stabilized?
{0, "ok"},
{t.IDError, "bad wuffs version"},
{t.IDError, "bad sizeof receiver"},
{t.IDError, "bad receiver"},
{t.IDError, "bad argument"},
{t.IDError, "initializer not called"},
{t.IDError, "check_wuffs_version not called"},
{t.IDError, "check_wuffs_version called twice"},
{t.IDError, "invalid I/O operation"},
{t.IDError, "closed for writes"}, // TODO: is this unused? Should callee or caller check closed-ness?
{t.IDError, "unexpected EOF"}, // Used if reading when closed == true.