patch: internal/abi

This commit is contained in:
xushiwei
2024-06-25 14:02:25 +08:00
parent 1298118b59
commit 4385ca0966
3 changed files with 29 additions and 1 deletions

View File

@@ -527,7 +527,8 @@ func ignoreName(name string) bool {
}
func supportedInternal(name string) bool {
return strings.HasPrefix(name, "bytealg.") || strings.HasPrefix(name, "reflectlite.")
return strings.HasPrefix(name, "abi.") || strings.HasPrefix(name, "bytealg.") ||
strings.HasPrefix(name, "reflectlite.")
}
// -----------------------------------------------------------------------------

View File

@@ -730,6 +730,7 @@ type none struct{}
var hasAltPkg = map[string]none{
"errors": {},
"internal/abi": {},
"internal/bytealg": {},
"internal/reflectlite": {},
"io": {},

View File

@@ -0,0 +1,26 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package abi
// llgo:skipall
import (
_ "unsafe"
"github.com/goplus/llgo/internal/abi"
)
type InterfaceType = abi.InterfaceType