1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-28 16:27:58 +00:00

Using new vendor

1. rancher/types
This commit is contained in:
MaiWJ
2018-05-30 16:07:50 +08:00
committed by Craig Jellick
parent b4d04c7ee9
commit dffc2b9443
108 changed files with 20730 additions and 17641 deletions

23
vendor/github.com/ugorji/go/codec/z.go generated vendored Normal file
View File

@@ -0,0 +1,23 @@
// Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
// Use of this source code is governed by a MIT license found in the LICENSE file.
package codec
import "sort"
// TODO: this is brittle, as it depends on z.go's init() being called last.
// The current build tools all honor that files are passed in lexical order.
// However, we should consider using an init_channel,
// that each person doing init will write to.
func init() {
if !useLookupRecognizedTypes {
return
}
sort.Sort(uintptrSlice(recognizedRtids))
sort.Sort(uintptrSlice(recognizedRtidPtrs))
recognizedRtidOrPtrs = make([]uintptr, len(recognizedRtids)+len(recognizedRtidPtrs))
copy(recognizedRtidOrPtrs, recognizedRtids)
copy(recognizedRtidOrPtrs[len(recognizedRtids):], recognizedRtidPtrs)
sort.Sort(uintptrSlice(recognizedRtidOrPtrs))
}