2008-05-02 Juerg Billeter <j@bitron.ch>
* gobject-introspection/scanner.c: (g_igenerator_add_symbol):
Do not add duplicate symbols,
patch by Etienne Bersac, fixes bug 528254
svn path=/trunk/; revision=1332
+2008-05-02 Jürg Billeter <j@bitron.ch>
+
+ * gobject-introspection/scanner.c: (g_igenerator_add_symbol):
+
+ Do not add duplicate symbols,
+ patch by Étienne Bersac, fixes bug 528254
+
2008-05-01 Jürg Billeter <j@bitron.ch>
* doc/vala/types.xml:
{
/* only add symbols of main file */
gboolean found_filename = FALSE;
+
GList *l;
for (l = igenerator->filenames; l != NULL; l = l->next)
{
symbol->directives = g_slist_reverse (igenerator->directives);
igenerator->directives = NULL;
+ /* that's not very optimized ! */
+ for (l = igenerator->symbol_list; l != NULL; l = l->next)
+ {
+ if (g_str_equal (((CSymbol*)l->data)->ident, symbol->ident))
+ {
+ g_printerr ("Dropping %s duplicate\n", symbol->ident);
+ return;
+ }
+ }
+
if (found_filename || igenerator->macro_scan)
{
igenerator->symbol_list =