This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | st_list |
Defines | |
| #define | list_rest(a) ((a)->next) |
| #define | list_push(a, b) (a)=list_cons((b),(a)) |
| #define | list_pop(A) {LIST *old=(A); (A)=list_delete(old,old) ; my_free((gptr) old,MYF(MY_FAE)); } |
Typedefs | |
| typedef st_list | LIST |
| typedef int(*) | list_walk_action (void *, void *) |
Functions | |
| LIST * | list_add (LIST *root, LIST *element) |
| LIST * | list_delete (LIST *root, LIST *element) |
| LIST * | list_cons (void *data, LIST *root) |
| LIST * | list_reverse (LIST *root) |
| void | list_free (LIST *root, unsigned int free_data) |
| unsigned int | list_length (LIST *) |
| int | list_walk (LIST *, list_walk_action action, gptr argument) |
| #define list_rest | ( | a | ) | ((a)->next) |
Definition at line 39 of file my_list.h.
Referenced by display_table_locks(), list_walk(), and send_fields().
| typedef int(*) list_walk_action(void *, void *) |
Definition at line 28 of file list.c.
References DBUG_ENTER, DBUG_PRINT, DBUG_RETURN, st_list::next, and st_list::prev.
Referenced by ftb_query_add_word(), Guardian_thread::guard(), heap_open(), list_cons(), myrg_open(), mysql_reconnect(), mysql_stmt_init(), Show_instance_log_files::write_header(), Show_instance_log::write_header(), Show_instance_options::write_header(), Show_instance_status::write_header(), and Show_instances::write_header().
00029 { 00030 DBUG_ENTER("list_add"); 00031 DBUG_PRINT("enter",("root: 0x%lx element: 0x%lx", root, element)); 00032 if (root) 00033 { 00034 if (root->prev) /* If add in mid of list */ 00035 root->prev->next= element; 00036 element->prev=root->prev; 00037 root->prev=element; 00038 } 00039 else 00040 element->prev=0; 00041 element->next=root; 00042 DBUG_RETURN(element); /* New root */ 00043 }
Here is the caller graph for this function:

Definition at line 72 of file list.c.
References st_list::data, list(), list_add(), MY_FAE, my_malloc(), and MYF.
00073 { 00074 LIST *new_charset=(LIST*) my_malloc(sizeof(LIST),MYF(MY_FAE)); 00075 if (!new_charset) 00076 return 0; 00077 new_charset->data=data; 00078 return list_add(list,new_charset); 00079 }
Here is the call graph for this function:

Definition at line 46 of file list.c.
References st_list::next, and st_list::prev.
Referenced by hp_close(), hp_free(), mi_close(), myrg_close(), mysql_stmt_close(), Guardian_thread::process_instance(), Guardian_thread::stop_guard(), and Guardian_thread::stop_instances().
00047 { 00048 if (element->prev) 00049 element->prev->next=element->next; 00050 else 00051 root=element->next; 00052 if (element->next) 00053 element->next->prev=element->prev; 00054 return root; 00055 }
Here is the caller graph for this function:

| void list_free | ( | LIST * | root, | |
| unsigned int | free_data | |||
| ) |
Definition at line 58 of file list.c.
References st_list::data, my_free, MYF, and st_list::next.
00059 { 00060 LIST *next; 00061 while (root) 00062 { 00063 next=root->next; 00064 if (free_data) 00065 my_free((gptr) root->data,MYF(0)); 00066 my_free((gptr) root,MYF(0)); 00067 root=next; 00068 } 00069 }
| unsigned int list_length | ( | LIST * | ) |
Definition at line 97 of file list.c.
Referenced by _ftb_check_phrase(), and send_fields().
00098 { 00099 uint count; 00100 for (count=0 ; list ; list=list->next, count++) ; 00101 return count; 00102 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 82 of file list.c.
References st_list::next, and st_list::prev.
00083 { 00084 LIST *last; 00085 00086 last=root; 00087 while (root) 00088 { 00089 last=root; 00090 root=root->next; 00091 last->next=last->prev; 00092 last->prev=root; 00093 } 00094 return last; 00095 }
| int list_walk | ( | LIST * | , | |
| list_walk_action | action, | |||
| gptr | argument | |||
| ) |
Definition at line 105 of file list.c.
References error, list(), and list_rest.
00106 { 00107 int error=0; 00108 while (list) 00109 { 00110 if ((error = (*action)(list->data,argument))) 00111 return error; 00112 list=list_rest(list); 00113 } 00114 return 0; 00115 }
Here is the call graph for this function:

1.4.7

