OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 /* | 5 /* |
6 * basic types | 6 * basic types |
7 */ | 7 */ |
8 typedef signed char int8; | 8 typedef signed char int8; |
9 typedef unsigned char uint8; | 9 typedef unsigned char uint8; |
10 typedef signed short int16; | 10 typedef signed short int16; |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 void goargs(void); | 335 void goargs(void); |
336 void FLUSH(void*); | 336 void FLUSH(void*); |
337 void* getu(void); | 337 void* getu(void); |
338 void throw(int8*); | 338 void throw(int8*); |
339 uint32 rnd(uint32, uint32); | 339 uint32 rnd(uint32, uint32); |
340 void prints(int8*); | 340 void prints(int8*); |
341 void printf(int8*, ...); | 341 void printf(int8*, ...); |
342 byte* mchr(byte*, byte, byte*); | 342 byte* mchr(byte*, byte, byte*); |
343 void mcpy(byte*, byte*, uint32); | 343 void mcpy(byte*, byte*, uint32); |
344 int32 mcmp(byte*, byte*, uint32); | 344 int32 mcmp(byte*, byte*, uint32); |
345 void» mmov(byte*, byte*, uint32); | 345 void» memmove(void*, void*, uint32); |
346 void* mal(uint32); | 346 void* mal(uint32); |
347 uint32 cmpstring(String, String); | 347 uint32 cmpstring(String, String); |
348 String gostring(byte*); | 348 String gostring(byte*); |
349 void initsig(void); | 349 void initsig(void); |
350 int32 gotraceback(void); | 350 int32 gotraceback(void); |
351 void traceback(uint8 *pc, uint8 *sp, G* gp); | 351 void traceback(uint8 *pc, uint8 *sp, G* gp); |
352 void tracebackothers(G*); | 352 void tracebackothers(G*); |
353 int32 open(byte*, int32, ...); | 353 int32 open(byte*, int32, ...); |
354 int32 write(int32, void*, int32); | 354 int32 write(int32, void*, int32); |
355 bool cas(uint32*, uint32, uint32); | 355 bool cas(uint32*, uint32, uint32); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 | 505 |
506 Hchan* makechan(Type*, uint32); | 506 Hchan* makechan(Type*, uint32); |
507 void chansend(Hchan*, void*, bool*); | 507 void chansend(Hchan*, void*, bool*); |
508 void chanrecv(Hchan*, void*, bool*); | 508 void chanrecv(Hchan*, void*, bool*); |
509 void chanclose(Hchan*); | 509 void chanclose(Hchan*); |
510 bool chanclosed(Hchan*); | 510 bool chanclosed(Hchan*); |
511 int32 chanlen(Hchan*); | 511 int32 chanlen(Hchan*); |
512 int32 chancap(Hchan*); | 512 int32 chancap(Hchan*); |
513 | 513 |
514 void ifaceE2I(struct InterfaceType*, Eface, Iface*); | 514 void ifaceE2I(struct InterfaceType*, Eface, Iface*); |
OLD | NEW |