if input_name is NULL, print out "<memory>" instead of completely skipping
authorTim Janik <timj@gtk.org>
Thu, 10 Oct 2002 21:26:25 +0000 (21:26 +0000)
committerTim Janik <timj@src.gnome.org>
Thu, 10 Oct 2002 21:26:25 +0000 (21:26 +0000)
Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>

        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
        print out "<memory>" instead of completely skipping input specification
        and thusly loosing error line information.

ChangeLog
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/gscanner.c

index ea4012c..ed1f150 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
+
+        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
+        print out "<memory>" instead of completely skipping input specification
+        and thusly loosing error line information.
+
 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
 
        * tests/mainloop-test.c: use gsize instead of int where appropriate
index ea4012c..ed1f150 100644 (file)
@@ -1,3 +1,9 @@
+Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
+
+        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
+        print out "<memory>" instead of completely skipping input specification
+        and thusly loosing error line information.
+
 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
 
        * tests/mainloop-test.c: use gsize instead of int where appropriate
index ea4012c..ed1f150 100644 (file)
@@ -1,3 +1,9 @@
+Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
+
+        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
+        print out "<memory>" instead of completely skipping input specification
+        and thusly loosing error line information.
+
 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
 
        * tests/mainloop-test.c: use gsize instead of int where appropriate
index ea4012c..ed1f150 100644 (file)
@@ -1,3 +1,9 @@
+Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
+
+        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
+        print out "<memory>" instead of completely skipping input specification
+        and thusly loosing error line information.
+
 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
 
        * tests/mainloop-test.c: use gsize instead of int where appropriate
index ea4012c..ed1f150 100644 (file)
@@ -1,3 +1,9 @@
+Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
+
+        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
+        print out "<memory>" instead of completely skipping input specification
+        and thusly loosing error line information.
+
 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
 
        * tests/mainloop-test.c: use gsize instead of int where appropriate
index ea4012c..ed1f150 100644 (file)
@@ -1,3 +1,9 @@
+Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
+
+        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
+        print out "<memory>" instead of completely skipping input specification
+        and thusly loosing error line information.
+
 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
 
        * tests/mainloop-test.c: use gsize instead of int where appropriate
index ea4012c..ed1f150 100644 (file)
@@ -1,3 +1,9 @@
+Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
+
+        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
+        print out "<memory>" instead of completely skipping input specification
+        and thusly loosing error line information.
+
 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
 
        * tests/mainloop-test.c: use gsize instead of int where appropriate
index 4c5ce61..e09e63e 100644 (file)
@@ -289,8 +289,9 @@ g_scanner_msg_handler (GScanner             *scanner,
 {
   g_return_if_fail (scanner != NULL);
   
-  if (scanner->input_name)
-    fprintf (stderr, "%s:%d: ", scanner->input_name, scanner->line);
+  fprintf (stderr, "%s:%d: ",
+          scanner->input_name ? scanner->input_name : "<memory>",
+          scanner->line);
   if (is_error)
     fprintf (stderr, "error: ");
   fprintf (stderr, "%s\n", message);