mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +01:00
Allow explicit returns of built-in status codes.
This commit is contained in:
1 parent
2e883fcc23
commit
010c4db54f
7 files changed
+43
-12
No files matched your search
@@ -95,6 +95,12 @@ type Struct struct {
|
||||
Struct *a.Struct
|
||||
}
|
||||
|
||||
var builtInStatuses = map[string]t.ID{
|
||||
// TODO: fill in the rest of the built in statuses.
|
||||
"short read": t.IDSuspension,
|
||||
"short write": t.IDSuspension,
|
||||
}
|
||||
|
||||
func Check(tm *t.Map, files ...*a.File) (*Checker, error) {
|
||||
for _, f := range files {
|
||||
if f == nil {
|
||||
|
||||
Reference in new issue
Block a user