61 |
* i) id string id |
* i) id string id |
62 |
*/ |
*/ |
63 |
static void |
static void |
64 |
put_pool(head, name, contents, id) |
put_pool(struct pool *head, const char *name, const char *contents, int id) |
|
struct pool *head; |
|
|
const char *name; |
|
|
const char *contents; |
|
|
int id; |
|
65 |
{ |
{ |
66 |
struct data *data; |
struct data *data; |
67 |
|
|
91 |
* r) descriptor |
* r) descriptor |
92 |
*/ |
*/ |
93 |
static struct data * |
static struct data * |
94 |
get_pool(head, name) |
get_pool(struct pool *head, const char *name) |
|
struct pool *head; |
|
|
const char *name; |
|
95 |
{ |
{ |
96 |
struct data *data; |
struct data *data; |
97 |
|
|
107 |
* r) descriptor |
* r) descriptor |
108 |
*/ |
*/ |
109 |
static struct data * |
static struct data * |
110 |
first_data(head) |
first_data(struct pool *head) |
|
struct pool *head; |
|
111 |
{ |
{ |
112 |
return SLIST_FIRST(head); |
return SLIST_FIRST(head); |
113 |
} |
} |
117 |
* r) descriptor |
* r) descriptor |
118 |
*/ |
*/ |
119 |
static struct data * |
static struct data * |
120 |
next_data(data) |
next_data(struct data *data) |
|
struct data *data; |
|
121 |
{ |
{ |
122 |
return SLIST_NEXT(data, next); |
return SLIST_NEXT(data, next); |
123 |
} |
} |
150 |
* i) id path id |
* i) id path id |
151 |
*/ |
*/ |
152 |
void |
void |
153 |
put_inc(file, path, id) |
put_inc(const char *file, const char *path, int id) |
|
const char *file; |
|
|
const char *path; |
|
|
int id; |
|
154 |
{ |
{ |
155 |
put_pool(head_inc, file, path, id); |
put_pool(head_inc, file, path, id); |
156 |
} |
} |
161 |
* r) descriptor |
* r) descriptor |
162 |
*/ |
*/ |
163 |
struct data * |
struct data * |
164 |
get_inc(name) |
get_inc(const char *name) |
|
const char *name; |
|
165 |
{ |
{ |
166 |
return get_pool(head_inc, name); |
return get_pool(head_inc, name); |
167 |
} |
} |
195 |
* i) id path id |
* i) id path id |
196 |
*/ |
*/ |
197 |
void |
void |
198 |
put_included(file, path) |
put_included(const char *file, const char *path) |
|
const char *file; |
|
|
const char *path; |
|
199 |
{ |
{ |
200 |
put_pool(head_included, file, path, 0); |
put_pool(head_included, file, path, 0); |
201 |
} |
} |
206 |
* r) descriptor |
* r) descriptor |
207 |
*/ |
*/ |
208 |
struct data * |
struct data * |
209 |
get_included(name) |
get_included(const char *name) |
|
const char *name; |
|
210 |
{ |
{ |
211 |
return get_pool(head_included, name); |
return get_pool(head_included, name); |
212 |
} |
} |