Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/gettext/gettext-tools/src Simplify the previous patch.
details: https://anonhg.NetBSD.org/src/rev/9a1312c51d4f
branches: trunk
changeset: 580634:9a1312c51d4f
user: christos <christos%NetBSD.org@localhost>
date: Mon May 02 00:45:08 2005 +0000
description:
Simplify the previous patch.
diffstat:
gnu/dist/gettext/gettext-tools/src/po-lex.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diffs (19 lines):
diff -r 7b63f98429f6 -r 9a1312c51d4f gnu/dist/gettext/gettext-tools/src/po-lex.c
--- a/gnu/dist/gettext/gettext-tools/src/po-lex.c Sun May 01 23:57:03 2005 +0000
+++ b/gnu/dist/gettext/gettext-tools/src/po-lex.c Mon May 02 00:45:08 2005 +0000
@@ -266,14 +266,7 @@
return (mbc->uc >= 0x0000 && mbc->uc <= 0x007F);
else
#endif
- return (mbc->bytes == 1
-#if CHAR_MIN < 0x00 /* to avoid gcc warning */
- && mbc->buf[0] >= 0x00
-#endif
-#if CHAR_MAX > 0x7F /* to avoid gcc warning */
- && mbc->buf[0] <= 0x7F
-#endif
- );
+ return mbc->bytes == 1 && (mbc->buf[0] & 0x80) == 0;
}
/* Extra <wchar.h> function. */
Home |
Main Index |
Thread Index |
Old Index