From f7f5db61d35c2e5750807fe83096e2dbf5c305f7 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 1 Nov 2023 11:13:54 +0100 Subject: [PATCH] Fix formatting --- m-core.h | 22 +++++++++++----------- m-worker.h | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/m-core.h b/m-core.h index 3693b803..e7f92ea7 100644 --- a/m-core.h +++ b/m-core.h @@ -4441,19 +4441,19 @@ m_core_parse2_enum (const char str[], const char **endptr) M_BY_NARGS( M_IF(M_GET_PROPERTY(oplist, NOCLEAR))(M_CHAIN_OBJ_A, M_CHAIN_OBJ_B), __VA_ARGS__) \ (name, oplist, __VA_ARGS__) // Need to define an exception handler. Use of M_CHAIN_INIT -#define M_CHAIN_OBJ_B__1(name, oplist, var) \ +#define M_CHAIN_OBJ_B__1(name, oplist, var) \ M_CHAIN_INIT( name, M_CALL_INIT(oplist, var), M_CALL_CLEAR(oplist, var) ) -#define M_CHAIN_OBJ_B__2(name, oplist, var, value) \ - M_IF(M_PARENTHESIS_P(value))(M_CHAIN_OBJ_B__2_WITH, M_CHAIN_OBJ_B__2_SET) \ +#define M_CHAIN_OBJ_B__2(name, oplist, var, value) \ + M_IF(M_PARENTHESIS_P(value))(M_CHAIN_OBJ_B__2_WITH, M_CHAIN_OBJ_B__2_SET) \ (name, oplist, var, value) -#define M_CHAIN_OBJ_B__2_WITH(name, oplist, var, value) \ +#define M_CHAIN_OBJ_B__2_WITH(name, oplist, var, value) \ M_CHAIN_INIT( name, M_CALL_INIT_WITH(oplist, var, value), M_CALL_CLEAR(oplist, var) ) -#define M_CHAIN_OBJ_B__2_SET(name, oplist, var, value) \ +#define M_CHAIN_OBJ_B__2_SET(name, oplist, var, value) \ M_CHAIN_INIT( name, M_CALL_INIT_SET(oplist, var, value), M_CALL_CLEAR(oplist, var) ) // No need to define an exception handler. Just call the INIT function. -#define M_CHAIN_OBJ_A__1(name, oplist, var) \ +#define M_CHAIN_OBJ_A__1(name, oplist, var) \ M_CHAIN_FOR(name, M_CALL_INIT(oplist, var) ) -#define M_CHAIN_OBJ_A__2(name, oplist, var, value) \ +#define M_CHAIN_OBJ_A__2(name, oplist, var, value) \ M_CHAIN_FOR(name, \ M_IF(M_PARENTHESIS_P(value))(M_CALL_INIT_WITH, M_CALL_INIT_SET) \ (oplist, var, value) ) @@ -4478,14 +4478,14 @@ m_core_parse2_enum (const char str[], const char **endptr) } } */ -#define M_ON_EXCEPTION(name, oplist, fix) \ - M_IF(M_GET_PROPERTY(oplist, NOCLEAR))(M_EAT, M_ON_EXCEPTION_B) \ +#define M_ON_EXCEPTION(name, oplist, fix) \ + M_IF(M_GET_PROPERTY(oplist, NOCLEAR))(M_EAT, M_ON_EXCEPTION_B) \ (M_C(m_var_, name), fix) -#define M_ON_EXCEPTION_B(cont, fix) \ +#define M_ON_EXCEPTION_B(cont, fix) \ for(bool cont = true; cont; cont = false) \ M_DEFER_TRY_INJECT_PRE(cont, clear) \ - for( ; cont ; cont = false) \ + for( ; cont ; cont = false) \ M_DEFER_TRY_INJECT_POST(cont, clear) \ for( ; cont; cont = false) diff --git a/m-worker.h b/m-worker.h index e7393599..22a59c77 100644 --- a/m-worker.h +++ b/m-worker.h @@ -192,7 +192,7 @@ typedef struct m_worker_sync_s { #define M_WORK3R_SPAWN_EXTEND_P0__2(field, type) M_OPEXTEND(M_GLOBAL_OPLIST_OR_DEF(type)(), TYPE(type)) #define M_WORK3R_SPAWN_EXTEND_P0__3(field, type, oplist) M_IF_OPLIST(oplist)(M_WORK3R_SPAWN_EXTEND_P0__3_OK, M_WORK3R_SPAWN_EXTEND_P0__3_KO)(field, type, oplist) #define M_WORK3R_SPAWN_EXTEND_P0__3_OK(field, type, oplist) M_OPEXTEND(oplist, TYPE(type)) -#define M_WORK3R_SPAWN_EXTEND_P0__3_KO(field, type, oplist) \ +#define M_WORK3R_SPAWN_EXTEND_P0__3_KO(field, type, oplist) \ M_STATIC_FAILURE(M_LIB_NOT_AN_OPLIST, "(M_WORKER_SPAWN_EXTEND): the argument is not a valid oplist: " M_MAP(M_AS_STR, oplist)) /* Deferred evaluation for the definition,