diff options
author | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2016-12-01 03:51:24 +0100 |
---|---|---|
committer | YamaArashi <YamaArashi@users.noreply.github.com> | 2016-11-30 18:51:24 -0800 |
commit | 4258e60771aa9fdabd678930eca534423bd371b8 (patch) | |
tree | ecca2ee7641abc0562f39b6c7dd907af2184e102 /src/item.c | |
parent | 831f8cd4fd94613d6b52d87df1b4903bedfaa717 (diff) |
Declare more non-static functions in header files (#111)
* Declare more non-static functions in header files
* Use `(void)` for functions without arguments.
* Move global-included data to seperate headers
* Don't import types or global in header
* Fix fieldmap imports
* Revert in-code changes
* Add missing newlines
Diffstat (limited to 'src/item.c')
-rw-r--r-- | src/item.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/item.c b/src/item.c index 8bc0cf0f0..84ab4c1c8 100644 --- a/src/item.c +++ b/src/item.c @@ -1,5 +1,5 @@ #include "global.h" -#include "berry.h" +#include "item.h" #include "string_util.h" extern struct Berry *GetBerryInfo(u8 berry); @@ -7,8 +7,6 @@ extern struct Berry *GetBerryInfo(u8 berry); extern u8 gOtherText_Berry2[]; extern u8 gUnknown_02038560; -typedef void (*ItemUseFunc)(u8); - struct Item { u8 name[14]; @@ -46,8 +44,6 @@ enum KEYITEMS_POCKET }; -struct Item *ItemId_GetItem(u16); -u8 ItemId_GetPocket(u16); static void CompactPCItems(void); void CopyItemName(u16 itemId, u8 *string) |