diff options
author | unknown <monty@donna.mysql.com> | 2001-02-07 17:42:20 +0200 |
---|---|---|
committer | unknown <monty@donna.mysql.com> | 2001-02-07 17:42:20 +0200 |
commit | f816d6f16d5c4df073cf0bed40de07286f6c6cd5 (patch) | |
tree | 513c37217d346353220e5bf7b3bcccd9e135c596 /include/my_bitmap.h | |
parent | e5f835b101afafa7ded3f2660416c3d8bfa995f6 (diff) | |
download | mariadb-git-f816d6f16d5c4df073cf0bed40de07286f6c6cd5.tar.gz |
Use new bitmap interface
Patches for Armstrong
Removed warnings when using REPAIR TABLE .. EXTENDED
Docs/manual.texi:
Changelog
configure.in:
Added missing -lsocket library on SCO
include/global.h:
Patch for Armstrong
include/my_bitmap.h:
Changed bitmap interface to avoid problem with missing LOCK_bitmap symbol
include/myisampack.h:
Portability fix for Armstrong
mysql-test/t/select.test:
Changed to work with 'mysql test < select.tst'
mysys/my_bitmap.c:
Changed bitmap interface to avoid problem with missing LOCK_bitmap symbol
mysys/my_init.c:
Removed LOCK_bitmap
sql/field.cc:
Patch for Armstrong
sql/filesort.cc:
Patch for Armstrong
sql/ha_myisam.cc:
Removed warnings when using REPAIR TABLE .. EXTENDED
sql/mysql_priv.h:
Use new bitmap interface
sql/mysqld.cc:
Use new bitmap interface
sql/sql_select.cc:
Use new bitmap interface
Diffstat (limited to 'include/my_bitmap.h')
-rw-r--r-- | include/my_bitmap.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/include/my_bitmap.h b/include/my_bitmap.h index 6c86a79fe45..370f45576ff 100644 --- a/include/my_bitmap.h +++ b/include/my_bitmap.h @@ -18,18 +18,29 @@ #ifndef _my_bitmap_h_ #define _my_bitmap_h_ -#define MY_BIT_NONE ~(uint)0 +#include <my_pthread.h> + +#define MY_BIT_NONE (~(uint) 0) + +typedef struct st_bitmap +{ + uchar *bitmap; + uint bitmap_size; +#ifdef THREAD + pthread_mutex_t mutex; +#endif +} BITMAP; #ifdef __cplusplus extern "C" { #endif - - extern void bitmap_set_bit(uchar *bitmap, uint bitmap_size, uint bitmap_bit); - extern uint bitmap_set_next(uchar *bitmap, uint bitmap_size); - extern void bitmap_clear_bit(uchar *bitmap,uint bitmap_size,uint bitmap_bit); - + extern my_bool bitmap_init(BITMAP *bitmap, uint bitmap_size); + extern void bitmap_free(BITMAP *bitmap); + extern void bitmap_set_bit(BITMAP *bitmap, uint bitmap_bit); + extern uint bitmap_set_next(BITMAP *bitmap); + extern void bitmap_clear_bit(BITMAP *bitmap, uint bitmap_bit); #ifdef __cplusplus } #endif -#endif +#endif /* _my_bitmap_h_ */ |