From ec4deed537c1b8c36f7b42185ccfa110205cd218 Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Wed, 22 Aug 2007 19:54:14 +0200 Subject: [PATCH] removed _BIT macro --- ngx_http_fancyindex_module.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index a719bc2..b59c6e9 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -35,16 +35,12 @@ typedef struct { #endif -#define _BIT(_n) (1 << (_n)) - -#define NGX_HTTP_FANCYINDEX_README_TOP (0) -#define NGX_HTTP_FANCYINDEX_README_PRE (0) -#define NGX_HTTP_FANCYINDEX_README_ASIS _BIT(1) -#define NGX_HTTP_FANCYINDEX_README_BOTTOM _BIT(2) -#define NGX_HTTP_FANCYINDEX_README_DIV _BIT(3) -#define NGX_HTTP_FANCYINDEX_README_IFRAME _BIT(4) - -#undef _BIT +#define NGX_HTTP_FANCYINDEX_README_TOP 0x00 +#define NGX_HTTP_FANCYINDEX_README_PRE 0x00 +#define NGX_HTTP_FANCYINDEX_README_ASIS 0x01 +#define NGX_HTTP_FANCYINDEX_README_BOTTOM 0x02 +#define NGX_HTTP_FANCYINDEX_README_DIV 0x04 +#define NGX_HTTP_FANCYINDEX_README_IFRAME 0x08 typedef struct {