2008-06-04 15:37:38 -06:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "gg.h"
|
|
|
|
|
2009-03-30 22:31:29 -06:00
|
|
|
int thechar = '6';
|
|
|
|
char* thestring = "amd64";
|
|
|
|
|
|
|
|
|
2008-10-29 13:46:44 -06:00
|
|
|
/*
|
2009-03-30 18:09:28 -06:00
|
|
|
* go declares several platform-specific type aliases:
|
|
|
|
* int, uint, float, and uintptr
|
2008-10-29 13:46:44 -06:00
|
|
|
*/
|
2009-03-30 18:09:28 -06:00
|
|
|
Typedef typedefs[] =
|
2008-10-29 13:46:44 -06:00
|
|
|
{
|
|
|
|
"int", TINT, TINT32,
|
|
|
|
"uint", TUINT, TUINT32,
|
2008-12-08 20:46:39 -07:00
|
|
|
"uintptr", TUINTPTR, TUINT64,
|
2008-10-29 13:46:44 -06:00
|
|
|
"float", TFLOAT, TFLOAT32,
|
2009-03-30 18:09:28 -06:00
|
|
|
0
|
2008-10-29 13:46:44 -06:00
|
|
|
};
|
|
|
|
|
2008-06-04 15:37:38 -06:00
|
|
|
void
|
2009-03-30 18:09:28 -06:00
|
|
|
betypeinit(void)
|
2008-06-04 15:37:38 -06:00
|
|
|
{
|
2009-03-30 18:09:28 -06:00
|
|
|
maxround = 8;
|
|
|
|
widthptr = 8;
|
2009-01-09 12:13:39 -07:00
|
|
|
|
2008-06-13 19:16:23 -06:00
|
|
|
zprog.link = P;
|
|
|
|
zprog.as = AGOK;
|
|
|
|
zprog.from.type = D_NONE;
|
|
|
|
zprog.from.index = D_NONE;
|
|
|
|
zprog.from.scale = 0;
|
|
|
|
zprog.to = zprog.from;
|
|
|
|
|
2008-06-04 15:37:38 -06:00
|
|
|
listinit();
|
|
|
|
}
|