Commit bd932e60 authored by Niels Möller's avatar Niels Möller
Browse files

* src/resource.c (make_resource_list): Renamed functions, was

empty_resource_list. Updated all callers.
(dont_free_live_resource): #if:ed out check of gc_final_p.

Rev: src/resource.c:1.21
Rev: src/resource.h:1.13
parent e7ee6621
......@@ -63,7 +63,7 @@ dont_free_live_resource(int alive)
{
if (alive)
{
#if DEBUG_ALLOC
#if 0 && DEBUG_ALLOC
if (gc_final_p)
verbose("dont_free_live_resource: "
"final collection of a live resource!\n");
......@@ -187,12 +187,12 @@ do_kill_all(struct resource *s)
}
struct resource_list *
empty_resource_list(void)
make_resource_list(void)
{
NEW(concrete_resource_list, self);
init_resource(&self->super.super, do_kill_all);
trace("empty_resource_list: created %xi\n", self);
trace("make_resource_list: created %xi\n", self);
self->super.remember = do_remember_resource;
self->q = NULL;
......
......@@ -64,8 +64,7 @@ init_resource(struct resource *self,
#define REMEMBER_RESOURCE(l, r) ((l)->remember((l), (r)))
#define KILL_RESOURCE_LIST(l) KILL_RESOURCE(&(l)->super)
/* FIXME: Rename to make_resource_list */
/* Allocates an empty list. */
struct resource_list *empty_resource_list(void);
struct resource_list *make_resource_list(void);
#endif /* LSH_RESOURCE_H_INCLUDED */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment