--------
In message <[email protected]>, Nils Goroll writes:

>Does anyone have objections to adding guards (like #ifdef
>VARINSH_CACHE_CACHE_H_INCLUDED) to all our includes? This would make it easier
>for vmod authors because compilers wouldn't barf about double includes.

I had actually thought about doing the opposite:  Add a "don't include
this more than once" guard:

        #ifdef COMBINER_H_INCLUDED
        #  error "combiner.h included multiple times"
        #endif
        #define COMBINER_H_INCLUDED

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to