Funny. It turns out that building_list is totally not a thing and never was.

This commit is contained in:
Enno Rehling 2011-02-25 07:41:51 -08:00
parent 14dff6cdfa
commit 5497875c93
3 changed files with 0 additions and 30 deletions

View file

@ -223,7 +223,6 @@ tolua_building_open(lua_State* L)
{
/* register user types */
tolua_usertype(L, TOLUA_CAST "building");
tolua_usertype(L, TOLUA_CAST "building_list");
tolua_module(L, NULL, 0);
tolua_beginmodule(L, NULL);

View file

@ -429,27 +429,6 @@ read_building_reference(struct storage * store)
return result;
}
void
free_buildinglist(building_list *blist)
{
while (blist) {
building_list * rl2 = blist->next;
free(blist);
blist = rl2;
}
}
void
add_buildinglist(building_list **blist, building *b)
{
building_list *rl2 = (building_list*)malloc(sizeof(building_list));
rl2->data = b;
rl2->next = *blist;
*blist = rl2;
}
building *
new_building(const struct building_type * btype, region * r, const struct locale * lang)
{

View file

@ -110,14 +110,6 @@ typedef struct building {
unsigned int flags;
} building;
typedef struct building_list {
struct building_list * next;
building * data;
} building_list;
extern void free_buildinglist(building_list *bl);
extern void add_buildinglist(building_list **bl, struct building *b);
extern struct attrib_type at_building_generic_type;
extern const char * buildingtype(const building_type * btype, const struct building * b, int bsize);
extern const char * write_buildingname(const building * b, char * ibuf, size_t size);