MySQL 8.3.0
Source Code Documentation
list.cc File Reference

Code for handling double-linked lists in C. More...

#include <sys/types.h>
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_list.h"
#include "my_sys.h"
#include "mysql/service_mysql_alloc.h"
#include "mysys/mysys_priv.h"

Functions

LISTlist_add (LIST *root, LIST *element)
 
LISTlist_delete (LIST *root, LIST *element)
 
void list_free (LIST *root, uint free_data)
 
LISTlist_cons (void *data, LIST *list)
 
LISTlist_reverse (LIST *root)
 
uint list_length (LIST *list)
 
int list_walk (LIST *list, list_walk_action action, uchar *argument)
 

Detailed Description

Code for handling double-linked lists in C.

Function Documentation

◆ list_add()

LIST * list_add ( LIST root,
LIST element 
)

◆ list_cons()

LIST * list_cons ( void *  data,
LIST list 
)

◆ list_delete()

LIST * list_delete ( LIST root,
LIST element 
)

◆ list_free()

void list_free ( LIST root,
uint  free_data 
)

◆ list_length()

uint list_length ( LIST list)

◆ list_reverse()

LIST * list_reverse ( LIST root)

◆ list_walk()

int list_walk ( LIST list,
list_walk_action  action,
uchar argument 
)