diff libmlk-core/core/script.c @ 298:196264679079

misc: remove usage of bool
author David Demelier <markand@malikania.fr>
date Wed, 10 Mar 2021 18:49:08 +0100
parents 71b3b7036de7
children d01e83210ca2
line wrap: on
line diff
--- a/libmlk-core/core/script.c	Wed Mar 10 18:49:00 2021 +0100
+++ b/libmlk-core/core/script.c	Wed Mar 10 18:49:08 2021 +0100
@@ -39,7 +39,7 @@
 	script_handle(a->data, ev);
 }
 
-static bool
+static int
 update(struct action *a, unsigned int ticks)
 {
 	return script_update(a->data, ticks);
@@ -65,7 +65,7 @@
 	memset(s, 0, sizeof (*s));
 }
 
-bool
+int
 script_append(struct script *s, struct action *a)
 {
 	assert(s);
@@ -76,7 +76,7 @@
 
 	s->actions[s->actionsz++] = a;
 
-	return true;
+	return 0;
 }
 
 void
@@ -91,7 +91,7 @@
 		action_handle(a, ev);
 }
 
-bool
+int
 script_update(struct script *s, unsigned int ticks)
 {
 	assert(s);
@@ -99,7 +99,7 @@
 	struct action *a = current(s);
 
 	if (!a)
-		return true;
+		return 1;
 
 	if (action_update(a, ticks)) {
 		action_end(a);
@@ -120,7 +120,7 @@
 		action_draw(a);
 }
 
-bool
+int
 script_completed(const struct script *s)
 {
 	assert(s);