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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 uint32 noequal(uint32, void*, void*); | 383 uint32 noequal(uint32, void*, void*); |
384 void* malloc(uintptr size); | 384 void* malloc(uintptr size); |
385 void free(void *v); | 385 void free(void *v); |
386 void exit(int32); | 386 void exit(int32); |
387 void breakpoint(void); | 387 void breakpoint(void); |
388 void gosched(void); | 388 void gosched(void); |
389 void goexit(void); | 389 void goexit(void); |
390 void runcgo(void (*fn)(void*), void*); | 390 void runcgo(void (*fn)(void*), void*); |
391 void ·entersyscall(void); | 391 void ·entersyscall(void); |
392 void ·exitsyscall(void); | 392 void ·exitsyscall(void); |
| 393 void ·newproc(int32, byte*, byte*); |
393 void siginit(void); | 394 void siginit(void); |
394 bool sigsend(int32 sig); | 395 bool sigsend(int32 sig); |
395 | 396 |
396 #pragma varargck argpos printf 1 | 397 #pragma varargck argpos printf 1 |
397 | 398 |
398 #pragma varargck type "d" int32 | 399 #pragma varargck type "d" int32 |
399 #pragma varargck type "d" uint32 | 400 #pragma varargck type "d" uint32 |
400 #pragma varargck type "D" int64 | 401 #pragma varargck type "D" int64 |
401 #pragma varargck type "D" uint64 | 402 #pragma varargck type "D" uint64 |
402 #pragma varargck type "x" int32 | 403 #pragma varargck type "x" int32 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 | 519 |
519 Hchan* makechan(Type*, uint32); | 520 Hchan* makechan(Type*, uint32); |
520 void chansend(Hchan*, void*, bool*); | 521 void chansend(Hchan*, void*, bool*); |
521 void chanrecv(Hchan*, void*, bool*); | 522 void chanrecv(Hchan*, void*, bool*); |
522 void chanclose(Hchan*); | 523 void chanclose(Hchan*); |
523 bool chanclosed(Hchan*); | 524 bool chanclosed(Hchan*); |
524 int32 chanlen(Hchan*); | 525 int32 chanlen(Hchan*); |
525 int32 chancap(Hchan*); | 526 int32 chancap(Hchan*); |
526 | 527 |
527 void ifaceE2I(struct InterfaceType*, Eface, Iface*); | 528 void ifaceE2I(struct InterfaceType*, Eface, Iface*); |
OLD | NEW |