1 #include <grass/dbmi.h>
4 #define NONE ( (dbAddress) NULL )
6 static dbAddress *list =
NONE;
7 static dbToken
count = 0;
17 if (token >= 0 && token <
count)
30 if (token >= 0 && token <
count)
45 for (token = 0; token <
count; token++)
46 if (list[token] ==
NONE) {
47 list[token] = address;
51 p = (dbAddress *)
db_realloc((
void *)list,
sizeof(*list) * (count + 1));
57 list[token] = address;
dbAddress db_find_token(dbToken token)
void db_drop_token(dbToken token)
dbToken db_new_token(dbAddress address)
void * db_realloc(void *s, int n)