reverted iiinq.h to original state
@@ -20,10 +20,7 @@ typedef struct {
@brief Function pointer type for processing not data modifying IINQ
queries.
*/
-typedef void (*ion_iinq_query_processor_func_t)(
- ion_iinq_result_t *,
- void *
-);
+typedef void (*ion_iinq_query_processor_func_t)(ion_iinq_result_t*, void*);
#define IINQ_NEW_PROCESSOR_FUNC(name) \
void name(ion_iinq_result_t *result, void* state)
@@ -33,9 +30,7 @@ typedef struct {
void *state;
} ion_iinq_query_processor_t;
-#define IINQ_QUERY_PROCESSOR(execute, state) \
- ((ion_iinq_query_processor_t) { execute, state } \
- )
+#define IINQ_QUERY_PROCESSOR(execute, state) ((ion_iinq_query_processor_t){ execute, state })
typedef struct iinq_source ion_iinq_source_t;
@@ -43,6 +38,7 @@ typedef struct iinq_cleanup {
ion_iinq_source_t *reference;
struct iinq_cleanup *next;
struct iinq_cleanup *last;
+
} ion_iinq_cleanup_t;
struct iinq_source {
@@ -247,10 +243,7 @@ IINQ_QUERY_CLEANUP: \
ion_close_dictionary(&first->reference->dictionary); \
first = first->next; \
}\
- } \
- while (0) { \
- \
- }
+} while (0);
#if defined(__cplusplus)
}
