allocparams(void)
{
Dcl *d;
- Iter list;
- Type *t;
Node *n;
uint32 w;
int32 lno;
Prog *scontin, *sbreak;
Prog *p1, *p2, *p3;
- Sym *s;
Node *l;
Label *lab;
cgen_call(Node *n, int proc)
{
Type *t;
- Node nod, afun, regax;
+ Node nod, afun;
if(n == N)
return;
void
cgen_aret(Node *n, Node *res)
{
- Node nod1, nod2;
+ Node nod1;
Type *fp, *t;
Iter flist;
{
Node n1, n2, n3, n4;
Node *nl, *nr;
- int32 lno;
nl = n->left;
nr = n->right;
cgen_div(int op, Node *nl, Node *nr, Node *res)
{
Node ax, dx, n3, tmpax, tmpdx;
- int a, rax, rdx;
+ int rax, rdx;
rax = reg[D_AX];
rdx = reg[D_DX];
Prog* gins(int, Node*, Node*);
int samaddr(Node*, Node*);
void naddr(Node*, Addr*);
+void cgen_aret(Node*, Node*);
/*
* gsubr.c
if(a == AMOVQ ||
a == AMOVSD ||
a == AMOVSS ||
- a == AMOVL && f->type->width == t->type->width) /* TO DO: check AMOVL */
+ (a == AMOVL && f->type->width == t->type->width)) /* TO DO: check AMOVL */
if(samaddr(f, t))
return;
gins(a, f, t);
p = str;
for(i=0; i<sconsize; i++) {
c = a[i] & 0xff;
- if(c >= 'a' && c <= 'z' ||
- c >= 'A' && c <= 'Z' ||
- c >= '0' && c <= '9') {
+ if((c >= 'a' && c <= 'z') ||
+ (c >= 'A' && c <= 'Z') ||
+ (c >= '0' && c <= '9')) {
*p++ = c;
continue;
}
Bterm(bout);
}
+void
Bputdot(Biobuf *b)
{
// put out middle dot ยท
convlit(Node *n, Type *t)
{
int et;
- Node *n1;
if(n == N || t == T)
return;
{
Dcl *r, *d;
Sym *s;
- Type *ot;
- Node *on;
int gen;
if(n==N || n->sym == S || n->op != ONAME || t == T)
void
fninit(Node *n)
{
- Node *done, *any;
+ Node *done;
Node *a, *fn, *r;
- Iter iter;
uint32 h;
Sym *s;
Node* cleanidlist(Node*);
Node* syslook(char*, int);
Node* treecopy(Node*);
+int isselect(Node*);
+void tempname(Node*, Type*);
Type** getthis(Type*);
Type** getoutarg(Type*);
Biobuf *imp;
char *file;
int32 c;
- char *p;
int len;
if(f->ctype != CTSTR) {
void
mpdivmodfixfix(Mpint *q, Mpint *r, Mpint *n, Mpint *d)
{
- int i, nn, dn;
+ int i;
mpmovefixfix(r, n);
mpmovecfix(q, 0);
if(n == 0)
strcat(str, "<epoch>");
-ret:
return fmtstrcpy(fp, str);
}
{
Sym *s, *ss;
char *e;
- Type *t1;
- int n;
char buf[NSYMB];
if(t == T)