~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_list.h

  • Committer: arjen at com
  • Date: 2008-08-25 13:26:34 UTC
  • mto: This revision was merged to the branch mainline in revision 371.
  • Revision ID: arjen@lentz.com.au-20080825132634-yh2563i3xvltoavx
Initial mods for making all tests work again. Some tests adapted+added.
List of tests in Makefile now alphabetically sorted, dups removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifdef USE_PRAGMA_INTERFACE
20
20
#pragma interface                       /* gcc class implementation */
21
21
#endif
22
 
 
23
 
#include <utility>
24
 
 
 
22
                                  
25
23
/** Struct to handle simple linked lists. */
26
24
typedef struct st_sql_list {
27
25
  uint elements;
260
258
  */
261
259
  inline void swap(base_list &rhs)
262
260
  {
263
 
    std::swap(first, rhs.first);
264
 
    std::swap(last, rhs.last);
265
 
    std::swap(elements, rhs.elements);
 
261
    swap_variables(list_node *, first, rhs.first);
 
262
    swap_variables(list_node **, last, rhs.last);
 
263
    swap_variables(uint, elements, rhs.elements);
266
264
  }
267
265
  inline list_node* last_node() { return *last; }
268
266
  inline list_node* first_node() { return first;}