diff options
author | antony@ppcg5.local <> | 2007-07-06 14:33:14 -0700 |
---|---|---|
committer | antony@ppcg5.local <> | 2007-07-06 14:33:14 -0700 |
commit | a6f9981ebd148c5b46c7c5b9f1c104d85fdbf572 (patch) | |
tree | 875b627cc2b98612e94b894f9220c25a66501b4a /include/my_bitmap.h | |
parent | 12a7af372874515d9cce992c3f58700ddc43469e (diff) | |
parent | ab4101d62f9f418a745345fb57e7734c5a2c9f9b (diff) | |
download | mariadb-git-a6f9981ebd148c5b46c7c5b9f1c104d85fdbf572.tar.gz |
Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-5.1
into ppcg5.local:/private/Network/Servers/anubis.xiphis.org/home/antony/work/mysql-5.1-engines.merge
Diffstat (limited to 'include/my_bitmap.h')
-rw-r--r-- | include/my_bitmap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/my_bitmap.h b/include/my_bitmap.h index 488c41ffb22..0b12172946a 100644 --- a/include/my_bitmap.h +++ b/include/my_bitmap.h @@ -103,6 +103,17 @@ extern void bitmap_lock_invert(MY_BITMAP *map); &= ~ (1 << ((BIT) & 7))) #define _bitmap_is_set(MAP, BIT) (uint) (((uchar*)(MAP)->bitmap)[(BIT) / 8] \ & (1 << ((BIT) & 7))) +/* + WARNING! + + The below symbols are inline functions in DEBUG builds and macros in + non-DEBUG builds. The latter evaluate their 'bit' argument twice. + + NEVER use an increment/decrement operator with the 'bit' argument. + It would work with DEBUG builds, but fails later in production builds! + + FORBIDDEN: bitmap_set_bit($my_bitmap, (field++)->field_index); +*/ #ifndef DBUG_OFF static inline void bitmap_set_bit(MY_BITMAP *map,uint bit) |