comparison src/dmtimeline.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 7190f4fbc0dd
children
comparison
equal deleted inserted replaced
2585:ef6c826c5b7a 2586:9807ae37ad69
5 * (C) Copyright 2012-2015 Tecnic Software productions (TNSP) 5 * (C) Copyright 2012-2015 Tecnic Software productions (TNSP)
6 */ 6 */
7 #include "dmengine.h" 7 #include "dmengine.h"
8 8
9 9
10 static BOOL dmLoadFloatValue(DMResource *res, DMFloat *val) 10 static bool dmLoadFloatValue(DMResource *res, DMFloat *val)
11 { 11 {
12 char tmp[DT_FLOAT_STORE_SIZE + 1]; 12 char tmp[DT_FLOAT_STORE_SIZE + 1];
13 if (!dmf_read_str(res, &tmp, DT_FLOAT_STORE_SIZE)) 13 if (!dmf_read_str(res, &tmp, DT_FLOAT_STORE_SIZE))
14 return FALSE; 14 return false;
15 15
16 tmp[DT_FLOAT_STORE_SIZE] = 0; 16 tmp[DT_FLOAT_STORE_SIZE] = 0;
17 *val = atof(tmp); 17 *val = atof(tmp);
18 return TRUE; 18 return true;
19 } 19 }
20 20
21 21
22 static int dmLoadTimelinePoints(DMResource *res, DMTimelinePoints *points, int type) 22 static int dmLoadTimelinePoints(DMResource *res, DMTimelinePoints *points, int type)
23 { 23 {