From: Alan Cox Date: Wed, 22 Nov 2017 15:10:25 +0000 (+0000) Subject: ed: Make it build on 6502 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=da418741130e1746dd12d944788a2f1f2b080c98;p=FUZIX.git ed: Make it build on 6502 --- diff --git a/Applications/V7/cmd/ed.c b/Applications/V7/cmd/ed.c index 3723f5ea..403a340e 100644 --- a/Applications/V7/cmd/ed.c +++ b/Applications/V7/cmd/ed.c @@ -132,7 +132,7 @@ void putchr(int ac); void putd(void); void putfile(void); int putline(void); -void putstr(char *sp); +void putstr(const char *sp); void reverse(int *a1, int *a2); void quit(int); void rdelete(int *ad1, int *ad2); @@ -967,12 +967,14 @@ void init(void) dot = dol = zero; } +/* For 6502 at least we want this off the stack 8( */ +static char globuf[GBSIZE]; + void global(int k) { register char *gp; register int c; register int *a1; - char globuf[GBSIZE]; if (globp) error(Q); @@ -1554,7 +1556,7 @@ void putd(void) putchr(r + '0'); } -void putstr(char *sp) +void putstr(const char *sp) { col = 0; while (*sp)