Displaying 1 result from an estimated 1 matches for "allocfunc".
Did you mean:
alloc_func
2012 Jan 15
2
[PATCH v3] libxl: add support for yajl 2.x
...check */
+#if defined(YAJL_MAJOR) && (YAJL_MAJOR > 1)
+# define HAVE_YAJL_V2 1
+#endif
+
+#ifdef HAVE_YAJL_V2
+typedef size_t libxl_yajl_length;
+
+static inline yajl_handle libxl__yajl_alloc(const yajl_callbacks *callbacks,
+ yajl_alloc_funcs *allocFuncs,
+ void *ctx)
+{
+ return yajl_alloc(callbacks, allocFuncs, ctx);
+}
+
+static inline yajl_gen libxl__yajl_gen_alloc(const yajl_alloc_funcs *allocFuncs)
+{
+ return yajl_gen_alloc(allocFuncs);
+}
+#else
+#define yajl_complete_parse yajl_parse_comple...