~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/ut0lst.h

  • Committer: Brian Aker
  • Date: 2010-12-31 02:23:39 UTC
  • mto: (2054.1.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2049.
  • Revision ID: brian@tangent.org-20101231022339-g07ztt32wdwqdz46
Make it so that tables are sent not as raw but actual drop table commands to
the replication system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
to both ends of the list and a count of nodes in the list (excluding
40
40
the base node from the count).
41
41
@param TYPE     the name of the list node data type */
42
 
#define UT_LIST_BASE_NODE_T(TYPE)\
43
 
struct {\
44
 
        ulint   count;  /*!< count of nodes in list */\
45
 
        TYPE *  start;  /*!< pointer to list start, NULL if empty */\
46
 
        TYPE *  end;    /*!< pointer to list end, NULL if empty */\
47
 
}\
 
42
#ifdef __cplusplus
 
43
template<class T>
 
44
class ut_list_base_node
 
45
{
 
46
public:
 
47
  size_t count; /*!< count of nodes in list */\
 
48
  T *   start;  /*!< pointer to list start, NULL if empty */\
 
49
  T *   end;    /*!< pointer to list end, NULL if empty */\
 
50
};
 
51
#define UT_LIST_BASE_NODE_T(TYPE) ut_list_base_node<TYPE>
 
52
#else
 
53
#define UT_LIST_BASE_NODE_T(TYPE) int
 
54
#endif
48
55
 
49
56
/*******************************************************************//**
50
57
This macro expands to the unnamed type definition of a struct which
220
227
Gets the last node in a two-way list.
221
228
@param BASE     the base node (not a pointer to it)
222
229
@return         last node, or NULL if the list is empty */
 
230
#ifdef __cplusplus
223
231
#define UT_LIST_GET_LAST(BASE)\
224
232
        (BASE).end
 
233
#else
 
234
#define UT_LIST_GET_LAST(BASE) (BASE= NULL)
 
235
#endif
225
236
 
226
237
/********************************************************************//**
227
238
Checks the consistency of a two-way list.