The Go Programming Language

Text file src/cmd/8g/galign.c

     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 "gg.h"
     6	
     7	int	thechar	= '8';
     8	char*	thestring	= "386";
     9	
    10	vlong MAXWIDTH = (1LL<<32) - 1;
    11	
    12	/*
    13	 * go declares several platform-specific type aliases:
    14	 * int, uint, float, and uintptr
    15	 */
    16	Typedef	typedefs[] =
    17	{
    18		"int",		TINT,		TINT32,
    19		"uint",		TUINT,		TUINT32,
    20		"uintptr",	TUINTPTR,	TUINT32,
    21		0
    22	};
    23	
    24	void
    25	betypeinit(void)
    26	{
    27		widthptr = 4;
    28	
    29		zprog.link = P;
    30		zprog.as = AGOK;
    31		zprog.from.type = D_NONE;
    32		zprog.from.index = D_NONE;
    33		zprog.from.scale = 0;
    34		zprog.to = zprog.from;
    35	
    36		listinit();
    37	}

release.r60.3. Except as noted, this content is licensed under a Creative Commons Attribution 3.0 License.