update to re2c-0.13.6

This commit is contained in:
sthen 2013-07-06 08:22:04 +00:00
parent 16ad94a5a6
commit aa12db14fc
3 changed files with 13 additions and 16 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.7 2013/03/11 10:50:27 espie Exp $
# $OpenBSD: Makefile,v 1.8 2013/07/06 08:22:04 sthen Exp $
COMMENT= C-based regular expression scanner generator
DISTNAME= re2c-0.13.5
DISTNAME= re2c-0.13.6
CATEGORIES= devel
HOMEPAGE= http://re2c.org/

View File

@ -1,5 +1,2 @@
MD5 (re2c-0.13.5.tar.gz) = SpfY937W0sdsi9hApD9WMw==
RMD160 (re2c-0.13.5.tar.gz) = Sz0zkHKqC5CK/HiyGLuW0d595yo=
SHA1 (re2c-0.13.5.tar.gz) = PTNO+rU6SgUaKxibSahJ4TUjtsA=
SHA256 (re2c-0.13.5.tar.gz) = 86mVE5r0degKMCB9AnKLHgBlsMqt5zdel0yxsUhhZow=
SIZE (re2c-0.13.5.tar.gz) = 782725
SHA256 (re2c-0.13.6.tar.gz) = jkYwOaqHmaKVe/wAyZNiMrtjtPyyTW6mMWFwpn5QdsA=
SIZE (re2c-0.13.6.tar.gz) = 844623

View File

@ -1,16 +1,16 @@
$OpenBSD: patch-dfa_cc,v 1.2 2008/09/19 00:26:43 sthen Exp $
$OpenBSD: patch-dfa_cc,v 1.3 2013/07/06 08:22:04 sthen Exp $
Our isprint() has a different idea of which chars are printable
than the system on which the regression tests were written.
--- dfa.cc.orig Fri Sep 19 00:41:00 2008
+++ dfa.cc Fri Sep 19 00:41:39 2008
@@ -12,7 +12,7 @@ void prtChOrHex(std::ostream& o, uint c, bool useTalx)
{
int oc = (int)(re2c::wFlag || !useTalx ? c : re2c::talx[c]);
- if ((oc < 256) && (isprint(oc) || isspace(oc)))
+ if ((oc < 128) && (isprint(oc) || isspace(oc)))
--- dfa.cc.orig Thu Jul 4 23:39:34 2013
+++ dfa.cc Fri Jul 5 21:09:28 2013
@@ -16,7 +16,7 @@ void prtChOrHex(std::ostream& o, uint c)
prtHex(o, c);
if (DFlag) o << '"';
}
- else if ((c < 256u) && (isprint(c) || isspace(c)))
+ else if ((c < 128u) && (isprint(c) || isspace(c)))
{
o << (DFlag ? '"' : '\'');
prtCh(o, c);