summaryrefslogtreecommitdiff
path: root/src/UriMemory.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2026-05-08 11:54:15 +0200
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2026-05-08 11:54:15 +0200
commit9d62028a6e8eced2ae6fabedd2b6317e9519b00d (patch)
tree1d8458cb6627ccfc673f791c5f0db45f9c06f7e0 /src/UriMemory.h
parenta1dac799b819ba356a2faff3a98d7f5f076c24b6 (diff)
parent5177d88bf591522d1b934e24221e16e02cd1592b (diff)
Merge branch 'feature/upstream' into develop
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 */