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
b83c68dd
Commit
b83c68dd
authored
Dec 15, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formailize some of the macro-crutches I use to explain stuff to FlexeLint.
parent
9f5becc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
common.h
bin/varnishd/common/common.h
+20
-2
No files found.
bin/varnishd/common/common.h
View file @
b83c68dd
...
...
@@ -42,6 +42,26 @@
struct
cli
;
/**********************************************************************
* FlexeLint and compiler shutuppery
*/
/*
* In OO-light situations, functions have to match their prototype
* even if that means not const'ing a const'able argument.
* The typedef should be specified as argument to the macro.
*/
#define __match_proto__(xxx)
/*lint -e{818} */
/*
* State variables may change value before we use the last value we
* set them to.
* Pass no argument.
*/
#define __state_variable__(xxx)
/*lint -esym(838,xxx) */
/**********************************************************************/
/* Name of transient storage */
#define TRANSIENT_STORAGE "Transient"
...
...
@@ -52,8 +72,6 @@ extern pid_t mgt_pid;
extern
struct
vsb
*
vident
;
// XXX: -> heritage ?
int
Symbol_Lookup
(
struct
vsb
*
vsb
,
void
*
ptr
);
/* Help shut up FlexeLint */
#define __match_proto__(xxx)
/*lint -e{818} */
/* Really belongs in mgt.h, but storage_file chokes on both */
void
mgt_child_inherit
(
int
fd
,
const
char
*
what
);
...
...
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