[Tomoe-cvs 1054] CVS update: tomoe/lib

Back to archive index

Takuro Ashie makei****@users*****
2006年 11月 27日 (月) 10:57:04 JST


Index: tomoe/lib/tomoe-dict.c
diff -u tomoe/lib/tomoe-dict.c:1.84 tomoe/lib/tomoe-dict.c:1.85
--- tomoe/lib/tomoe-dict.c:1.84	Mon Nov 27 10:26:00 2006
+++ tomoe/lib/tomoe-dict.c	Mon Nov 27 10:57:04 2006
@@ -21,7 +21,7 @@
  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  *  Boston, MA  02111-1307  USA
  *
- *  $Id: tomoe-dict.c,v 1.84 2006/11/27 01:26:00 makeinu Exp $
+ *  $Id: tomoe-dict.c,v 1.85 2006/11/27 01:57:04 makeinu Exp $
  */
 
 #include <stdio.h>
@@ -479,8 +479,7 @@
         return;
     }
 
-    if (!data->in_dict)
-        return;
+    g_return_if_fail (data->in_dict);
 
     if (!strcmp ("character", element_name)) {
         data->chr = tomoe_char_new ();
@@ -660,7 +659,6 @@
                      gpointer             user_data,
                      GError             **error)
 {
-#warning FIXME: need implement?
 }
 
 static void
@@ -668,7 +666,14 @@
                GError              *error,
                gpointer             user_data)
 {
-#warning FIXME: need error check
+    ParseData *data = user_data;
+    gint line = 0;
+
+    g_markup_parse_context_get_position (context, &line, NULL);
+    g_warning ("XML parse error at line %d of %s: %s\n",
+               line,
+               data->priv->filename,
+               error->message);
 }
 
 static GMarkupParser parser = {
@@ -713,7 +718,7 @@
         success = g_markup_parse_context_parse(context, buf, bytes, &error);
 #warning FIXME
         if (!success) {
-            g_warning("XML parse error!: %s", error->message);
+            g_warning("XML parse error: %s", error->message);
             g_error_free(error);
             break;
         }


tomoe-cvs メーリングリストの案内
Back to archive index