From e25c754918ae26e8b9e68a47bc1af36248e91800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 12 Jul 2019 09:18:14 +0200 Subject: New upstream version 6.9.2 --- src/mktable.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/mktable.c') diff --git a/src/mktable.c b/src/mktable.c index a9cac2c..80ac08a 100644 --- a/src/mktable.c +++ b/src/mktable.c @@ -2,7 +2,7 @@ mktable.c **********************************************************************/ /*- - * Copyright (c) 2002-2016 K.Kosako + * Copyright (c) 2002-2019 K.Kosako * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -269,7 +269,7 @@ static int IsBlank(int enc, int c) if (enc == ASCII) return isblank(c); - if (c == 0x09 || c == 0x20) return 1; + if (c == 0x09 || c == 0x20) return 1; switch (enc) { case UNICODE_ISO_8859_1: @@ -308,7 +308,7 @@ static int IsCntrl(int enc, int c) if (enc == ASCII) return iscntrl(c); - if (c >= 0x00 && c <= 0x1F) return 1; + if (c >= 0x00 && c <= 0x1F) return 1; switch (enc) { case UNICODE_ISO_8859_1: @@ -376,10 +376,10 @@ static int IsGraph(int enc, int c) case ISO_8859_3: if (c >= 0xa1) { if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 || - c == 0xe3 || c == 0xf0) - return 0; + c == 0xe3 || c == 0xf0) + return 0; else - return 1; + return 1; } break; @@ -392,8 +392,8 @@ static int IsGraph(int enc, int c) case ISO_8859_7: if (c >= 0xa1 && c <= 0xfe && - c != 0xa4 && c != 0xa5 && c != 0xaa && - c != 0xae && c != 0xd2) return 1; + c != 0xa4 && c != 0xa5 && c != 0xaa && + c != 0xae && c != 0xd2) return 1; break; case ISO_8859_8: @@ -583,10 +583,10 @@ static int IsPrint(int enc, int c) case ISO_8859_3: if (c >= 0xa0) { if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 || - c == 0xe3 || c == 0xf0) - return 0; + c == 0xe3 || c == 0xf0) + return 0; else - return 1; + return 1; } break; @@ -600,8 +600,8 @@ static int IsPrint(int enc, int c) case ISO_8859_7: if (c >= 0xa0 && c <= 0xfe && - c != 0xa4 && c != 0xa5 && c != 0xaa && - c != 0xae && c != 0xd2) return 1; + c != 0xa4 && c != 0xa5 && c != 0xaa && + c != 0xae && c != 0xd2) return 1; break; case ISO_8859_8: @@ -1012,7 +1012,7 @@ static int IsWord(int enc, int c) case ISO_8859_10: if (c >= 0xa1 && c <= 0xff) { if (c != 0xa7 && c != 0xad && c != 0xb0 && c != 0xb7 && c != 0xbd) - return 1; + return 1; } break; @@ -1037,7 +1037,7 @@ static int IsWord(int enc, int c) case ISO_8859_14: if (c >= 0xa1 && c <= 0xff) { if (c == 0xa3 || c == 0xa7 || c == 0xa9 || c == 0xad || c == 0xae || - c == 0xb6) return 0; + c == 0xb6) return 0; return 1; } break; -- cgit v1.2.3