Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
26f659f0
Commit
26f659f0
authored
Jan 16, 2015
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be consistent with the parameter naming on VSC_F macro definitions
parent
5cb82e1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
cache_pool.c
bin/varnishd/cache/cache_pool.c
+2
-2
vsc.h
include/vapi/vsc.h
+1
-1
vsc.c
lib/libvarnishapi/vsc.c
+3
-3
No files found.
bin/varnishd/cache/cache_pool.c
View file @
26f659f0
...
...
@@ -93,7 +93,7 @@ pool_sumstat(const struct dstat *src)
Lck_AssertHeld
(
&
wstat_mtx
);
#define L0(n)
#define L1(n) (VSC_C_main->n += src->n)
#define VSC_F(n, t, l, f, v,
d, e
) L##l(n);
#define VSC_F(n, t, l, f, v,
e, d
) L##l(n);
#include "tbl/vsc_f_main.h"
#undef VSC_F
#undef L0
...
...
@@ -132,7 +132,7 @@ pool_addstat(struct dstat *dst, struct dstat *src)
dst
->
summs
++
;
#define L0(n)
#define L1(n) (dst->n += src->n)
#define VSC_F(n, t, l, f, v,
d, e
) L##l(n);
#define VSC_F(n, t, l, f, v,
e, d
) L##l(n);
#include "tbl/vsc_f_main.h"
#undef VSC_F
#undef L0
...
...
include/vapi/vsc.h
View file @
26f659f0
...
...
@@ -190,7 +190,7 @@ const struct VSC_level_desc *VSC_LevelDesc(unsigned level);
#undef VSC_TYPE_F
#define VSC_DO(U,l,t) extern const struct VSC_desc VSC_desc_##l[];
#define VSC_F(n,t,l,f,v,
d,e
)
#define VSC_F(n,t,l,f,v,
e,d
)
#define VSC_DONE(U,l,t)
#include "tbl/vsc_all.h"
#undef VSC_DO
...
...
lib/libvarnishapi/vsc.c
View file @
26f659f0
...
...
@@ -387,7 +387,7 @@ vsc_add_pt(struct vsc *vsc, const volatile void *ptr,
CHECK_OBJ_NOTNULL(vsc, VSC_MAGIC); \
st = vf->fantom.b;
#define VSC_F(nn,tt,ll,ff,vv,
dd,ee
) \
#define VSC_F(nn,tt,ll,ff,vv,
ee,dd
) \
vsc_add_pt(vsc, &st->nn, descs++, vf);
#define VSC_DONE(U,l,t) \
...
...
@@ -437,7 +437,7 @@ vsc_build_pt_list(struct VSM_data *vd)
CHECK_OBJ_NOTNULL(vf, VSC_VF_MAGIC); \
if (!strcmp(vf->fantom.type, t)) \
iter_##l(vsc, VSC_desc_##l, vf);
#define VSC_F(n,t,l,f,v,
d,e
)
#define VSC_F(n,t,l,f,v,
e,d
)
#define VSC_DONE(a,b,c)
#include "tbl/vsc_all.h"
#undef VSC_DO
...
...
@@ -565,7 +565,7 @@ VSC_LevelDesc(unsigned level)
#undef VSC_TYPE_F
#define VSC_DO(U,l,t) const struct VSC_desc VSC_desc_##l[] = {
#define VSC_F(n,t,l,f,v,
d,e) {#n,#t,f,d,e
,&VSC_level_desc_##v},
#define VSC_F(n,t,l,f,v,
e,d) {#n,#t,f,e,d
,&VSC_level_desc_##v},
#define VSC_DONE(U,l,t) };
#include "tbl/vsc_all.h"
#undef VSC_DO
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment