summaryrefslogtreecommitdiff
path: root/bindings/xml/utils.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-07-14 17:37:09 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-07-14 17:37:09 +0000
commit428146a7efdf7241b70d5a73aab8571aba71c25f (patch)
treed4a79516fa1d76fa9fe7c614f1d2fbdf5f395220 /bindings/xml/utils.h
parent98d768777e8ec0cf124a5fcfbcd4f34c2b6c8182 (diff)
downloadlibdom-428146a7efdf7241b70d5a73aab8571aba71c25f.tar.gz
libdom-428146a7efdf7241b70d5a73aab8571aba71c25f.tar.bz2
LibXML 2 binding for libdom.
This is mostly stub, at present svn path=/trunk/dom/; revision=3412
Diffstat (limited to 'bindings/xml/utils.h')
-rw-r--r--bindings/xml/utils.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/bindings/xml/utils.h b/bindings/xml/utils.h
new file mode 100644
index 0000000..75ca536
--- /dev/null
+++ b/bindings/xml/utils.h
@@ -0,0 +1,28 @@
+/*
+ * This file is part of libdom.
+ * Licensed under the MIT License,
+ * http://www.opensource.org/licenses/mit-license.php
+ * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
+ */
+
+#ifndef xml_utils_h_
+#define xml_utils_h_
+
+#ifndef max
+#define max(a,b) ((a)>(b)?(a):(b))
+#endif
+
+#ifndef min
+#define min(a,b) ((a)<(b)?(a):(b))
+#endif
+
+#ifndef SLEN
+/* Calculate length of a string constant */
+#define SLEN(s) (sizeof((s)) - 1) /* -1 for '\0' */
+#endif
+
+#ifndef UNUSED
+#define UNUSED(x) ((x)=(x))
+#endif
+
+#endif