From 3be0a0ef6fb80d099aefdba67b68df3b500188bc Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 12 Jan 2015 15:17:10 -0500 Subject: 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 --- src/runtime/stack.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/runtime/stack.h') 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 +}; +*/ -- cgit v1.3