Commit 018c0fda authored by Nils Goroll's avatar Nils Goroll

SQUASHME: switch to vct_ishdrval()

parent 08d3a70d
......@@ -597,7 +597,7 @@ validhdr(const char *p)
{
AN(p);
for(;*p != '\0'; p++)
if (vct_isctl(*p) && !vct_issp(*p))
if (! vct_ishdrval(*p))
return (0);
return (1);
}
......
......@@ -84,6 +84,7 @@ vct_is(int x, uint16_t y)
#define vct_isxmlnamestart(x) vct_is(x, VCT_XMLNAMESTART)
#define vct_isxmlname(x) vct_is(x, VCT_XMLNAMESTART | VCT_XMLNAME)
#define vct_istchar(x) vct_is(x, VCT_ALPHA | VCT_DIGIT | VCT_TCHAR)
#define vct_ishdrval(x) (((x) >= 0x20 && (x) != 0x7f) || (x) == 0x09)
static inline int
vct_iscrlf(const char* p, const char* end)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment