summaryrefslogtreecommitdiff
path: root/src/UriMemory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/UriMemory.h')
-rw-r--r--src/UriMemory.h52
1 files changed, 21 insertions, 31 deletions
diff --git a/src/UriMemory.h b/src/UriMemory.h
index a930f93..b03ca4a 100644
--- a/src/UriMemory.h
+++ b/src/UriMemory.h
@@ -38,41 +38,31 @@
*/
#ifndef URI_MEMORY_H
-#define URI_MEMORY_H 1
-
-
-
-#ifndef URI_DOXYGEN
-# include <uriparser/Uri.h>
-#endif
-
-
-
-#define URI_CHECK_MEMORY_MANAGER(memory) \
- do { \
- if (memory == NULL) { \
- memory = &defaultMemoryManager; \
- } else if (uriMemoryManagerIsComplete(memory) != URI_TRUE) { \
- return URI_ERROR_MEMORY_MANAGER_INCOMPLETE; \
- } \
- } while (0)
-
-
-
-#ifdef __cplusplus
-# define URIPARSER_EXTERN extern "C"
-#else
-# define URIPARSER_EXTERN extern
-#endif
+# define URI_MEMORY_H 1
+
+# ifndef URI_DOXYGEN
+# include <uriparser/Uri.h>
+# endif
+
+# define URI_CHECK_MEMORY_MANAGER(memory) \
+ do { \
+ if (memory == NULL) { \
+ memory = &defaultMemoryManager; \
+ } else if (uriMemoryManagerIsComplete(memory) != URI_TRUE) { \
+ return URI_ERROR_MEMORY_MANAGER_INCOMPLETE; \
+ } \
+ } while (0)
+
+# ifdef __cplusplus
+# define URIPARSER_EXTERN extern "C"
+# else
+# define URIPARSER_EXTERN extern
+# endif
URIPARSER_EXTERN UriMemoryManager defaultMemoryManager;
-#undef URIPARSER_EXTERN
-
-
+# undef URIPARSER_EXTERN
UriBool uriMemoryManagerIsComplete(const UriMemoryManager * memory);
-
-
#endif /* URI_MEMORY_H */