GitLab maintenance scheduled for Today, 2019-04-24, from 12:00 to 13:00 CDT - Services will be unavailable during this time.

Commit fb6a4ec2 authored by Nicolas Denoyelle's avatar Nicolas Denoyelle

macro indentation

parent bf373d5c
......@@ -82,18 +82,18 @@ int excit_get_func_table(excit_t it, struct excit_func_table_s **func_table)
/*--------------------------------------------------------------------*/
#define ALLOC_EXCIT(op) { \
it = malloc(sizeof(struct excit_s) + sizeof(struct op## _it_s)); \
if (!it) \
return NULL; \
it->data = (void *)((char *)it + sizeof(struct excit_s)); \
if (!excit_ ##op## _func_table.alloc) \
goto error; \
it->func_table = &excit_ ##op## _func_table; \
it->dimension = 0; \
if (excit_ ##op## _func_table.alloc(it)) \
goto error; \
}
#define ALLOC_EXCIT(op) {\
it = malloc(sizeof(struct excit_s) + sizeof(struct op## _it_s));\
if (!it)\
return NULL;\
it->data = (void *)((char *)it + sizeof(struct excit_s));\
if (!excit_ ##op## _func_table.alloc)\
goto error;\
it->func_table = &excit_ ##op## _func_table;\
it->dimension = 0;\
if (excit_ ##op## _func_table.alloc(it))\
goto error;\
}
excit_t excit_alloc(enum excit_type_e type)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment