1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Use new bitmap interface

Patches for Armstrong
Removed warnings when using REPAIR TABLE .. EXTENDED
This commit is contained in:
monty@donna.mysql.com
2001-02-07 17:42:20 +02:00
parent cc9f24bc40
commit d487e5a9b1
14 changed files with 155 additions and 50 deletions

View File

@ -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_ */