From 45a20ab721a513710138340faff3d59a31c3e01e Mon Sep 17 00:00:00 2001 From: forsyth Date: Mon, 3 Jun 2013 21:01:14 +0000 Subject: sync compilers with Plan 9 remove 1[acl] 2[acl] --- utils/0c/swt.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'utils/0c/swt.c') 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; efrom.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) -- cgit v1.2.3