gobject-introspection r866 - in trunk: . giscanner



Author: otaylor
Date: Fri Nov  7 13:23:17 2008
New Revision: 866
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=866&view=rev

Log:
2008-11-07  Owen Taylor  <otaylor redhat com>

        * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
        Set current_filename before lexing the file so error messages
        are reported in the right file.


Modified:
   trunk/ChangeLog
   trunk/giscanner/giscannermodule.c

Modified: trunk/giscanner/giscannermodule.c
==============================================================================
--- trunk/giscanner/giscannermodule.c	(original)
+++ trunk/giscanner/giscannermodule.c	Fri Nov  7 13:23:17 2008
@@ -505,6 +505,7 @@
   if (!PyArg_ParseTuple (args, "s:SourceScanner.lex_filename", &filename))
     return NULL;
 
+  self->scanner->current_filename = g_strdup (filename);
   if (!gi_source_scanner_lex_filename (self->scanner, filename))
     {
       g_print ("Something went wrong during lexing.\n");
@@ -512,7 +513,6 @@
     }
   self->scanner->filenames =
     g_list_append (self->scanner->filenames, g_strdup (filename));
-  self->scanner->current_filename = g_strdup (filename);
 
   Py_INCREF (Py_None);
   return Py_None;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]