From 1d6df54df27cb41c02226678a2c8f9feddd1a1e0 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 7 Jun 2009 21:27:05 +0000 Subject: Convert a number of places in core and plugins to use the BIT_N() macro instead of 1< #include #include "config.h" +#include "system.h" /* Format a large-range value for output, using the appropriate unit so that * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" @@ -103,7 +104,7 @@ char *strip_extension(char* buffer, int buffer_size, const char *filename); * - position: 0-based number of the value * - valid_vals: value after the call to 'parse_list' */ -#define LIST_VALUE_PARSED(setvals, position) ((setvals)&(1<<(position))) +#define LIST_VALUE_PARSED(setvals, position) ((setvals) & BIT_N(position)) const char* parse_list(const char *fmt, uint32_t *set_vals, const char sep, const char* str, ...); -- cgit v1.1