2008-06-04 15:37:38 -06:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
2008-12-08 20:46:39 -07:00
|
|
|
package PACKAGE
|
2008-10-03 17:15:55 -06:00
|
|
|
|
2009-01-09 16:52:43 -07:00
|
|
|
// emitted by compiler, not referred to by go programs
|
|
|
|
|
2009-01-16 15:58:14 -07:00
|
|
|
func mal(int32) *any;
|
|
|
|
func throwindex();
|
|
|
|
func throwreturn();
|
2009-05-28 17:00:55 -06:00
|
|
|
func throwinit();
|
2009-01-16 15:58:14 -07:00
|
|
|
func panicl(int32);
|
|
|
|
|
|
|
|
func printbool(bool);
|
|
|
|
func printfloat(float64);
|
|
|
|
func printint(int64);
|
2009-05-28 23:24:03 -06:00
|
|
|
func printuint(uint64);
|
2009-01-16 15:58:14 -07:00
|
|
|
func printstring(string);
|
2009-01-26 16:36:28 -07:00
|
|
|
func printpointer(any);
|
2009-05-20 15:57:55 -06:00
|
|
|
func printiface(any);
|
|
|
|
func printeface(any);
|
2009-01-16 15:58:14 -07:00
|
|
|
func printarray(any);
|
|
|
|
func printnl();
|
|
|
|
func printsp();
|
|
|
|
|
|
|
|
func catstring(string, string) string;
|
|
|
|
func cmpstring(string, string) int;
|
|
|
|
func slicestring(string, int, int) string;
|
|
|
|
func indexstring(string, int) byte;
|
|
|
|
func intstring(int64) string;
|
|
|
|
func arraystring([]byte) string;
|
2009-05-27 16:38:02 -06:00
|
|
|
func arraystringi([]int) string;
|
2009-04-10 20:49:31 -06:00
|
|
|
func stringiter(string, int) int;
|
|
|
|
func stringiter2(string, int) (retk int, retv int);
|
2009-01-16 15:58:14 -07:00
|
|
|
|
2009-05-20 15:57:55 -06:00
|
|
|
func ifaceI2E(iface any) (ret any);
|
2009-07-07 12:02:54 -06:00
|
|
|
func ifaceE2I(typ *byte, iface any) (ret any);
|
|
|
|
func ifaceT2E(typ *byte, elem any) (ret any);
|
|
|
|
func ifaceE2T(typ *byte, elem any) (ret any);
|
|
|
|
func ifaceE2I2(typ *byte, iface any) (ret any, ok bool);
|
|
|
|
func ifaceE2T2(typ *byte, elem any) (ret any, ok bool);
|
|
|
|
func ifaceT2I(typ1 *byte, typ2 *byte, elem any) (ret any);
|
|
|
|
func ifaceI2T(typ *byte, iface any) (ret any);
|
|
|
|
func ifaceI2T2(typ *byte, iface any) (ret any, ok bool);
|
|
|
|
func ifaceI2I(typ *byte, iface any) (ret any);
|
|
|
|
func ifaceI2Ix(typ *byte, iface any) (ret any);
|
|
|
|
func ifaceI2I2(typ *byte, iface any) (ret any, ok bool);
|
2009-01-16 15:58:14 -07:00
|
|
|
func ifaceeq(i1 any, i2 any) (ret bool);
|
2009-05-20 15:57:55 -06:00
|
|
|
func efaceeq(i1 any, i2 any) (ret bool);
|
2009-03-17 14:58:38 -06:00
|
|
|
func ifacethash(i1 any) (ret uint32);
|
2009-05-20 15:57:55 -06:00
|
|
|
func efacethash(i1 any) (ret uint32);
|
2009-01-16 15:58:14 -07:00
|
|
|
|
|
|
|
func newmap(keysize int, valsize int,
|
2008-10-29 13:46:44 -06:00
|
|
|
keyalg int, valalg int,
|
2008-12-19 04:05:54 -07:00
|
|
|
hint int) (hmap map[any]any);
|
2009-01-16 15:58:14 -07:00
|
|
|
func mapaccess1(hmap map[any]any, key any) (val any);
|
|
|
|
func mapaccess2(hmap map[any]any, key any) (val any, pres bool);
|
|
|
|
func mapassign1(hmap map[any]any, key any, val any);
|
|
|
|
func mapassign2(hmap map[any]any, key any, val any, pres bool);
|
|
|
|
func mapiterinit(hmap map[any]any, hiter *any);
|
|
|
|
func mapiternext(hiter *any);
|
|
|
|
func mapiter1(hiter *any) (key any);
|
|
|
|
func mapiter2(hiter *any) (key any, val any);
|
|
|
|
|
|
|
|
func newchan(elemsize int, elemalg int, hint int) (hchan chan any);
|
2009-05-21 18:32:44 -06:00
|
|
|
func chanrecv1(hchan <-chan any) (elem any);
|
|
|
|
func chanrecv2(hchan <-chan any) (elem any, pres bool);
|
|
|
|
func chanrecv3(hchan <-chan any, elem *any) (pres bool);
|
|
|
|
func chansend1(hchan chan<- any, elem any);
|
|
|
|
func chansend2(hchan chan<- any, elem any) (pres bool);
|
|
|
|
func closechan(hchan any);
|
|
|
|
func closedchan(hchan any) bool;
|
2009-01-16 15:58:14 -07:00
|
|
|
|
|
|
|
func newselect(size int) (sel *byte);
|
2009-05-21 18:32:44 -06:00
|
|
|
func selectsend(sel *byte, hchan chan<- any, elem any) (selected bool);
|
|
|
|
func selectrecv(sel *byte, hchan <-chan any, elem *any) (selected bool);
|
2009-01-16 15:58:14 -07:00
|
|
|
func selectdefault(sel *byte) (selected bool);
|
|
|
|
func selectgo(sel *byte);
|
|
|
|
|
|
|
|
func newarray(nel int, cap int, width int) (ary []any);
|
|
|
|
func arraysliced(old []any, lb int, hb int, width int) (ary []any);
|
|
|
|
func arrayslices(old *any, nel int, lb int, hb int, width int) (ary []any);
|
|
|
|
func arrays2d(old *any, nel int) (ary []any);
|
2008-10-03 17:15:55 -06:00
|
|
|
|
2009-02-06 14:47:10 -07:00
|
|
|
func closure(); // has args, but compiler fills in
|
2009-05-26 22:07:26 -06:00
|
|
|
|
|
|
|
// only used on 32-bit
|
|
|
|
func int64div(int64, int64) int64
|
|
|
|
func uint64div(uint64, uint64) uint64
|
|
|
|
func int64mod(int64, int64) int64
|
|
|
|
func uint64mod(uint64, uint64) uint64
|