Skip to content

Commit 0ba75c1

Browse files
authored
Improve formatting (#107)
Signed-off-by: Krisztian Szilvasi <[email protected]>
1 parent 4b15a2e commit 0ba75c1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
---
66
BasedOnStyle: LLVM
7-
AlignConsecutiveMacros: AcrossComments
7+
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
88
AllowShortBlocksOnASingleLine: Never
99
AllowShortCaseLabelsOnASingleLine: false
1010
AllowShortEnumsOnASingleLine: false

src/ocre/sm/sm.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
#define SM_RETURN_IF_EVENT_HANDLED(o) \
1616
if (((struct sm_ctx *)o)->event.handled) \
1717
return SMF_EVENT_HANDLED
18-
#define SM_MARK_EVENT_HANDLED(o) ((struct sm_ctx *)o)->event.handled = true
19-
#define SM_GET_EVENT(o) ((struct sm_ctx *)o)->event.msg
20-
#define SM_GET_CUSTOM_CTX(o) ((struct sm_ctx *)o)->custom_ctx
18+
#define SM_MARK_EVENT_HANDLED(o) ((struct sm_ctx *)o)->event.handled = true
19+
#define SM_GET_EVENT(o) ((struct sm_ctx *)o)->event.msg
20+
#define SM_GET_CUSTOM_CTX(o) ((struct sm_ctx *)o)->custom_ctx
2121

2222
#define EVENT_LOG_MSG(fmt, event) LOG_DBG(fmt, event)
2323

src/shared/platform/posix/core_internal.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define CONFIG_OCRE_TIMER
2828

2929
// Base paths for the application
30-
#define OCRE_BASE_PATH "./ocre_data" /*!< Base directory for Ocre resources */
30+
#define OCRE_BASE_PATH "./ocre_data" /*!< Base directory for Ocre resources */
3131

3232
#define APP_RESOURCE_PATH OCRE_BASE_PATH "/images" /*!< Path to container images */
3333
#define PACKAGE_BASE_PATH OCRE_BASE_PATH "/manifests" /*!< Path to package manifests */
@@ -129,12 +129,12 @@ void set_argc(int argc);
129129
/**
130130
* @brief Maximum length for SHA256 string representations.
131131
*/
132-
#define OCRE_SHA256_LEN 128
132+
#define OCRE_SHA256_LEN 128
133133

134134
/**
135135
* @brief Maximum number of containers supported.
136136
*/
137-
#define CONFIG_MAX_CONTAINERS 10
137+
#define CONFIG_MAX_CONTAINERS 10
138138

139139
/**
140140
* @brief Default stack size for container supervisor threads (in bytes).
@@ -151,12 +151,12 @@ void set_argc(int argc);
151151
/**
152152
* @brief Default heap buffer size for WAMR (in bytes).
153153
*/
154-
#define CONFIG_OCRE_WAMR_HEAP_BUFFER_SIZE 512000
154+
#define CONFIG_OCRE_WAMR_HEAP_BUFFER_SIZE 512000
155155

156156
/**
157157
* @brief Default heap size for a container (in bytes).
158158
*/
159-
#define CONFIG_OCRE_CONTAINER_DEFAULT_HEAP_SIZE 4096
159+
#define CONFIG_OCRE_CONTAINER_DEFAULT_HEAP_SIZE 4096
160160

161161
/**
162162
* @brief Default stack size for a container (in bytes).
@@ -166,7 +166,7 @@ void set_argc(int argc);
166166
/**
167167
* @brief Default stack size for container threads (in bytes).
168168
*/
169-
#define CONTAINER_THREAD_STACK_SIZE 1024 * 1024
169+
#define CONTAINER_THREAD_STACK_SIZE 1024 * 1024
170170

171171
/**
172172
* @brief Structure representing a thread in the Ocre runtime.

0 commit comments

Comments
 (0)