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
a6afbd76
Commit
a6afbd76
authored
Jan 11, 2022
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
param: Streamline the bits parameters typedefs
parent
a8449faf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
common_param.h
bin/varnishd/common/common_param.h
+5
-3
No files found.
bin/varnishd/common/common_param.h
View file @
a6afbd76
...
...
@@ -71,10 +71,12 @@ struct poolparam {
vtim_dur
max_age
;
};
#define PARAM_BITMAP(name, len) typedef uint8_t name[(len + 7)>>3]
typedef
uint8_t
vsl_mask_t
[
256
>>
3
];
typedef
uint8_t
debug_t
[(
DBG_Reserved
+
7
)
>>
3
];
typedef
uint8_t
feature_t
[(
FEATURE_Reserved
+
7
)
>>
3
];
PARAM_BITMAP
(
vsl_mask_t
,
256
);
PARAM_BITMAP
(
debug_t
,
DBG_Reserved
);
PARAM_BITMAP
(
feature_t
,
FEATURE_Reserved
);
#undef PARAM_BITMAP
struct
params
{
...
...
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