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

Formailize some of the macro-crutches I use to explain stuff to FlexeLint.

parent 9f5becc0
......@@ -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);
......
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