summaryrefslogtreecommitdiff
path: root/utils/0c/swt.c
diff options
context:
space:
mode:
authorforsyth <forsyth@lavoro.terzarima.net>2013-06-03 21:01:14 +0000
committerforsyth <forsyth@lavoro.terzarima.net>2013-06-03 21:01:14 +0000
commit45a20ab721a513710138340faff3d59a31c3e01e (patch)
treeeea29d2684c51cc73725b8992a2125bede48e118 /utils/0c/swt.c
parentcd8e99851af33e52bcdf8faf34f9d4e62fa0cbaf (diff)
sync compilers with Plan 9
remove 1[acl] 2[acl]
Diffstat (limited to 'utils/0c/swt.c')
-rw-r--r--utils/0c/swt.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/utils/0c/swt.c b/utils/0c/swt.c
index 2e24fedd..0b0623c0 100644
--- a/utils/0c/swt.c
+++ b/utils/0c/swt.c
@@ -1,7 +1,7 @@
#include "gc.h"
int
-swcmp(const void *a1, const void *a2)
+swcmp(void *a1, void *a2)
{
C1 *p1, *p2;
@@ -198,7 +198,7 @@ outstring(char *s, long n)
}
long
-outlstring(ushort *s, long n)
+outlstring(TRune *s, long n)
{
char buf[2];
int c;
@@ -323,22 +323,6 @@ nullwarn(Node *l, Node *r)
cgen(r, Z);
}
-void
-sextern(Sym *s, Node *a, long o, long w)
-{
- long e, lw;
-
- for(e=0; e<w; e+=NSNAME) {
- lw = NSNAME;
- if(w-e < lw)
- lw = w-e;
- gpseudo(ADATA, s, nodconst(0));
- p->from.offset += o+e;
- p->reg = lw;
- p->to.type = D_SCONST;
- memmove(p->to.sval, a->cstring+e, lw);
- }
-}
void
gextern(Sym *s, Node *a, long o, long w)