Change the order in which some error conditions are checked to improve
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 30 Jan 2002 22:14:16 +0000 (22:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 30 Jan 2002 22:14:16 +0000 (22:14 +0000)
        * glib/gmarkup.c (g_markup_parse_context_parse): Change the
        order in which some error conditions are checked to improve
        error messages. (#69646)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmarkup.c

index 6134076..c1c0bc7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-29  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gmarkup.c (g_markup_parse_context_parse): Change the
+       order in which some error conditions are checked to improve
+       error messages. (#69646)
+
 Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>
 
        * 1.3.13
index 6134076..c1c0bc7 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-29  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gmarkup.c (g_markup_parse_context_parse): Change the
+       order in which some error conditions are checked to improve
+       error messages. (#69646)
+
 Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>
 
        * 1.3.13
index 6134076..c1c0bc7 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-29  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gmarkup.c (g_markup_parse_context_parse): Change the
+       order in which some error conditions are checked to improve
+       error messages. (#69646)
+
 Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>
 
        * 1.3.13
index 6134076..c1c0bc7 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-29  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gmarkup.c (g_markup_parse_context_parse): Change the
+       order in which some error conditions are checked to improve
+       error messages. (#69646)
+
 Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>
 
        * 1.3.13
index 6134076..c1c0bc7 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-29  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gmarkup.c (g_markup_parse_context_parse): Change the
+       order in which some error conditions are checked to improve
+       error messages. (#69646)
+
 Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>
 
        * 1.3.13
index 6134076..c1c0bc7 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-29  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gmarkup.c (g_markup_parse_context_parse): Change the
+       order in which some error conditions are checked to improve
+       error messages. (#69646)
+
 Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>
 
        * 1.3.13
index 6134076..c1c0bc7 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-29  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gmarkup.c (g_markup_parse_context_parse): Change the
+       order in which some error conditions are checked to improve
+       error messages. (#69646)
+
 Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>
 
        * 1.3.13
index 6134076..c1c0bc7 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-29  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gmarkup.c (g_markup_parse_context_parse): Change the
+       order in which some error conditions are checked to improve
+       error messages. (#69646)
+
 Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>
 
        * 1.3.13
index f20ee36..4381bdb 100644 (file)
@@ -1385,7 +1385,19 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
               close_name = g_string_free (context->partial_chunk, FALSE);
               context->partial_chunk = NULL;
               
-              if (context->tag_stack == NULL)
+              if (*context->iter != '>')
+                {
+                  gchar buf[7];
+                  set_error (context,
+                             error,
+                             G_MARKUP_ERROR_PARSE,
+                             _("'%s' is not a valid character following "
+                               "the close element name '%s'; the allowed "
+                               "character is '>'"),
+                             utf8_str (context->iter, buf),
+                             close_name);
+                }
+              else if (context->tag_stack == NULL)
                 {
                   set_error (context,
                              error,
@@ -1404,18 +1416,6 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
                              close_name,
                              current_element (context));
                 }
-              else if (*context->iter != '>')
-                {
-                  gchar buf[7];
-                  set_error (context,
-                             error,
-                             G_MARKUP_ERROR_PARSE,
-                             _("'%s' is not a valid character following "
-                               "the close element name '%s'; the allowed "
-                               "character is '>'"),
-                             utf8_str (context->iter, buf),
-                             close_name);
-                }
               else
                 {
                   GError *tmp_error;