Commit ba9feb28 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make string comparisons against other than string literals possible.




git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4186 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 91d8021c
......@@ -235,10 +235,11 @@ Cond_String(const struct var *vp, struct tokenlist *tl)
Fb(tl, 1, "%sVRT_strcmp(%s, ",
tl->t->tok == T_EQ ? "!" : "", vp->rname);
vcc_NextToken(tl);
ExpectErr(tl, CSTR);
EncToken(tl->fb, tl->t);
if (!vcc_StringVal(tl)) {
vcc_ExpectedStringval(tl);
break;
}
Fb(tl, 0, ")\n");
vcc_NextToken(tl);
break;
default:
Fb(tl, 1, "%s != (void*)0\n", vp->rname);
......
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