Return to job.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.7, 2009/10/21 07:24:23 | version 1.8, 2009/10/21 18:20:16 | ||
---|---|---|---|
|
|
||
RB_INIT(jobs); | RB_INIT(jobs); | ||
} | } | ||
/* Count the number of jobs in a tree. */ | |||
u_int | |||
job_tree_size(struct jobs *jobs) | |||
{ | |||
struct job *job; | |||
u_int n; | |||
n = 0; | |||
RB_FOREACH(job, jobs, jobs) | |||
n++; | |||
return (n); | |||
} | |||
/* Destroy a job tree. */ | /* Destroy a job tree. */ | ||
void | void | ||
job_tree_free(struct jobs *jobs) | job_tree_free(struct jobs *jobs) |