1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

Fix build with C89 compilers.

This commit is contained in:
Akinori MUSHA 2004-04-21 03:45:35 +00:00
parent d063a2e918
commit 4577631804
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107769

View File

@ -0,0 +1,24 @@
--- xmlparser.c.orig Tue Apr 6 14:16:09 2004
+++ xmlparser.c Wed Apr 21 12:38:50 2004
@@ -526,8 +526,9 @@
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 @@
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);
}