forked from github/server
Funny. It turns out that building_list is totally not a thing and never was.
This commit is contained in:
parent
14dff6cdfa
commit
5497875c93
3 changed files with 0 additions and 30 deletions
|
@ -223,7 +223,6 @@ tolua_building_open(lua_State* L)
|
||||||
{
|
{
|
||||||
/* register user types */
|
/* register user types */
|
||||||
tolua_usertype(L, TOLUA_CAST "building");
|
tolua_usertype(L, TOLUA_CAST "building");
|
||||||
tolua_usertype(L, TOLUA_CAST "building_list");
|
|
||||||
|
|
||||||
tolua_module(L, NULL, 0);
|
tolua_module(L, NULL, 0);
|
||||||
tolua_beginmodule(L, NULL);
|
tolua_beginmodule(L, NULL);
|
||||||
|
|
|
@ -429,27 +429,6 @@ read_building_reference(struct storage * store)
|
||||||
return result;
|
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 *
|
building *
|
||||||
new_building(const struct building_type * btype, region * r, const struct locale * lang)
|
new_building(const struct building_type * btype, region * r, const struct locale * lang)
|
||||||
{
|
{
|
||||||
|
|
|
@ -110,14 +110,6 @@ typedef struct building {
|
||||||
unsigned int flags;
|
unsigned int flags;
|
||||||
} building;
|
} 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 struct attrib_type at_building_generic_type;
|
||||||
extern const char * buildingtype(const building_type * btype, const struct building * b, int bsize);
|
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);
|
extern const char * write_buildingname(const building * b, char * ibuf, size_t size);
|
||||||
|
|
Loading…
Reference in a new issue