1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:04:49 -07:00

cmd/goyacc: remove hardcoded NTYPES

Updates #16144.

Change-Id: I196dd4e871c88792ea95c02b31c54f269fdc505f
Reviewed-on: https://go-review.googlesource.com/27350
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Tamir Duberstein 2016-08-18 12:32:25 -04:00 committed by Matthew Dempsky
parent b5358b5fee
commit 4c4edc0bec

View File

@ -70,8 +70,6 @@ const (
WSETINC = 50 // increase for working sets wsets
STATEINC = 200 // increase for states statemem
NTYPES = 63
PRIVATE = 0xE000 // unicode private use
// relationships which must hold:
@ -206,8 +204,8 @@ type Wset struct {
}
// storage of types
var ntypes int // number of types defined
var typeset [NTYPES]string // pointers to type tags
var ntypes int // number of types defined
var typeset = make(map[int]string) // pointers to type tags
// token information