Skip to content

Commit ccd047f

Browse files
authored
improve c compliance in headers (#97)
1 parent 51a78cb commit ccd047f

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

ecsact/runtime/common.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ ECSACT_CAST_ID_FN(ecsact_component_like_id, ecsact_component_like_id)
107107
*/
108108
struct ecsact_system_execution_context;
109109

110-
typedef void (*ecsact_system_execution_impl)(ecsact_system_execution_context*);
110+
typedef void (*ecsact_system_execution_impl)(//
111+
struct ecsact_system_execution_context*
112+
);
111113

112114
static const ecsact_system_id ecsact_invalid_system_id = (ecsact_system_id)-1;
113115

ecsact/runtime/definitions.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define ECSACT_DEFINITIONS_H
33

44
#include <stdint.h>
5+
#include <stdbool.h>
56
#include "ecsact/runtime/common.h"
67

78
/**
@@ -22,15 +23,15 @@
2223
* values specified in the `ecsact_builtin_type` enum are valid.
2324
*/
2425
typedef enum ecsact_builtin_type {
25-
ECSACT_BOOL = 0b0000'0000'0000'0001,
26-
ECSACT_I8 = 0b1000'0000'0000'1000,
27-
ECSACT_U8 = 0b0000'0000'0000'1000,
28-
ECSACT_I16 = 0b1000'0000'0001'0000,
29-
ECSACT_U16 = 0b0000'0000'0001'0000,
30-
ECSACT_I32 = 0b1000'0000'0010'0000,
31-
ECSACT_U32 = 0b0000'0000'0010'0000,
32-
ECSACT_F32 = 0b0100'0000'0010'0000,
33-
ECSACT_ENTITY_TYPE = 0b0010'0000'0010'0000,
26+
ECSACT_BOOL = 0b0000000000000001,
27+
ECSACT_I8 = 0b1000000000001000,
28+
ECSACT_U8 = 0b0000000000001000,
29+
ECSACT_I16 = 0b1000000000010000,
30+
ECSACT_U16 = 0b0000000000010000,
31+
ECSACT_I32 = 0b1000000000100000,
32+
ECSACT_U32 = 0b0000000000100000,
33+
ECSACT_F32 = 0b0100000000100000,
34+
ECSACT_ENTITY_TYPE = 0b0010000000100000,
3435
} ecsact_builtin_type;
3536

3637
typedef enum ecsact_type_kind {

0 commit comments

Comments
 (0)