[master] 62c00fd More work to slim down the cache.h API

Dridi Boukelmoune dridi at varni.sh
Thu Mar 8 08:55:54 UTC 2018


> -/*
> - * XXX should cache.h refer to cache_param if common_param.h
> - * is not in $DIST ?
> - */
> -#define FEATURE(x)     COM_FEATURE(cache_param->feature_bits, x)
> -#define DO_DEBUG(x)    COM_DO_DEBUG(cache_param->debug_bits, x)
> -
>  #define DSL(debug_bit, id, ...)                                        \
>         do {                                                    \
>                 if (DO_DEBUG(debug_bit))                        \

DO_DEBUG is removed from the API but used right below in DSL(). Also
should we really hide those flags? There's at least vtc_mode that
could be really useful to VMOD authors.

Dridi


More information about the varnish-commit mailing list