if input_name is NULL, print out "<memory>" instead of completely skipping

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.
This commit is contained in:
Tim Janik 2002-10-10 21:26:25 +00:00 committed by Tim Janik
parent 133b56198b
commit 41c5704578
8 changed files with 45 additions and 2 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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);