Staticized some variables and functions.

This commit is contained in:
Martin Mares 1998-05-24 14:46:20 +00:00
parent 315aba32b3
commit d4bc8dc000
3 changed files with 13 additions and 13 deletions

View file

@ -27,7 +27,7 @@ struct mempool {
void mp_free(resource *); void mp_free(resource *);
void mp_dump(resource *); void mp_dump(resource *);
struct resclass mp_class = { static struct resclass mp_class = {
"MemPool", "MemPool",
sizeof(struct mempool), sizeof(struct mempool),
mp_free, mp_free,

View file

@ -17,8 +17,8 @@ struct pool {
list inside; list inside;
}; };
void pool_dump(resource *); static void pool_dump(resource *);
void pool_free(resource *); static void pool_free(resource *);
static struct resclass pool_class = { static struct resclass pool_class = {
"Pool", "Pool",
@ -39,7 +39,7 @@ rp_new(pool *p)
return z; return z;
} }
void static void
pool_free(resource *P) pool_free(resource *P)
{ {
pool *p = (pool *) P; pool *p = (pool *) P;
@ -54,7 +54,7 @@ pool_free(resource *P)
} }
} }
void static void
pool_dump(resource *P) pool_dump(resource *P)
{ {
pool *p = (pool *) P; pool *p = (pool *) P;
@ -125,18 +125,18 @@ struct mblock {
byte data[0]; byte data[0];
}; };
void mbl_free(resource *r) static void mbl_free(resource *r)
{ {
} }
void mbl_debug(resource *r) static void mbl_debug(resource *r)
{ {
struct mblock *m = (struct mblock *) r; struct mblock *m = (struct mblock *) r;
debug("(size=%d)\n", m->size); debug("(size=%d)\n", m->size);
} }
struct resclass mb_class = { static struct resclass mb_class = {
"Memory", "Memory",
0, 0,
mbl_free, mbl_free,

View file

@ -27,10 +27,10 @@ struct slab {
list objs; list objs;
}; };
void slab_free(resource *r); static void slab_free(resource *r);
void slab_dump(resource *r); static void slab_dump(resource *r);
struct resclass sl_class = { static struct resclass sl_class = {
"Slab", "Slab",
sizeof(struct slab), sizeof(struct slab),
slab_free, slab_free,
@ -64,7 +64,7 @@ sl_free(slab *s, void *oo)
xfree(o); xfree(o);
} }
void static void
slab_free(resource *r) slab_free(resource *r)
{ {
slab *s = (slab *) r; slab *s = (slab *) r;
@ -74,7 +74,7 @@ slab_free(resource *r)
xfree(o); xfree(o);
} }
void static void
slab_dump(resource *r) slab_dump(resource *r)
{ {
slab *s = (slab *) r; slab *s = (slab *) r;