+2008-03-11 Johan Dahlin <johan@gnome.org>
+
+ * tests/parser/Foo-expected.gidl:
+ * tests/parser/foo-object.h:
+ * tools/scanner.c:
+ * tools/scanner.h:
+ * tools/scannerlexer.l:
+ * tools/scannerparser.y:
+ Remove parsing of the @deprecated syntax used in headers.
+ We will support gtk-doc deprecation in the future instead.
+
2008-03-11 Johan Dahlin <johan@gnome.org>
* tools/compiler.c (main): Coding style fixes
<parameter name="foo_enum" type="FooEnumType"/>
</parameters>
</function>
- <function name="init" symbol="foo_init" deprecated="1">
+ <function name="init" symbol="foo_init">
<return-type type="gint"/>
</function>
<boxed name="FooBoxed" type-name="FooBoxed" get-type="foo_boxed_get_type">
GObjectClass parent_class;
};
-/*
- * @deprecated
- */
gint foo_init (void);
GType foo_object_get_type (void) G_GNUC_CONST;
* the cleanup for sym */
g_hash_table_remove (igenerator->directives_map, func->symbol);
- for (j = sym->directives; j; j = j->next)
- {
- CDirective *directive = (CDirective*)j->data;
-
- if (!strcmp (directive->name, "deprecated"))
- func->deprecated = TRUE;
- else
- g_printerr ("Unknown function directive: %s\n",
- directive->name);
- }
}
static void
}
}
- symbol->directives = g_slist_reverse (igenerator->directives);
- igenerator->directives = NULL;
-
if (found_filename || igenerator->macro_scan)
{
igenerator->symbol_list =
/* scanner variables */
gboolean macro_scan;
- GSList *directives; /* list of CDirective for the current symbol */
};
typedef enum
directive = cdirective_new (name, value, options);
- if (symbol == NULL)
- {
- igenerator->directives = g_slist_prepend (igenerator->directives,
- directive);
- }
- else
- {
- directives = g_hash_table_lookup (igenerator->directives_map, symbol);
- directives = g_slist_prepend (directives, directive);
+ directives = g_hash_table_lookup (igenerator->directives_map, symbol);
+ directives = g_slist_prepend (directives, directive);
- g_hash_table_replace (igenerator->directives_map,
- g_strdup (symbol), directives);
- }
-
+ g_hash_table_replace (igenerator->directives_map,
+ g_strdup (symbol), directives);
g_strfreev (parts);
}
ctype_free (symbol->base_type);
g_free (symbol->const_string);
g_free (symbol);
- g_slist_foreach (symbol->directives, (GFunc)cdirective_free, NULL);
- g_slist_free (symbol->directives);
}
gboolean