Commit 167431f9 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

compare complete path

2007-11-22  Juerg Billeter  <j@bitron.ch>

	* gobject-introspection/clexer.l,
	  gobject-introspection/gen-introspect.c: compare complete path

svn path=/trunk/; revision=706
parent 1721f127
2007-11-22 Jürg Billeter <j@bitron.ch>
* gobject-introspection/clexer.l,
gobject-introspection/gen-introspect.c: compare complete path
2007-11-22 Jürg Billeter <j@bitron.ch>
* vapi/packages/gnome-vfs-2.0/: update to use vala-gen-introspect
......
......@@ -243,8 +243,7 @@ static void process_directive (void)
if (filename_builder->len > 0) {
char *filename = g_strcompress (filename_builder->str);
g_free (the_igenerator->current_filename);
the_igenerator->current_filename = g_path_get_basename (filename);
g_free (filename);
the_igenerator->current_filename = filename;
}
g_string_free (filename_builder, TRUE);
......
......@@ -1023,7 +1023,7 @@ void g_igenerator_add_symbol (GIGenerator *igenerator, CSymbol *symbol)
gboolean found_filename = FALSE;
GList *l;
for (l = igenerator->filenames; l != NULL; l = l->next) {
if (strcmp (g_path_get_basename (l->data), g_path_get_basename (igenerator->current_filename)) == 0) {
if (strcmp (l->data, igenerator->current_filename) == 0) {
found_filename = TRUE;
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment