From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752907AbcEJOoA (ORCPT ); Tue, 10 May 2016 10:44:00 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:32950 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752191AbcEJOn6 (ORCPT ); Tue, 10 May 2016 10:43:58 -0400 From: "Ilya V. Matveychikov" To: linux-kernel@vger.kernel.org Subject: [PATCH RFC] ctype: update comments Date: Tue, 10 May 2016 17:43:55 +0300 Message-ID: <7702210.VDiUoWCC56@kitchen> User-Agent: KMail/5.2.0 (Linux/4.5.1-1-ARCH; KDE/5.21.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have isspace() which may be used incorrectly as one might expect that it has the same meaning as POSIX isspace(). Also, kernel has outdated comment about of what is space and hard space exactely. Signed-off-by: Ilya V. Matveychikov --- include/linux/ctype.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/include/linux/ctype.h b/include/linux/ctype.h index 653589e..5c03748 100644 --- a/include/linux/ctype.h +++ b/include/linux/ctype.h @@ -11,9 +11,20 @@ #define _D 0x04 /* digit */ #define _C 0x08 /* cntrl */ #define _P 0x10 /* punct */ -#define _S 0x20 /* white space (space/lf/tab) */ +#define _S 0x20 /* space + 0x09 - Horizontal Tab (HT) + 0x0A - Line Feed (LF) + 0x0B - Vertical Tab (VT) + 0x0C - Form Feed (FF) + 0x0D - Carriage Return (CR) + 0x20 - Space (SP) + 0xA0 - Non-Breakable Space (NBSP) + */ #define _X 0x40 /* hex digit */ -#define _SP 0x80 /* hard space (0x20) */ +#define _SP 0x80 /* hard space + 0x20 - Space (SP) + 0xA0 - Non-Breakable Space (NBSP) + */ extern const unsigned char _ctype[]; -- 2.8.0