summaryrefslogtreecommitdiff
path: root/src/cmd/gc/sys.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-16 14:58:14 -0800
committerRuss Cox <rsc@golang.org>2009-01-16 14:58:14 -0800
commitc000d2eb1c11999b15772ad582b364604f6f8acf (patch)
tree321251a8cd180ad7856af54e8e531850d0735fb0 /src/cmd/gc/sys.go
parent969365a06e210a3a3c969a99585e868aecc6af8a (diff)
downloadgolang-c000d2eb1c11999b15772ad582b364604f6f8acf.tar.gz
casify, cleanup sys
R=r OCL=22978 CL=22984
Diffstat (limited to 'src/cmd/gc/sys.go')
-rw-r--r--src/cmd/gc/sys.go163
1 files changed, 79 insertions, 84 deletions
diff --git a/src/cmd/gc/sys.go b/src/cmd/gc/sys.go
index b61536a2e..7b2e3ad2e 100644
--- a/src/cmd/gc/sys.go
+++ b/src/cmd/gc/sys.go
@@ -7,102 +7,97 @@ package PACKAGE
// emitted by compiler, not referred to by go programs
-export func mal(int32) *any;
-export func throwindex();
-export func throwreturn();
-export func panicl(int32);
-
-export func printbool(bool);
-export func printfloat(float64);
-export func printint(int64);
-export func printstring(string);
-export func printpointer(*any);
-export func printinter(any);
-export func printarray(any);
-export func printnl();
-export func printsp();
-
-export func catstring(string, string) string;
-export func cmpstring(string, string) int;
-export func slicestring(string, int, int) string;
-export func indexstring(string, int) byte;
-export func intstring(int64) string;
-export func byteastring(*byte, int) string;
-export func arraystring([]byte) string;
-
-export func ifaceT2I(sigi *byte, sigt *byte, elem any) (ret any);
-export func ifaceI2T(sigt *byte, iface any) (ret any);
-export func ifaceI2T2(sigt *byte, iface any) (ret any, ok bool);
-export func ifaceI2I(sigi *byte, iface any) (ret any);
-export func ifaceI2I2(sigi *byte, iface any) (ret any, ok bool);
-export func ifaceeq(i1 any, i2 any) (ret bool);
-
-export func newmap(keysize int, valsize int,
+func mal(int32) *any;
+func throwindex();
+func throwreturn();
+func panicl(int32);
+
+func printbool(bool);
+func printfloat(float64);
+func printint(int64);
+func printstring(string);
+func printpointer(*any);
+func printinter(any);
+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 byteastring(*byte, int) string;
+func arraystring([]byte) string;
+
+func ifaceT2I(sigi *byte, sigt *byte, elem any) (ret any);
+func ifaceI2T(sigt *byte, iface any) (ret any);
+func ifaceI2T2(sigt *byte, iface any) (ret any, ok bool);
+func ifaceI2I(sigi *byte, iface any) (ret any);
+func ifaceI2I2(sigi *byte, iface any) (ret any, ok bool);
+func ifaceeq(i1 any, i2 any) (ret bool);
+
+func newmap(keysize int, valsize int,
keyalg int, valalg int,
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);
-export func mapiternext(hiter *any);
-export func mapiter1(hiter *any) (key any);
-export func mapiter2(hiter *any) (key any, val any);
-
-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);
-
-export func newselect(size int) (sel *byte);
-export func selectsend(sel *byte, hchan chan any, elem any) (selected bool);
-export func selectrecv(sel *byte, hchan chan any, elem *any) (selected bool);
-export func selectdefault(sel *byte) (selected bool);
-export func selectgo(sel *byte);
-
-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);
+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);
+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 newselect(size int) (sel *byte);
+func selectsend(sel *byte, hchan chan any, elem any) (selected bool);
+func selectrecv(sel *byte, hchan chan any, elem *any) (selected bool);
+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);
// used by go programs
-export func breakpoint();
+export func Breakpoint();
-export func reflect(i interface { }) (uint64, string, bool);
-export func unreflect(uint64, string, bool) (ret interface { });
+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 var Args []string;
+export var Envs []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 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
+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
-export func gosched();
-export func goexit();
+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
-export func bytestorune(*byte, int, int) (int, int); // convert bytes to runes
-export func stringtorune(string, int) (int, int); // convert bytes to runes
+export func BytesToRune(*byte, int, int) (int, int); // convert bytes to runes
+export func StringToRune(string, int) (int, int); // convert bytes to runes
-export func exit(int);
+export func Exit(int);
-export func symdat() (symtab []byte, pclntab []byte);
-export func caller(n int) (pc uint64, file string, line int, ok bool);
+export func Caller(n int) (pc uint64, file string, line int, ok bool);
-export func semacquire(sema *int32);
-export func semrelease(sema *int32);
+export func SemAcquire(sema *int32);
+export func SemRelease(sema *int32);