Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

---
BasedOnStyle: LLVM
AlignConsecutiveMacros: AcrossComments
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
Expand Down
6 changes: 3 additions & 3 deletions src/ocre/sm/sm.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#define SM_RETURN_IF_EVENT_HANDLED(o) \
if (((struct sm_ctx *)o)->event.handled) \
return SMF_EVENT_HANDLED
#define SM_MARK_EVENT_HANDLED(o) ((struct sm_ctx *)o)->event.handled = true
#define SM_GET_EVENT(o) ((struct sm_ctx *)o)->event.msg
#define SM_GET_CUSTOM_CTX(o) ((struct sm_ctx *)o)->custom_ctx
#define SM_MARK_EVENT_HANDLED(o) ((struct sm_ctx *)o)->event.handled = true
#define SM_GET_EVENT(o) ((struct sm_ctx *)o)->event.msg
#define SM_GET_CUSTOM_CTX(o) ((struct sm_ctx *)o)->custom_ctx

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

Expand Down
12 changes: 6 additions & 6 deletions src/shared/platform/posix/core_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define CONFIG_OCRE_TIMER

// Base paths for the application
#define OCRE_BASE_PATH "./ocre_data" /*!< Base directory for Ocre resources */
#define OCRE_BASE_PATH "./ocre_data" /*!< Base directory for Ocre resources */

#define APP_RESOURCE_PATH OCRE_BASE_PATH "/images" /*!< Path to container images */
#define PACKAGE_BASE_PATH OCRE_BASE_PATH "/manifests" /*!< Path to package manifests */
Expand Down Expand Up @@ -129,12 +129,12 @@ void set_argc(int argc);
/**
* @brief Maximum length for SHA256 string representations.
*/
#define OCRE_SHA256_LEN 128
#define OCRE_SHA256_LEN 128

/**
* @brief Maximum number of containers supported.
*/
#define CONFIG_MAX_CONTAINERS 10
#define CONFIG_MAX_CONTAINERS 10

/**
* @brief Default stack size for container supervisor threads (in bytes).
Expand All @@ -151,12 +151,12 @@ void set_argc(int argc);
/**
* @brief Default heap buffer size for WAMR (in bytes).
*/
#define CONFIG_OCRE_WAMR_HEAP_BUFFER_SIZE 512000
#define CONFIG_OCRE_WAMR_HEAP_BUFFER_SIZE 512000

/**
* @brief Default heap size for a container (in bytes).
*/
#define CONFIG_OCRE_CONTAINER_DEFAULT_HEAP_SIZE 4096
#define CONFIG_OCRE_CONTAINER_DEFAULT_HEAP_SIZE 4096

/**
* @brief Default stack size for a container (in bytes).
Expand All @@ -166,7 +166,7 @@ void set_argc(int argc);
/**
* @brief Default stack size for container threads (in bytes).
*/
#define CONTAINER_THREAD_STACK_SIZE 1024 * 1024
#define CONTAINER_THREAD_STACK_SIZE 1024 * 1024

/**
* @brief Structure representing a thread in the Ocre runtime.
Expand Down