Commit 44f28468 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use C-unsigned for VCL-BOOL variables


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1542 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7873b1a6
......@@ -217,8 +217,8 @@ VRT_r_obj_##onm(struct sess *sp) \
return (sp->obj->field); \
}
VOBJ(double, valid, valid)
VOBJ(double, cacheable, cacheable)
VOBJ(unsigned, valid, valid)
VOBJ(unsigned, cacheable, cacheable)
/*--------------------------------------------------------------------*/
......
......@@ -28,10 +28,10 @@ struct backend * VRT_r_req_backend(struct sess *);
void VRT_l_req_backend(struct sess *, struct backend *);
const char * VRT_r_req_hash(struct sess *);
void VRT_l_req_hash(struct sess *, const char *);
double VRT_r_obj_valid(struct sess *);
void VRT_l_obj_valid(struct sess *, double);
double VRT_r_obj_cacheable(struct sess *);
void VRT_l_obj_cacheable(struct sess *, double);
unsigned VRT_r_obj_valid(struct sess *);
void VRT_l_obj_valid(struct sess *, unsigned);
unsigned VRT_r_obj_cacheable(struct sess *);
void VRT_l_obj_cacheable(struct sess *, unsigned);
double VRT_r_obj_ttl(struct sess *);
void VRT_l_obj_ttl(struct sess *, double);
const char * VRT_r_req_http_(struct sess *);
......
......@@ -154,6 +154,8 @@ assignment:
var_float '-=' double
var_float '=' double
var_backend '=' ident
var_string '=' stringval
var_string '+=' stringval
assign_int:
'+=' cnum
......@@ -184,6 +186,10 @@ rule0:
cstr '/' cnum
'!' cstr
stringval:
cstr
var_string
cstr: (string constant)
cnum: (numeric constant)
......
......@@ -57,7 +57,7 @@ set spobj {
set tt(IP) "struct sockaddr *"
set tt(STRING) "const char *"
set tt(BOOL) "double"
set tt(BOOL) "unsigned"
set tt(BACKEND) "struct backend *"
set tt(TIME) "double"
set tt(HEADER) "const char *"
......
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