From 229af12d7ab2c071a6888eb8ffc49bb0bbeb9ddd Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 26 Aug 2010 23:00:23 +0000 Subject: Sync with modified libwapcaplet API: 11 additional DOM Level1 testsuite failures. Most importantly, it actually compiles now. svn path=/trunk/dom/; revision=10717 --- src/utils/resource_mgr.c | 11 +++++------ src/utils/resource_mgr.h | 2 -- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'src/utils') diff --git a/src/utils/resource_mgr.c b/src/utils/resource_mgr.c index c9c86d3..98270ee 100644 --- a/src/utils/resource_mgr.c +++ b/src/utils/resource_mgr.c @@ -13,6 +13,8 @@ #include #include "core/string.h" +#include "utils/utils.h" + /** * Allocate some memory with this allocator * @@ -55,10 +57,9 @@ dom_exception _dom_resource_mgr_create_lwcstring(struct dom_resource_mgr *res, { lwc_error lerr; - assert(res->ctx != NULL); + UNUSED(res); - lerr = lwc_context_intern(res->ctx, (const char *) data, len, - result); + lerr = lwc_intern_string((const char *) data, len, result); return _dom_exception_from_lwc_error(lerr); } @@ -75,9 +76,7 @@ dom_exception _dom_resource_mgr_create_string_from_lwcstring( struct dom_resource_mgr *res, struct lwc_string_s *str, struct dom_string **result) { - assert(res->ctx != NULL); - - return _dom_string_create_from_lwcstring(res->alloc, res->pw, res->ctx, + return _dom_string_create_from_lwcstring(res->alloc, res->pw, str, result); } diff --git a/src/utils/resource_mgr.h b/src/utils/resource_mgr.h index b58f665..608df53 100644 --- a/src/utils/resource_mgr.h +++ b/src/utils/resource_mgr.h @@ -13,7 +13,6 @@ #include "hashtable.h" -struct lwc_context_s; struct lwc_string_s; struct dom_string; @@ -23,7 +22,6 @@ struct dom_string; typedef struct dom_resource_mgr { dom_alloc alloc; void *pw; - struct lwc_context_s *ctx; } dom_resource_mgr; void *_dom_resource_mgr_alloc(struct dom_resource_mgr *res, void *ptr, -- cgit v1.2.3