From 4bd9b5366d2eb5d6430f75a0ccd7ea4cb10ff838 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 7 Jul 2012 17:12:02 +0100 Subject: HTMLDocument: Allow memoised strings to differ from their names --- src/html/html_document.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/html/html_document.c') diff --git a/src/html/html_document.c b/src/html/html_document.c index 288de82..69b40eb 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -86,9 +86,9 @@ dom_exception _dom_html_document_initialise(dom_html_document *doc, goto out; } -#define HTML_DOCUMENT_STRINGS_ACTION(attr) \ - error = dom_string_create_interned((const uint8_t *) #attr, \ - SLEN(#attr), &doc->memoised[hds_##attr]); \ +#define HTML_DOCUMENT_STRINGS_ACTION(attr,str) \ + error = dom_string_create_interned((const uint8_t *) #str, \ + SLEN(#str), &doc->memoised[hds_##attr]); \ if (error != DOM_NO_ERR) { \ goto out; \ } -- cgit v1.2.3