X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Flstream.h;h=df469602ebe04a546ba3653707337e8e88968479;hb=a3fdbd7c9b63c0ce35da43753b5622ac859325b4;hp=482583b3766a2f958029e48d9c58f26ff91eda04;hpb=f52a96980ed9280f8f906a20d4b899dc0b027644;p=chise%2Fxemacs-chise.git- diff --git a/src/lstream.h b/src/lstream.h index 482583b..df46960 100644 --- a/src/lstream.h +++ b/src/lstream.h @@ -92,7 +92,7 @@ typedef struct lstream_implementation the caller calls Lstream_read() with a very small size. This function can be NULL if the stream is output-only. */ - /* The omniscient mly, blinded by the irresistable thrall of Common + /* The omniscient mly, blinded by the irresistible thrall of Common Lisp, thinks that it is bogus that the types and implementations of input and output streams are the same. */ ssize_t (*reader) (Lstream *stream, unsigned char *data, size_t size); @@ -277,8 +277,9 @@ INLINE_HEADER Emchar Lstream_get_emchar (Lstream *stream) { int c = Lstream_getc (stream); - return BYTE_ASCII_P (c) ? (Emchar) c : - Lstream_get_emchar_1 (stream, c); + return (c < 0x80 /* c == EOF || BYTE_ASCII_P (c) */ + ? (Emchar) c + : Lstream_get_emchar_1 (stream, c)); } INLINE_HEADER int Lstream_put_emchar (Lstream *stream, Emchar ch);