Super-Rogue: convert to ANSI-style function declarations.
This fixes most of the build warnings.
This commit is contained in:
parent
0f87d5b4d8
commit
59f448e92e
33 changed files with 783 additions and 518 deletions
|
|
@ -23,8 +23,8 @@
|
|||
* Takes an item out of whatever linked list it might be in
|
||||
*/
|
||||
|
||||
_detach(list, item)
|
||||
struct linked_list **list, *item;
|
||||
void
|
||||
_detach(struct linked_list **list, struct linked_list *item)
|
||||
{
|
||||
if (*list == item)
|
||||
*list = next(item);
|
||||
|
|
@ -39,8 +39,8 @@ struct linked_list **list, *item;
|
|||
/*
|
||||
* _attach: add an item to the head of a list
|
||||
*/
|
||||
_attach(list, item)
|
||||
struct linked_list **list, *item;
|
||||
void
|
||||
_attach(struct linked_list **list, struct linked_list *item)
|
||||
{
|
||||
if (*list != NULL) {
|
||||
item->l_next = *list;
|
||||
|
|
@ -57,8 +57,8 @@ struct linked_list **list, *item;
|
|||
/*
|
||||
* _free_list: Throw the whole blamed thing away
|
||||
*/
|
||||
_free_list(ptr)
|
||||
struct linked_list **ptr;
|
||||
void
|
||||
_free_list(struct linked_list **ptr)
|
||||
{
|
||||
register struct linked_list *item;
|
||||
|
||||
|
|
@ -72,8 +72,8 @@ struct linked_list **ptr;
|
|||
/*
|
||||
* discard: free up an item
|
||||
*/
|
||||
discard(item)
|
||||
struct linked_list *item;
|
||||
void
|
||||
discard(struct linked_list *item)
|
||||
{
|
||||
total -= 2;
|
||||
FREE(item->l_data);
|
||||
|
|
@ -84,8 +84,7 @@ struct linked_list *item;
|
|||
* new_item: get a new item with a specified size
|
||||
*/
|
||||
struct linked_list *
|
||||
new_item(size)
|
||||
int size;
|
||||
new_item(int size)
|
||||
{
|
||||
register struct linked_list *item;
|
||||
|
||||
|
|
@ -96,8 +95,7 @@ int size;
|
|||
}
|
||||
|
||||
char *
|
||||
new(size)
|
||||
int size;
|
||||
new(int size)
|
||||
{
|
||||
register char *space = ALLOC(size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue