History

NetBSD-macppc ctype needs uchars.

rsc committed 21 years ago

Commit 218d3bf1 parent 3109b7b22 files · +55 −56Browse files

Showing the changes to src/cmd/plot/plot.c (1 of 22 files). Show all

Unified · Split

src/cmd/plot/plot.c+3−3
@@ -494,7 +494,7 @@ void define(char *a){ · 493 unmodified lines
494494 short i, j;
495495 int curly = 0;
496496 ap = a;
497− while(isalpha(*ap))ap++;
497+ while(isalpha((uchar)*ap))ap++;
498498 if(ap == a){
499499 fprint(2,"no name with define\n");
500500 exits("define");
@@ -547,7 +547,7 @@ void call(char *a){ · 46 unmodified lines
547547 char sav;
548548 double SC;
549549 ap = a;
550− while(isalpha(*ap))ap++;
550+ while(isalpha((uchar)*ap))ap++;
551551 sav = *ap;
552552 *ap = '\0';
553553 for(f=flibr;f<fptr;f++){
@@ -559,7 +559,7 @@ void call(char *a){ · 5 unmodified lines
559559 exits("undefined");
560560 }
561561 *ap = sav;
562− while (isspace(*ap) || *ap == ',')
562+ while (isspace((uchar)*ap) || *ap == ',')
563563 ap++;
564564 if (*ap != '\0')
565565 SC = atof(ap);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t