summaryrefslogtreecommitdiff
path: root/sql/sql_list.h
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2004-02-18 22:21:37 -0800
committerunknown <igor@rurik.mysql.com>2004-02-18 22:21:37 -0800
commitc88e5213d4f8acbbba33d293a9573042818f0aec (patch)
tree930d3af069574ba2f718af7997089edaeb3b22fc /sql/sql_list.h
parent4b058cba0d059ecb9dd2d69e911f0523e411b19d (diff)
downloadmariadb-git-c88e5213d4f8acbbba33d293a9573042818f0aec.tar.gz
Many files:
After review fixes for Item_equal. sql/item.cc: After review fixes for Item_equal. sql/item.h: After review fixes for Item_equal. sql/item_cmpfunc.cc: After review fixes for Item_equal. sql/item_cmpfunc.h: After review fixes for Item_equal. sql/item_func.h: After review fixes for Item_equal. sql/item_func.cc: After review fixes for Item_equal. sql/item_row.cc: After review fixes for Item_equal. sql/item_row.h: After review fixes for Item_equal. sql/item_strfunc.h: After review fixes for Item_equal. sql/opt_range.cc: After review fixes for Item_equal. sql/sql_list.h: After review fixes for Item_equal. sql/sql_select.cc: After review fixes for Item_equal. mysql-test/r/select.result: After review fixes for Item_equal. mysql-test/r/subselect.result: After review fixes for Item_equal.
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r--sql/sql_list.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h
index bac4a2a8655..5318237b786 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -161,6 +161,15 @@ public:
*prev= *last;
last= prev;
}
+ inline void prepand(base_list *list)
+ {
+ if (!list->is_empty())
+ {
+ *list->last= first;
+ first= list->first;
+ elements+= list->elements;
+ }
+ }
inline list_node* last_node() { return *last; }
inline list_node* first_node() { return first;}
inline void *head() { return first->info; }
@@ -273,6 +282,7 @@ public:
inline T* pop() {return (T*) base_list::pop(); }
inline void concat(List<T> *list) { base_list::concat(list); }
inline void disjoin(List<T> *list) { base_list::disjoin(list); }
+ inline void prepand(List<T> *list) { base_list::prepand(list); }
void delete_elements(void)
{
list_node *element,*next;