Scrap readrune(), introducing fgetrune()
Interface as proposed by cls, but internally rewritten after a few considerations. The code is much shorter and to the point, aligning itself with other standard functions. It should also be much faster, which is not bad.
This commit is contained in:
@@ -204,7 +204,7 @@ main(int argc, char *argv[])
|
||||
if (set2check && cflag && !dflag)
|
||||
eprintf("set2 can't be imaged to from a complement.\n");
|
||||
read:
|
||||
if (!readrune("<stdin>", stdin, &r))
|
||||
if (!efgetrune(&r, stdin, "<stdin>"))
|
||||
return 0;
|
||||
off1 = off2 = 0;
|
||||
for (i = 0; i < set1ranges; i++) {
|
||||
|
||||
Reference in New Issue
Block a user