From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f170.google.com ([209.85.208.170]) by ewsd; Fri Jul 24 00:37:55 EDT 2020 Received: by mail-lj1-f170.google.com with SMTP id e8so8657868ljb.0 for <9front@9front.org>; Thu, 23 Jul 2020 21:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=O2u7/w4d0ZipBf/hCETl58xE6HvtoTdPTaFZzFUUF68=; b=jxrLLpsC77KDJgXLqHK4hh4GgkLWNOnwMNfKfrdvK3NCKNrfJrZJ7U4gol5rgXCyj6 Nps/Z05ewj6Ds/Q69L963oYC5ZQMi8eVXfJcC5mhgFiQ6VG8LF3TMJIWZ4MdPe3dwDVS JsjvkWO2eQ/a3/T/Ql8rVk6Bnan1I7Y/tmGRq/xH9/ni5R/YfUFnF8Tt8ymZSBHLWj4s FGXI9qOHtzwMhJGfilOlqKvAZZkMK9GtmAKFrZ5/BgMwPiNUyhA5T04WCtjM77QqDJtX uPkVvgGHnCnYf16qLdyCMLaB0RDTTjfo5zEzW2pUYKQNhmsvbLqpeveyhBVUaZa5O3Za q3ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=O2u7/w4d0ZipBf/hCETl58xE6HvtoTdPTaFZzFUUF68=; b=JhmF2p6EP7/QiyWHSHCJLYfYetN1wI+07s5Zd7QRZxYig2Pw3yi5nws+8/I9KSAVK9 qCKU/hscVJ0VI99+eIq41G6vy7WQW+acM+dSrcoEFyjY4b7u4GSebP6sIl/T7XGpnyEh 4S8fzq54rvBQ4ItLPeeYEFM7AqBhwKwlfQBTFVWet0HnKBNPHt0vQMx7bVrRIKq2BWdc pkEocXL9nP15NX/tCxaLn72D3eygHC0ENBhY8+AaRQ8x4AyDmXWsOXPfDaATXSxhBcg8 h9CCFnEsfioCtoBw06iWm5FkHCHdcePZl6KNe6befhQ8Ojrb5H3WDIRCpq8qD/JiDEyE nOwA== X-Gm-Message-State: AOAM530mNR435xysXMaNmUpAaKlu6nUXOfLTqSMaI9XJxQxzNACT4Vkj Q7EW4W5TylrHOt/N3tw9pxfUCbfd65Eabg== X-Google-Smtp-Source: ABdhPJw/BYrIwcVGdhI1z8VpHpPL0qe2SbL67+acMkW2KMB2BHs+nBHARwY8uovI90ltt/2rM78VAw== X-Received: by 2002:a2e:90da:: with SMTP id o26mr3519736ljg.91.1595565472053; Thu, 23 Jul 2020 21:37:52 -0700 (PDT) Return-Path: Received: from hugin.localnet (90-224-62-73-no50.tbcn.telia.com. [90.224.62.73]) by smtp.gmail.com with ESMTPSA id z186sm3608008lfa.6.2020.07.23.21.37.51 for <9front@9front.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 21:37:51 -0700 (PDT) From: Jens Staal To: 9front@9front.org Subject: [patch] add isblank to ape/ctype.h Date: Fri, 24 Jul 2020 06:37:50 +0200 Message-ID: <4397179.G8QHhdnbYj@hugin> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart10568340.8nX7tqJuiB" Content-Transfer-Encoding: 7Bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: transactional non-blocking WEB2.0 over HTML NoSQL rails This is a multi-part message in MIME format. --nextPart10568340.8nX7tqJuiB Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" For some reason isblank was not included in ctype.h despite _ISblank being defined. The isblank function is part of standard ctype.h https://pubs.opengroup.org/onlinepubs/009695399/basedefs/ctype.h.html I noticed this when I made a shim wctype.h in my "libwtf" attempt to provide wchar dependencies. --nextPart10568340.8nX7tqJuiB Content-Disposition: attachment; filename="ape_isblank.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="ape_isblank.diff" # HG changeset patch # User Jens Staal # Date 1595564874 -7200 # Fri Jul 24 06:27:54 2020 +0200 # Node ID e8dfabb75c221d6e354e6a349b154180d172cf56 # Parent 639ad985a75b382b9053812c6943900ef8dd1e91 add isblank to ape/ctype.h diff -r 639ad985a75b -r e8dfabb75c22 sys/include/ape/ctype.h --- a/sys/include/ape/ctype.h Mon Jul 20 18:58:52 2020 -0700 +++ b/sys/include/ape/ctype.h Fri Jul 24 06:27:54 2020 +0200 @@ -8,6 +8,7 @@ extern int isalnum(int); extern int isalpha(int); +extern int isblank(int); extern int iscntrl(int); extern int isdigit(int); extern int isgraph(int); @@ -38,6 +39,7 @@ extern unsigned char _ctype[]; #define isalnum(c) (_ctype[(unsigned char)(c)]&(_ISupper|_ISlower|_ISdigit)) #define isalpha(c) (_ctype[(unsigned char)(c)]&(_ISupper|_ISlower)) +#define isblank(c) (_ctype[(unsigned char)(c)]&_ISblank) #define iscntrl(c) (_ctype[(unsigned char)(c)]&_IScntrl) #define isdigit(c) (_ctype[(unsigned char)(c)]&_ISdigit) #define isgraph(c) (_ctype[(unsigned char)(c)]&(_ISpunct|_ISupper|_ISlower|_ISdigit)) --nextPart10568340.8nX7tqJuiB--