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

Fix typo, so we correctly recognize '-=' as T_DECR token.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1293 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ec78afec
......@@ -85,6 +85,10 @@ vcl_fixed_token(const char *p, const char **q)
}
return (0);
case '-':
if (p[0] == '-' && p[1] == '=') {
*q = p + 2;
return (T_DECR);
}
if (p[0] == '-' && p[1] == '-') {
*q = p + 2;
return (T_DEC);
......@@ -101,10 +105,6 @@ vcl_fixed_token(const char *p, const char **q)
}
return (0);
case '/':
if (p[0] == '/' && p[1] == '=') {
*q = p + 2;
return (T_DECR);
}
if (p[0] == '/' && p[1] == '=') {
*q = p + 2;
return (T_DIV);
......@@ -391,7 +391,7 @@ vcl_init_tnames(void)
vcl_tnames[T_CAND] = "&&";
vcl_tnames[T_COR] = "||";
vcl_tnames[T_DEC] = "--";
vcl_tnames[T_DECR] = "/=";
vcl_tnames[T_DECR] = "-=";
vcl_tnames[T_DELIVER] = "deliver";
vcl_tnames[T_DISCARD] = "discard";
vcl_tnames[T_DIV] = "/=";
......
......@@ -93,7 +93,7 @@ set magic {
{">>" SHR}
{"<<" SHL}
{"+=" INCR}
{"/=" DECR}
{"-=" DECR}
{"*=" MUL}
{"/=" DIV}
}
......
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