~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_list.h

  • Committer: Mark Atwood
  • Date: 2011-08-17 19:14:47 UTC
  • mfrom: (2385.3.17 rf)
  • Revision ID: me@mark.atwood.name-20110817191447-h86yzddvycd0xmof
mergeĀ lp:~olafvdspek/drizzle/refactor6

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
namespace drizzled {
30
30
 
31
 
typedef struct st_sql_list 
 
31
struct SQL_LIST 
32
32
{
33
33
  uint32_t elements;
34
34
  unsigned char *first;
53
53
    next= next_ptr;
54
54
    *next=0;
55
55
  }
56
 
  void save_and_clear(struct st_sql_list *save)
 
56
  void save_and_clear(SQL_LIST *save)
57
57
  {
58
58
    *save= *this;
59
59
    clear();
60
60
  }
61
 
  void push_front(struct st_sql_list *save)
 
61
  void push_front(SQL_LIST *save)
62
62
  {
63
63
    *save->next= first;                         /* link current list last */
64
64
    first= save->first;
65
65
    elements+= save->elements;
66
66
  }
67
 
  void push_back(struct st_sql_list *save)
 
67
  void push_back(SQL_LIST *save)
68
68
  {
69
69
    if (save->first)
70
70
    {
73
73
      elements+= save->elements;
74
74
    }
75
75
  }
76
 
} SQL_LIST;
 
76
};
77
77
 
78
78
/*
79
79
  Basic single linked list