Commit 2fe06a10 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Polish VCT a bit more.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2684 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7e89a04c
......@@ -78,6 +78,9 @@ vct_is(unsigned char x, unsigned char y)
#define vct_islws(x) vct_is(x, VCT_LWS)
#define vct_isctl(x) vct_is(x, VCT_CTL)
/* NB: VCT always operate in ASCII, don't replace 0x0d with \r etc. */
#define vct_skipcrlf(p) (p[0] == 0x0d && p[1] == 0x0a ? 2 : 1)
/* from libvarnish/version.c */
void varnish_version(const char *);
......
......@@ -32,6 +32,8 @@
#include <libvarnish.h>
/* NB: VCT always operate in ASCII, don't replace 0x0d with \r etc. */
unsigned char vct_typtab[256] = {
[0x00] = VCT_CTL,
[0x01] = VCT_CTL,
......
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