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.
|
|
|
|
|
|
|
|
|
|
|
|
package foop // rename to avoid redeclaration
|
|
|
|
|
2008-06-15 21:24:30 -06:00
|
|
|
func mal(uint32) *any;
|
2008-06-04 15:37:38 -06:00
|
|
|
func breakpoint();
|
|
|
|
func panicl(int32);
|
|
|
|
|
|
|
|
func printbool(bool);
|
|
|
|
func printfloat(double);
|
|
|
|
func printint(int64);
|
|
|
|
func printstring(string);
|
|
|
|
func printpointer(*byte);
|
|
|
|
|
|
|
|
func catstring(string, string) string;
|
|
|
|
func cmpstring(string, string) int32;
|
|
|
|
func slicestring(string, int32, int32) string;
|
|
|
|
func indexstring(string, int32) byte;
|
|
|
|
func intstring(int64) string;
|
|
|
|
func byteastring(*byte, int32) string;
|
|
|
|
func mkiface(*byte, *byte, *struct{}) interface{};
|
|
|
|
|
2008-06-24 16:31:03 -06:00
|
|
|
func argc() int32;
|
|
|
|
func envc() int32;
|
|
|
|
func argv(int32) string;
|
|
|
|
func envv(int32) string;
|
|
|
|
|
2008-06-10 22:29:57 -06:00
|
|
|
func frexp(float64) (int32, float64); // break fp into exp,fract
|
|
|
|
func ldexp(int32, float64) float64; // make fp from exp,fract
|
|
|
|
func modf(float64) (float64, float64); // break fp into double.double
|
|
|
|
|
2008-06-15 21:24:30 -06:00
|
|
|
func newmap(keysize uint32, valsize uint32,
|
|
|
|
keyalg uint32, valalg uint32,
|
|
|
|
hint uint32) (hmap *map[any]any);
|
|
|
|
func mapaccess1(hmap *map[any]any, key any) (val any);
|
|
|
|
func mapaccess2(hmap *map[any]any, key any) (val any, pres bool);
|
2008-06-16 23:34:50 -06:00
|
|
|
func mapassign1(hmap *map[any]any, key any, val any);
|
|
|
|
func mapassign2(hmap *map[any]any, key any, val any, pres bool);
|
2008-06-15 21:24:30 -06:00
|
|
|
|
2008-06-26 15:09:26 -06:00
|
|
|
func readfile(string) (string, bool); // read file into string; boolean status
|
|
|
|
|
2008-06-04 15:37:38 -06:00
|
|
|
export
|
|
|
|
mal
|
|
|
|
breakpoint
|
|
|
|
|
2008-06-15 21:24:30 -06:00
|
|
|
// print panic
|
|
|
|
panicl
|
2008-06-04 15:37:38 -06:00
|
|
|
printbool
|
|
|
|
printfloat
|
|
|
|
printint
|
|
|
|
printstring
|
|
|
|
printpointer
|
|
|
|
|
2008-06-15 21:24:30 -06:00
|
|
|
// op string
|
2008-06-04 15:37:38 -06:00
|
|
|
catstring
|
|
|
|
cmpstring
|
|
|
|
slicestring
|
|
|
|
indexstring
|
|
|
|
intstring
|
|
|
|
byteastring
|
|
|
|
mkiface
|
2008-06-10 22:29:57 -06:00
|
|
|
|
2008-06-24 16:31:03 -06:00
|
|
|
// args
|
|
|
|
argc
|
|
|
|
envc
|
|
|
|
argv
|
|
|
|
envv
|
|
|
|
|
|
|
|
// fp
|
2008-06-10 22:29:57 -06:00
|
|
|
frexp
|
|
|
|
ldexp
|
|
|
|
modf
|
2008-06-15 21:24:30 -06:00
|
|
|
|
|
|
|
// op map
|
|
|
|
newmap
|
|
|
|
mapaccess1
|
|
|
|
mapaccess2
|
2008-06-16 23:34:50 -06:00
|
|
|
mapassign1
|
|
|
|
mapassign2
|
2008-06-15 21:24:30 -06:00
|
|
|
|
2008-06-26 15:09:26 -06:00
|
|
|
// files
|
|
|
|
readfile
|
|
|
|
|
2008-06-04 15:37:38 -06:00
|
|
|
;
|