1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-ab,v 1.1.1.1 2004/11/28 04:51:38 taca Exp $
--- xmlparser.c.orig Tue Apr 6 14:16:09 2004
+++ xmlparser.c
@@ -526,8 +526,9 @@ iterElementDeclHandler(void *recv,
XML_Content *model)
{
XMLParser* parser;
+ VALUE content;
GET_PARSER(recv, parser);
- VALUE content = makeContentArray(parser, model);
+ content = makeContentArray(parser, model);
rb_yield(rb_ary_new3(4, symELEMENT_DECL,
TO_(rb_str_new2(name)),
content, recv));
@@ -929,8 +930,9 @@ myElementDeclHandler(void *recv,
XML_Content *model)
{
XMLParser* parser;
+ VALUE content;
GET_PARSER(recv, parser);
- VALUE content = makeContentArray(parser, model);
+ content = makeContentArray(parser, model);
rb_funcall((VALUE)recv, id_elementDeclHandler, 2,
TO_(rb_str_new2(name)), content);
}
|