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
|
|
|
|
|
2008-10-29 13:46:44 -06:00
|
|
|
export func mal(int32) *any;
|
2008-10-03 17:15:55 -06:00
|
|
|
export func throwindex();
|
|
|
|
export func throwreturn();
|
|
|
|
export func panicl(int32);
|
|
|
|
|
|
|
|
export func printbool(bool);
|
2008-10-29 13:46:44 -06:00
|
|
|
export func printfloat(float64);
|
2008-10-03 17:15:55 -06:00
|
|
|
export func printint(int64);
|
|
|
|
export func printstring(string);
|
|
|
|
export func printpointer(*any);
|
|
|
|
export func printinter(any);
|
2008-12-18 23:17:05 -07:00
|
|
|
export func printarray(any);
|
2008-10-03 17:15:55 -06:00
|
|
|
export func printnl();
|
|
|
|
export func printsp();
|
|
|
|
|
|
|
|
export func catstring(string, string) string;
|
2008-10-29 13:46:44 -06:00
|
|
|
export func cmpstring(string, string) int;
|
|
|
|
export func slicestring(string, int, int) string;
|
|
|
|
export func indexstring(string, int) byte;
|
2008-10-03 17:15:55 -06:00
|
|
|
export func intstring(int64) string;
|
2008-10-29 13:46:44 -06:00
|
|
|
export func byteastring(*byte, int) string;
|
2008-12-18 21:06:28 -07:00
|
|
|
export func arraystring([]byte) string;
|
2008-10-03 17:15:55 -06:00
|
|
|
|
|
|
|
export func ifaceT2I(sigi *byte, sigt *byte, elem any) (ret any);
|
|
|
|
export func ifaceI2T(sigt *byte, iface any) (ret any);
|
2008-11-03 18:34:37 -07:00
|
|
|
export func ifaceI2T2(sigt *byte, iface any) (ret any, ok bool);
|
2008-10-03 17:15:55 -06:00
|
|
|
export func ifaceI2I(sigi *byte, iface any) (ret any);
|
2008-11-03 18:34:37 -07:00
|
|
|
export func ifaceI2I2(sigi *byte, iface any) (ret any, ok bool);
|
2008-10-14 16:08:23 -06:00
|
|
|
export func ifaceeq(i1 any, i2 any) (ret bool);
|
2008-10-03 17:15:55 -06:00
|
|
|
|
2008-10-29 13:46:44 -06:00
|
|
|
export func newmap(keysize int, valsize int,
|
|
|
|
keyalg int, valalg int,
|
2008-12-19 04:05:54 -07:00
|
|
|
hint int) (hmap map[any]any);
|
|
|
|
export func mapaccess1(hmap map[any]any, key any) (val any);
|
|
|
|
export func mapaccess2(hmap map[any]any, key any) (val any, pres bool);
|
|
|
|
export func mapassign1(hmap map[any]any, key any, val any);
|
|
|
|
export func mapassign2(hmap map[any]any, key any, val any, pres bool);
|
|
|
|
export func mapiterinit(hmap map[any]any, hiter *any);
|
2008-12-05 19:24:05 -07:00
|
|
|
export func mapiternext(hiter *any);
|
|
|
|
export func mapiter1(hiter *any) (key any);
|
|
|
|
export func mapiter2(hiter *any) (key any, val any);
|
2008-10-03 17:15:55 -06:00
|
|
|
|
2008-12-19 04:05:54 -07:00
|
|
|
export func newchan(elemsize int, elemalg int, hint int) (hchan chan any);
|
|
|
|
export func chanrecv1(hchan chan any) (elem any);
|
|
|
|
export func chanrecv2(hchan chan any) (elem any, pres bool);
|
|
|
|
export func chanrecv3(hchan chan any, elem *any) (pres bool);
|
|
|
|
export func chansend1(hchan chan any, elem any);
|
|
|
|
export func chansend2(hchan chan any, elem any) (pres bool);
|
2008-10-03 17:15:55 -06:00
|
|
|
|
2008-10-29 13:46:44 -06:00
|
|
|
export func newselect(size int) (sel *byte);
|
2008-12-19 04:05:54 -07:00
|
|
|
export func selectsend(sel *byte, hchan chan any, elem any) (selected bool);
|
|
|
|
export func selectrecv(sel *byte, hchan chan any, elem *any) (selected bool);
|
2008-11-05 22:50:28 -07:00
|
|
|
export func selectdefault(sel *byte) (selected bool);
|
2008-10-03 17:15:55 -06:00
|
|
|
export func selectgo(sel *byte);
|
|
|
|
|
2008-12-18 21:06:28 -07:00
|
|
|
export func newarray(nel int, cap int, width int) (ary []any);
|
|
|
|
export func arraysliced(old []any, lb int, hb int, width int) (ary []any);
|
|
|
|
export func arrayslices(old *any, nel int, lb int, hb int, width int) (ary []any);
|
|
|
|
export func arrays2d(old *any, nel int) (ary []any);
|
2008-10-03 17:15:55 -06:00
|
|
|
|
2009-01-09 16:52:43 -07:00
|
|
|
// used by go programs
|
|
|
|
|
|
|
|
export func breakpoint();
|
|
|
|
|
|
|
|
export func reflect(i interface { }) (uint64, string, bool);
|
|
|
|
export func unreflect(uint64, string, bool) (ret interface { });
|
|
|
|
|
|
|
|
export func argc() int;
|
|
|
|
export func envc() int;
|
|
|
|
export func argv(int) string;
|
|
|
|
export func envv(int) string;
|
|
|
|
|
|
|
|
export func frexp(float64) (float64, int); // break fp into exp,fract
|
|
|
|
export func ldexp(float64, int) float64; // make fp from exp,fract
|
|
|
|
export func modf(float64) (float64, float64); // break fp into double.double
|
|
|
|
export func isInf(float64, int) bool; // test for infinity
|
|
|
|
export func isNaN(float64) bool; // test for not-a-number
|
|
|
|
export func Inf(int) float64; // return signed Inf
|
|
|
|
export func NaN() float64; // return a NaN
|
|
|
|
export func float32bits(float32) uint32; // raw bits
|
|
|
|
export func float64bits(float64) uint64; // raw bits
|
|
|
|
export func float32frombits(uint32) float32; // raw bits
|
|
|
|
export func float64frombits(uint64) float64; // raw bits
|
|
|
|
|
2008-10-03 17:15:55 -06:00
|
|
|
export func gosched();
|
|
|
|
export func goexit();
|
|
|
|
|
|
|
|
export func readfile(string) (string, bool); // read file into string; boolean status
|
|
|
|
export func writefile(string, string) (bool); // write string into file; boolean status
|
2008-10-29 13:46:44 -06:00
|
|
|
export func bytestorune(*byte, int, int) (int, int); // convert bytes to runes
|
|
|
|
export func stringtorune(string, int) (int, int); // convert bytes to runes
|
2008-10-03 17:15:55 -06:00
|
|
|
|
2008-10-29 13:46:44 -06:00
|
|
|
export func exit(int);
|
2008-11-20 18:32:18 -07:00
|
|
|
|
2008-12-18 23:37:22 -07:00
|
|
|
export func symdat() (symtab []byte, pclntab []byte);
|
2009-01-09 16:52:43 -07:00
|
|
|
export func caller(n int) (pc uint64, file string, line int, ok bool);
|
2008-11-20 18:32:18 -07:00
|
|
|
|
2008-12-04 13:51:36 -07:00
|
|
|
export func semacquire(sema *int32);
|
|
|
|
export func semrelease(sema *int32);
|