From d7e7840c54b93b223449d9d662576a4774af32b8 Mon Sep 17 00:00:00 2001 From: James Shaw Date: Wed, 18 Jul 2007 19:07:32 +0000 Subject: Fix casting for attribute accessor generation. Add cast for string literal in . documentgetdoctype.c now compiles and runs. svn path=/trunk/dom/; revision=3434 --- test/test-to-c.xsl | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/test/test-to-c.xsl b/test/test-to-c.xsl index a4181d5..dbf2ac3 100644 --- a/test/test-to-c.xsl +++ b/test/test-to-c.xsl @@ -72,7 +72,6 @@ we generate an reporting that the element is not known. #include <string.h> #include <dom/dom.h> -#include <utils.h> #include "testutils.h" @@ -236,6 +235,10 @@ DOM templates + + + obj_type + iface_type @@ -247,14 +250,25 @@ DOM templates err = - - - - _get_ - - - - (, &); + + + + _get_ + + + + ( + + + (struct + + + + *) + + + , & + ); assert(err == DOM_NO_ERR); @@ -295,7 +309,7 @@ Assert templates struct dom_string *match; - err = dom_string_create_from_const_ptr(doc, , + err = dom_string_create_from_const_ptr(doc, (uint8_t *) , SLEN(), &match); assert(err == DOM_NO_ERR); -- cgit v1.2.3