diff options
| author | Russ Cox <rsc@golang.org> | 2015-01-12 15:17:10 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-01-14 19:18:05 +0000 |
| commit | 3be0a0ef6fb80d099aefdba67b68df3b500188bc (patch) | |
| tree | 8330ebaf4e92310212d0f383179b1065c3d0ca26 /src/runtime/stack.h | |
| parent | 5bfed7c6c03bf3cc9a0a1d7a0ab056b9dfaae920 (diff) | |
| download | go-3be0a0ef6fb80d099aefdba67b68df3b500188bc.tar.xz | |
liblink: adjustments for c2go conversion
Mostly this is using uint32 instead of int32 for unsigned values
like instruction encodings or float32 bit representations,
removal of ternary operations, and removal of #defines.
Delete sched9.c, because it is not compiled (it is still in the history
if we ever need it).
Change-Id: I68579cfea679438a27a80416727a9af932b088ae
Reviewed-on: https://go-review.googlesource.com/2658
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/stack.h')
| -rw-r--r-- | src/runtime/stack.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/runtime/stack.h b/src/runtime/stack.h index 0b2cd56a92..b790e70103 100644 --- a/src/runtime/stack.h +++ b/src/runtime/stack.h @@ -7,10 +7,10 @@ enum { #ifdef GOOS_windows - StackSystem = 512 * sizeof(uintptr), +#define StackSystem (512*sizeof(uintptr)) #else #ifdef GOOS_plan9 - StackSystem = 512, +#define StackSystem (512) #else StackSystem = 0, #endif // Plan 9 @@ -23,3 +23,9 @@ enum { }; #define StackPreempt ((uint64)-1314) +/*c2go +enum +{ + StackPreempt = 1, // TODO: Change to (uint64)-1314 in Go translation +}; +*/ |
