kill atoi and just use the strconv.Atoui directly

This commit is contained in:
Miek Gieben 2011-07-29 12:18:49 +02:00
parent 33fbece4ca
commit eb3a40f5aa
2 changed files with 159 additions and 177 deletions

327
zparse.go

File diff suppressed because it is too large Load Diff

View File

@ -79,15 +79,6 @@ func fields(s string, i int) (rdf []string) {
return
}
// Wrapper for strconv.Atoi*().
func atoi(s string) uint {
i, err := strconv.Atoui(s)
if err != nil {
panic("not a number: " + s + " " + err.String())
}
return i
}
%%{
machine z;
write data;