diff minijss/jloadxm.c @ 2586:9807ae37ad69

Require stdbool.h, we require C11 now.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 08 Dec 2022 15:59:22 +0200
parents 0c0576544d41
children
line wrap: on
line diff
--- a/minijss/jloadxm.c	Thu Dec 08 15:56:36 2022 +0200
+++ b/minijss/jloadxm.c	Thu Dec 08 15:59:22 2022 +0200
@@ -311,7 +311,7 @@
         XMPattern xmP;
         off_t remainder, pos = dmftell(inFile);
         Uint32 headSize = 0;
-        BOOL ret = FALSE;
+        bool ret = false;
         int res;
 
         // Get the pattern header size and packing
@@ -709,20 +709,20 @@
 }
 
 
-static BOOL jssXMLoadEnvelopePoints(DMResource *inFile, XMEnvelope *env)
+static bool jssXMLoadEnvelopePoints(DMResource *inFile, XMEnvelope *env)
 {
     int i;
     for (i = 0; i < XM_MaxEnvPoints; i++)
     {
         if (!dmf_read_le16(inFile, &(env->points[i].frame)) ||
             !dmf_read_le16(inFile, &(env->points[i].value)))
-            return FALSE;
+            return false;
     }
-    return TRUE;
+    return true;
 }
 
 
-static BOOL jssXMLoadEnvelopeData(DMResource *inFile, XMEnvelope *env)
+static bool jssXMLoadEnvelopeData(DMResource *inFile, XMEnvelope *env)
 {
     return
         dmf_read_byte(inFile, &(env->sustain)) &&
@@ -918,7 +918,7 @@
 
 /* Load XM-format module from given file-stream
  */
-int jssLoadXM(DMResource *inFile, JSSModule **pmodule, BOOL probe)
+int jssLoadXM(DMResource *inFile, JSSModule **pmodule, bool probe)
 {
     JSSModule *module;
     XMHeader xmH;