Skip to content

Commit 1f9a8d7

Browse files
committed
Use 'Char' in reader.c for ARM compatibility
1 parent f565316 commit 1f9a8d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lisp/c/reader.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ register context *ctx;
471471
register pointer f;
472472
eusinteger_t val;
473473
int subchar;
474-
{ char ch;
474+
{ Char ch;
475475
ch=readch(f); return(makeint(ch));}
476476

477477
static pointer read_sharp_comment(ctx,f,val,subchar) /* #| ... |# */
@@ -501,7 +501,7 @@ int subchar;
501501
{ register int i=0,j,c,p,q;
502502
pointer b;
503503
eusinteger_t *bv,x;
504-
char ch, buf[WORD_SIZE];
504+
Char ch, buf[WORD_SIZE];
505505

506506
ch=readch(f);
507507
while (i<WORD_SIZE && isxdigit(ch)) { buf[i++] = ch; ch=readch(f);}
@@ -533,7 +533,7 @@ eusinteger_t val;
533533
int subchar;
534534
{ if (read_suppress) return(read1(ctx,f));
535535
register int i=0;
536-
char buf[WORD_SIZE/2], ch;
536+
Char buf[WORD_SIZE/2], ch;
537537
ch=readch(f); val=0;
538538
while (i<WORD_SIZE/2 && ch>='0' && ch<'8') { buf[i++] = ch; ch=readch(f);}
539539
unreadch(f,ch); buf[i]=0;
@@ -554,7 +554,7 @@ eusinteger_t val;
554554
int subchar;
555555
char token[];
556556
{ register int i=0;
557-
char ch;
557+
Char ch;
558558
ch=readch(f);
559559
while (syntaxtype(ch)==ch_constituent) {
560560
token[i++]=to_upper(ch); ch=readch(f);}
@@ -736,10 +736,10 @@ char token[];
736736
/* news does not have strtol routine! */
737737
#if news || sanyo
738738
int strtol(str,ptr,base)
739-
register char *str,**ptr;
739+
register Char *str,**ptr;
740740
register int base;
741741
{ long val=0,sign=1;
742-
char ch;
742+
Char ch;
743743
while (isspace(*str)) str++;
744744
ch= *str;
745745
if (ch=='+') str++; else if (ch=='-') { str++; sign= -1;}

0 commit comments

Comments
 (0)