From: Martin Mares Date: Thu, 25 Jan 2001 14:51:47 +0000 (+0000) Subject: Newlines and carriage returns are considered blanks. Carefully checked X-Git-Tag: holmes-import~1571 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2f2c7a44d81ed79bb7b719f09b432db6d1c67987;p=libucw.git Newlines and carriage returns are considered blanks. Carefully checked all modules using Cspace() and Cblank(). --- diff --git a/lib/charmap.h b/lib/charmap.h index ab9eb6c7..78668897 100644 --- a/lib/charmap.h +++ b/lib/charmap.h @@ -16,10 +16,10 @@ CHAR(0x06,0x06,0x06,CA_NONE, _C_CTRL) // CHAR(0x07,0x07,0x07,CA_NONE, _C_CTRL) // CHAR(0x08,0x08,0x08,CA_NONE, _C_CTRL) // CHAR(0x09,0x09,0x09,CA_NONE, _C_CTRL | _C_BLANK | _C_PRINT) // -CHAR(0x0A,0x0A,0x0A,CA_NONE, _C_CTRL) // +CHAR(0x0A,0x0A,0x0A,CA_NONE, _C_CTRL | _C_BLANK) // CHAR(0x0B,0x0B,0x0B,CA_NONE, _C_CTRL) // CHAR(0x0C,0x0C,0x0C,CA_NONE, _C_CTRL) // -CHAR(0x0D,0x0D,0x0D,CA_NONE, _C_CTRL) // +CHAR(0x0D,0x0D,0x0D,CA_NONE, _C_CTRL | _C_BLANK) // CHAR(0x0E,0x0E,0x0E,CA_NONE, _C_CTRL) // CHAR(0x0F,0x0F,0x0F,CA_NONE, _C_CTRL) // CHAR(0x10,0x10,0x10,CA_NONE, _C_CTRL) // diff --git a/lib/chartype.h b/lib/chartype.h index 4111eb11..0276e20e 100644 --- a/lib/chartype.h +++ b/lib/chartype.h @@ -13,7 +13,7 @@ #define _C_DIGIT 8 /* Digits */ #define _C_CTRL 16 /* Control characters */ #define _C_XDIGIT 32 /* Hexadecimal digits */ -#define _C_BLANK 64 /* Blanks */ +#define _C_BLANK 64 /* White spaces (spaces, tabs, newlines) */ #define _C_INNER 128 /* `inner punctuation' -- underscore etc. */ #define _C_ALPHA (_C_UPPER | _C_LOWER)