}
}
- private Inline create_type_link (string name) {
+ private Inline create_type_link (string name, bool c_accept_plural = false) {
if (name == "TRUE" || name == "FALSE" || name == "NULL" || is_numeric (name)) {
var monospaced = factory.create_run (Run.Style.MONOSPACED);
monospaced.content.add (factory.create_text (name.down ()));
} else {
Taglets.Link? taglet = factory.create_taglet ("link") as Taglets.Link;
assert (taglet != null);
+ taglet.c_accept_plural = c_accept_plural;
taglet.symbol_name = "c::"+name;
return taglet;
}
}
next ();
} else if (current.type == TokenType.GTKDOC_SIGNAL) {
- run.content.add (this.create_type_link ("::"+current.content));
+ run.content.add (this.create_type_link ("::" + current.content, true));
next ();
} else if (current.type == TokenType.GTKDOC_PROPERTY) {
- run.content.add (this.create_type_link (":"+current.content));
+ run.content.add (this.create_type_link (":" + current.content, true));
next ();
} else if (current.type == TokenType.GTKDOC_CONST) {
- run.content.add (this.create_type_link (current.content));
+ run.content.add (this.create_type_link (current.content, true));
next ();
} else if (current.type == TokenType.GTKDOC_TYPE) {
- run.content.add (this.create_type_link (current.content));
+ run.content.add (this.create_type_link (current.content, true));
next ();
} else if (current.type == TokenType.NEWLINE || current.type == TokenType.SPACE) {
append_inline_content_string (run, " ");