github.com/rohankumardubey/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/cmd/6g/galign.c (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 #include <u.h> 6 #include <libc.h> 7 #include "gg.h" 8 9 int thechar = '6'; 10 char* thestring = "amd64"; 11 12 vlong MAXWIDTH = 1LL<<50; 13 14 /* 15 * go declares several platform-specific type aliases: 16 * int, uint, float, and uintptr 17 */ 18 Typedef typedefs[] = 19 { 20 "int", TINT, TINT64, 21 "uint", TUINT, TUINT64, 22 "uintptr", TUINTPTR, TUINT64, 23 0 24 }; 25 26 void 27 betypeinit(void) 28 { 29 widthptr = 8; 30 widthint = 8; 31 32 zprog.link = P; 33 zprog.as = AGOK; 34 zprog.from.type = D_NONE; 35 zprog.from.index = D_NONE; 36 zprog.from.scale = 0; 37 zprog.to = zprog.from; 38 39 listinit(); 40 }