diff --git a/permutation_test/src/permutation_t/permutation_t.c b/permutation_test/src/permutation_t/permutation_t.c index 4caf54b..f6b87f2 100644 --- a/permutation_test/src/permutation_t/permutation_t.c +++ b/permutation_test/src/permutation_t/permutation_t.c @@ -28,7 +28,8 @@ GENERATE_PERMUTATION_FUNCTIONS_UNSIGNED(TYPE_SIZE_T) PERMUTATION_##type *p = malloc(sizeof(PERMUTATION_##type));\ p->size = size;\ p->perm = malloc(size * sizeof(type));\ - return p; }\ + return p;\ + }\ \ PERMUTATION_TYPE_SIZE_T * TRANSLATE_TO_SET_THEORIC_SIZE_T_##type(const PERMUTATION_##type *p ){\ if (p == NULL) return NULL;\ @@ -66,7 +67,8 @@ GENERATE_PERMUTATION_FUNCTIONS_UNSIGNED(TYPE_SIZE_T) PERMUTATION_TYPE_SIZE_T *t_p = TRANSLATE_TO_SET_THEORIC_SIZE_T_##type(p);\ bool ret = IS_PERMUTATION_SET_THEORIC_TYPE_SIZE_T(t_p);\ free(t_p);\ - return ret; }\ + return ret; \ + }\ diff --git a/permutation_test/src/permutation_t/permutation_t.h b/permutation_test/src/permutation_t/permutation_t.h index 49f03de..2b27ca0 100644 --- a/permutation_test/src/permutation_t/permutation_t.h +++ b/permutation_test/src/permutation_t/permutation_t.h @@ -13,7 +13,8 @@ #define GENERATE_PERMUTATION(type)\ struct PERMUTATION_##type{\ size_t size;\ - type * perm; };\ + type * perm; \ + };\ \ typedef struct PERMUTATION_##type PERMUTATION_##type;\ PERMUTATION_##type * CREATE_PERMUTATION_##type(size_t size);\