Commit 9e481e29 authored by Rob Pike's avatar Rob Pike

fix spelling of align

R=rsc
CC=golang-dev
https://golang.org/cl/778041
parent dab40b58
......@@ -625,7 +625,7 @@ align(int32 i, Type *t, int op)
w = packflg;
break;
case Ael1: /* initial allign of struct element */
case Ael1: /* initial align of struct element */
for(v=t; v->etype==TARRAY; v=v->link)
;
w = ewidth[v->etype];
......@@ -646,7 +646,7 @@ align(int32 i, Type *t, int op)
}
break;
case Aarg1: /* initial allign of parameter */
case Aarg1: /* initial align of parameter */
w = ewidth[t->etype];
if(w <= 0 || w >= SZ_LONG) {
w = SZ_LONG;
......@@ -660,7 +660,7 @@ align(int32 i, Type *t, int op)
w = SZ_LONG;
break;
case Aaut3: /* total allign of automatic */
case Aaut3: /* total align of automatic */
o = align(o, t, Ael2);
o = align(o, t, Ael1);
w = SZ_LONG; /* because of a pun in cc/dcl.c:contig() */
......
......@@ -559,7 +559,7 @@ align(int32 i, Type *t, int op)
w = SZ_VLONG;
break;
case Aaut3: /* total allign of automatic */
case Aaut3: /* total align of automatic */
o = align(o, t, Ael1);
o = align(o, t, Ael2);
break;
......
......@@ -251,7 +251,7 @@ TEXT mode32bit(SB),$0
* 16 meg of physical memory
*/
LEAL tpt-KZERO(SB),AX /* get phys addr of temporary page table */
ADDL $(BY2PG-1),AX /* must be page alligned */
ADDL $(BY2PG-1),AX /* must be page aligned */
ANDL $(~(BY2PG-1)),AX /* ... */
MOVL $(4*1024),CX /* pte's per page */
MOVL $((((4*1024)-1)<<PGSHIFT)|PTEVALID|PTEKERNEL|PTEWRITE),BX
......
......@@ -520,7 +520,7 @@ align(int32 i, Type *t, int op)
w = packflg;
break;
case Ael1: /* initial allign of struct element */
case Ael1: /* initial align of struct element */
for(v=t; v->etype==TARRAY; v=v->link)
;
w = ewidth[v->etype];
......@@ -557,7 +557,7 @@ align(int32 i, Type *t, int op)
w = SZ_LONG;
break;
case Aaut3: /* total allign of automatic */
case Aaut3: /* total align of automatic */
o = align(o, t, Ael1);
o = align(o, t, Ael2);
break;
......
......@@ -658,7 +658,7 @@ int rsametype(Type*, Type*, int, int);
int sametype(Type*, Type*);
uint32 sign(Sym*);
uint32 signature(Type*);
void suallign(Type*);
void sualign(Type*);
void tmerge(Type*, Sym*);
void walkparam(Node*, int);
void xdecl(int, Type*, Sym*);
......
......@@ -1034,7 +1034,7 @@ complex:
if($$->link != T)
diag(Z, "redeclare tag: %s", $2->name);
$$->link = $4;
suallign($$);
sualign($$);
}
| LSTRUCT sbody
{
......@@ -1042,7 +1042,7 @@ complex:
sprint(symb, "_%d_", taggen);
$$ = dotag(lookup(), TSTRUCT, autobn);
$$->link = $2;
suallign($$);
sualign($$);
}
| LUNION ltag
{
......@@ -1059,7 +1059,7 @@ complex:
if($$->link != T)
diag(Z, "redeclare tag: %s", $2->name);
$$->link = $4;
suallign($$);
sualign($$);
}
| LUNION sbody
{
......@@ -1067,7 +1067,7 @@ complex:
sprint(symb, "_%d_", taggen);
$$ = dotag(lookup(), TUNION, autobn);
$$->link = $2;
suallign($$);
sualign($$);
}
| LENUM ltag
{
......
......@@ -549,7 +549,7 @@ newlist(Node *l, Node *r)
}
void
suallign(Type *t)
sualign(Type *t)
{
Type *l;
int32 o, w;
......@@ -611,7 +611,7 @@ suallign(Type *t)
return;
default:
diag(Z, "unknown type in suallign: %T", t);
diag(Z, "unknown type in sualign: %T", t);
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment