blob: daad451b27c3827c1d9305a5f762bc6eb0ee0078 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "vtable.h"
Vtable *___vtables = NULL;
unsigned long ___vtable_i = 0;
Vtable *
vtable_get(const char *name)
{
if (name == NULL) {
plog("name is NULL");
return NULL;
}
foreach (e, ___vtables)
if (strcasecmp(e->name, name) == 0)
return e;
return NULL;
}
|