Displaying 7 results from an estimated 7 matches for "swfdec_xml_node_new".
2007 Nov 02
0
5 commits - libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
...07 +0200
Bunch OOM fixes to XML code
diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c
index 37174bc..b64b16e 100644
--- a/libswfdec/swfdec_xml.c
+++ b/libswfdec/swfdec_xml.c
@@ -563,6 +563,8 @@ swfdec_xml_parse_tag (SwfdecXml *xml, SwfdecXmlNode **node, const char *p)
child = swfdec_xml_node_new_no_properties (
SWFDEC_AS_OBJECT (*node)->context, SWFDEC_XML_NODE_ELEMENT, name);
g_free (name);
+ if (child == NULL)
+ return strchr (p, '\0');
}
if (close) {
@@ -643,6 +645,8 @@ swfdec_xml_parse_text (SwfdecXml *xml, SwfdecXmlNode *node,
child = swfdec_xml_...
2007 Nov 02
0
2 commits - libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
...f --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c
index 0613e41..5c52126 100644
--- a/libswfdec/swfdec_xml.c
+++ b/libswfdec/swfdec_xml.c
@@ -561,8 +561,9 @@ swfdec_xml_parse_tag (SwfdecXml *xml, SwfdecXmlNode **node, const char *p)
// create the new element
if (!close) {
child = swfdec_xml_node_new_no_properties (
- SWFDEC_AS_OBJECT (*node)->context, SWFDEC_XML_NODE_ELEMENT, name);
- g_free (name);
+ SWFDEC_AS_OBJECT (*node)->context, SWFDEC_XML_NODE_ELEMENT,
+ swfdec_as_context_give_string (SWFDEC_AS_OBJECT (*node)->context,
+ name));
if (child == NULL)
return strch...
2007 Oct 14
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h
...lNode *node,
if (!xml->ignoreWhite || strspn (p, " \t\r\n") < (size_t)(end - p))
{
text = g_strndup (p, end - p);
- unescaped = swfdec_xml_unescape (text);
+ unescaped = swfdec_xml_unescape (SWFDEC_AS_OBJECT (xml)->context, text);
g_free (text);
child = swfdec_xml_node_new (SWFDEC_AS_OBJECT (node)->context,
SWFDEC_XML_NODE_TEXT, unescaped);
diff --git a/libswfdec/swfdec_xml.h b/libswfdec/swfdec_xml.h
index 3b0396d..1faff6b 100644
--- a/libswfdec/swfdec_xml.h
+++ b/libswfdec/swfdec_xml.h
@@ -69,10 +69,14 @@ struct _SwfdecXmlClass {
GType swfdec_xml_get_type (...
2007 Oct 25
0
18 commits - libswfdec/swfdec_player_internal.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_format.c libswfdec/swfdec_text_format.h libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/trace
...--git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c
index ea2f287..f447e46 100644
--- a/libswfdec/swfdec_xml.c
+++ b/libswfdec/swfdec_xml.c
@@ -560,8 +560,8 @@ swfdec_xml_parse_tag (SwfdecXml *xml, SwfdecXmlNode **node, const char *p)
// create the new element
if (!close) {
- child = swfdec_xml_node_new (SWFDEC_AS_OBJECT (*node)->context,
- SWFDEC_XML_NODE_ELEMENT, name);
+ child = swfdec_xml_node_new_no_properties (
+ SWFDEC_AS_OBJECT (*node)->context, SWFDEC_XML_NODE_ELEMENT, name);
g_free (name);
}
@@ -640,8 +640,8 @@ swfdec_xml_parse_text (SwfdecXml *xml, SwfdecXmlNode *node...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800
release 0.5.4 ("Turkish Cycling Federation")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/
R5PF4bZQqmSdJ64t8EbD4cA=
=8qBy
-----END PGP SIGNATURE-----
Changes since the dawn of time:
Benjamin Otte (40):
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...to XMLNode
Fix an error in previousSibling. Add firstChild and lastChild properties.
Add asserts to swfdec_as_object_mark and swfdec_as_string_mark
Work on XMLNode: marking, getNamespaceForPrefix function, attributes property
Merge branch 'master' into xml
Fix swfdec_xml_node_new function
Add test for ASnative (100, 5), an XML escape function
Prepend xmlDecl and docTypeDecl in toString. Remove debug prints.
Fix parsing of XML tags which are closed right after the name like <test/>
Add native status property to XML. Do error detection when parsi...
2007 Oct 23
0
11 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h
...fdec_xml_get_loaded, swfdec_xml_set_loaded);
SWFDEC_PLAYER (cx)->xml_properties_initialized = TRUE;
diff --git a/libswfdec/swfdec_xml_node.c b/libswfdec/swfdec_xml_node.c
index da64a5c..e937429 100644
--- a/libswfdec/swfdec_xml_node.c
+++ b/libswfdec/swfdec_xml_node.c
@@ -998,31 +998,6 @@ swfdec_xml_node_new (SwfdecAsContext *context, SwfdecXmlNodeType type,
return node;
}
-static void
-swfdec_xml_node_add_variable (SwfdecAsObject *object, const char *variable,
- SwfdecAsNative get, SwfdecAsNative set)
-{
- SwfdecAsFunction *get_func, *set_func;
-
- g_return_if_fail (SWFDEC_IS_AS_OBJECT (obj...