Remove ptr base.u8 methods

This commit is contained in:
Nigel Tao committed 2018-05-04 13:24:58 +10:00
1 parent 96a549814d
commit 1435f1d43c
5 files changed
+4 -43

No files matched your search

+4 -9
View File
@@ -134,21 +134,16 @@ var Funcs = []string{
"image_config.initialize!(pixfmt u32, pixsub u32, width u32, height u32, num_loops u32)()",
}
// The "T" types here are placeholders for "ptr base.u8" or generic "slice U"
// types. After tokenizing (but before parsing) these XxxFunc strings (e.g. in
// the lang/check package), replace the "T" receiver type with the "◊" diamond,
// to avoid collision with a user-defined "T" type.
// The "T" types here are placeholders for generic "slice U" types. After
// tokenizing (but before parsing) these SliceFunc strings (e.g. in the
// lang/check package), replace the "T" receiver type with the "◊" diamond, to
// avoid collision with a user-defined "T" type.
const (
PlaceholderOldName = t.IDCapitalT
PlaceholderNewName = t.IDDiamond
)
// TODO: drop the U8.
var PtrU8Funcs = []string{
// TODO: a length method.
}
var SliceFuncs = []string{
"T.copy_from_slice(s T)(ret u64)",
"T.length()(ret u64)",