~skinny.moey/drizzle/innodb-replication

« back to all changes in this revision

Viewing changes to plugin/pbxt/src/xt_defs.h

  • Committer: Brian Aker
  • Date: 2010-11-08 22:35:57 UTC
  • mfrom: (1802.1.114 trunk)
  • Revision ID: brian@tangent.org-20101108223557-w3xzwp9hjjtjhtc1
MergeĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
17
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 *
19
19
 * Author: Paul McCullagh
20
20
 *
892
892
#define MX_CHARSET_INFO                                         struct drizzled::charset_info_st
893
893
#define MX_CONST_CHARSET_INFO                           const struct drizzled::charset_info_st                  
894
894
#define MX_CONST                                                        const
895
 
#define MX_BITMAP                                                       drizzled::MyBitmap
896
 
#define MX_BIT_SIZE()                                           numOfBitsInMap()
897
 
#define MX_BIT_SET(x, y)                                        (x)->setBit(y)
898
 
#define MX_BIT_FAST_TEST_AND_SET(x, y)                          (x)->testAndSet(y)
 
895
#include <boost/dynamic_bitset.hpp>
 
896
#define MX_BITMAP                                                       boost::dynamic_bitset<>
 
897
#define MX_BIT_SIZE()                                           size()
 
898
#define MX_BIT_SET(x, y)                                        (x)->set(y)
 
899
//#define MX_BIT_FAST_TEST_AND_SET(x, y)                (x)->testAndSet(y)
 
900
#define MX_BIT_FAST_TEST_AND_SET(x, y)          (x)->test(y)
899
901
 
900
902
#define my_bool                                                         bool
901
903
//#define int16                                                         int16_t
941
943
 
942
944
#define my_pthread_setspecific_ptr(T, V)        pthread_setspecific(T, (void*) (V))
943
945
 
944
 
#define mysql_real_data_home                            ::drizzled::getDataHomeCatalog().c_str()
 
946
/* TODO: This is dangerous! */
 
947
#define mysql_real_data_home                            ::drizzled::getDataHomeCatalog().file_string().c_str()
945
948
 
946
949
#define mi_int4store(T,A)   { uint32_t def_temp= (uint32_t) (A);\
947
950
                              ((unsigned char*) (T))[3]= (unsigned char) (def_temp);\
1012
1015
 
1013
1016
#endif // DRIZZLED
1014
1017
 
1015
 
#define MX_BIT_IS_SUBSET(x, y)                          bitmap_is_subset(x, y)
 
1018
#define MX_BIT_IS_SUBSET(x, y)                          x->is_subset_of(y)
1016
1019
 
1017
1020
#ifndef XT_SCAN_CORE_DEFINED
1018
1021
#define XT_SCAN_CORE_DEFINED