#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
Go to the source code of this file.
◆ add_relation()
void add_relation |
( |
unsigned long |
id1, |
|
|
unsigned long |
id2 |
|
) |
| |
◆ count_items()
static int count_items |
( |
struct item * |
unused | ) |
|
|
static |
◆ detect_loop()
static int detect_loop |
( |
struct item * |
k | ) |
|
|
static |
◆ get_sorted_ids()
unsigned long* get_sorted_ids |
( |
void |
| ) |
|
◆ new_item()
static struct item* new_item |
( |
unsigned long |
id | ) |
|
|
static |
◆ record_relation()
static void record_relation |
( |
struct item * |
j, |
|
|
struct item * |
k |
|
) |
| |
|
static |
◆ recurse_tree()
static int recurse_tree |
( |
struct item * |
root_node, |
|
|
int(*)(struct item *) |
action |
|
) |
| |
|
static |
◆ scan_zeros()
static int scan_zeros |
( |
struct item * |
k | ) |
|
|
static |
◆ search_item()
static struct item* search_item |
( |
unsigned long |
id | ) |
|
|
static |
◆ tsort()
◆ walk_tree()
static void walk_tree |
( |
struct item * |
root_node, |
|
|
int(*)(struct item *) |
action |
|
) |
| |
|
static |
◆ head
◆ ids
unsigned long* ids = NULL |
|
static |
◆ items_to_clean
◆ loop
◆ n_ids
◆ root
◆ succs_to_clean
◆ zeros
struct item* zeros = NULL |
|
static |