Chimera: chimera_0-8/include/dllist.h File Reference

- Main Page
- Classes
- Files
- Directories

- File List
- File Members

# dllist.h File Reference

`#include "jval.h"`

Go to the source code of this file.

## Classes
struct | dllist
## Defines
#define | dll_first(d) ((d)->flink)
#define | dll_next(d) ((d)->flink)
#define | dll_last(d) ((d)->blink)
#define | dll_prev(d) ((d)->blink)
#define | dll_nil(d) (d)
#define | dll_traverse(ptr, list) for (ptr = list->flink; ptr != list; ptr = ptr->flink)
#define | dll_rtraverse(ptr, list) for (ptr = list->blink; ptr != list; ptr = ptr->blink)
## Typedefs
typedef dllist * | Dllist
## Functions
Dllist | new_dllist ()
void | free_dllist (Dllist)
void | dll_append (Dllist, Jval)
void | dll_prepend (Dllist, Jval)
void | dll_insert_b (Dllist, Jval)
void | dll_insert_a (Dllist, Jval)
void | dll_delete_node (Dllist)
int | dll_empty (Dllist)
Jval | dll_val (Dllist)

## Define Documentation

#define dll_first | ( | d |  | ) | ((d)->flink)

#define dll_last | ( | d |  | ) | ((d)->blink)

#define dll_next | ( | d |  | ) | ((d)->flink)

#define dll_nil | ( | d |  | ) | (d)

#define dll_prev | ( | d |  | ) | ((d)->blink)

#define dll_rtraverse | ( | ptr,
|  | list |  | ) | for (ptr = list->blink; ptr != list; ptr = ptr->blink)

#define dll_traverse | ( | ptr,
|  | list |  | ) | for (ptr = list->flink; ptr != list; ptr = ptr->flink)

## Typedef Documentation

typedef struct dllist * Dllist

## Function Documentation

void dll_append | ( | Dllist | ,
|  | Jval |
| ) |

void dll_delete_node | ( | Dllist |  | ) |

int dll_empty | ( | Dllist |  | ) |

void dll_insert_a | ( | Dllist | ,
|  | Jval |
| ) |

void dll_insert_b | ( | Dllist | ,
|  | Jval |
| ) |

void dll_prepend | ( | Dllist | ,
|  | Jval |
| ) |

Jval dll_val | ( | Dllist |  | ) |

void free_dllist | ( | Dllist |  | ) |

Dllist new_dllist | ( |  | ) |