mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
Remove the placeholder code limit count.
This commit is contained in:
1 parent
fd07fa1f27
commit
389d9bc8bf
5 files changed
+134
-41
No files matched your search
+4
-4
@@ -25,7 +25,7 @@ type Map struct {
|
||||
byKey []string
|
||||
}
|
||||
|
||||
func (m *Map) insert(name string) (ID, error) {
|
||||
func (m *Map) Insert(name string) (ID, error) {
|
||||
if name == "" {
|
||||
return 0, nil
|
||||
}
|
||||
@@ -158,7 +158,7 @@ loop:
|
||||
return nil, nil, fmt.Errorf("token: string too long at %s:%d", filename, line)
|
||||
}
|
||||
}
|
||||
id, err := m.insert(string(src[i:j]))
|
||||
id, err := m.Insert(string(src[i:j]))
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
@@ -174,7 +174,7 @@ loop:
|
||||
return nil, nil, fmt.Errorf("token: identifier too long at %s:%d", filename, line)
|
||||
}
|
||||
}
|
||||
id, err := m.insert(string(src[i:j]))
|
||||
id, err := m.Insert(string(src[i:j]))
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
@@ -200,7 +200,7 @@ loop:
|
||||
return nil, nil, fmt.Errorf("token: constant too long at %s:%d", filename, line)
|
||||
}
|
||||
}
|
||||
id, err := m.insert(string(src[i:j]))
|
||||
id, err := m.Insert(string(src[i:j]))
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user