diff libmlk-rpg/rpg/inventory.h @ 298:196264679079

misc: remove usage of bool
author David Demelier <markand@malikania.fr>
date Wed, 10 Mar 2021 18:49:08 +0100
parents 08ab73b32832
children d01e83210ca2
line wrap: on
line diff
--- a/libmlk-rpg/rpg/inventory.h	Wed Mar 10 18:49:00 2021 +0100
+++ b/libmlk-rpg/rpg/inventory.h	Wed Mar 10 18:49:08 2021 +0100
@@ -19,8 +19,6 @@
 #ifndef MOLKO_RPG_INVENTORY_H
 #define MOLKO_RPG_INVENTORY_H
 
-#include <stdbool.h>
-
 #include <core/core.h>
 
 #define INVENTORY_ITEM_MAX (512)
@@ -38,11 +36,11 @@
 
 CORE_BEGIN_DECLS
 
-bool
-inventory_add(struct inventory *iv, const struct item *item, unsigned int amount);
+int
+inventory_add(struct inventory *, const struct item *, unsigned int);
 
 void
-inventory_consume(struct inventory *iv, const struct item *item, unsigned int amount);
+inventory_consume(struct inventory *, const struct item *, unsigned int);
 
 CORE_END_DECLS