GNOME Bugzilla – Bug 731292
C examples not annotated as C
Last modified: 2016-02-15 17:52:53 UTC
Created attachment 277971 [details] [review] docs: annotate C examples as such Should be |[<!-- language="C" --> instead of |[
Which version of gtk-doc where these language annotations added in ? We currently only depend on the very antique 1.12 from 2009... But I wouldn't mind updating our requirement to 1.18 from 2011 or even 1.19 from mid-2013, a year ago.
It was added quite recently (see bug #723118), but I don't think it will break anything. If I'm reading that right, |[ ... ]| was treated as markup prior to that bug, and <!-- language="C" --> is a comment. Unfortunately all I have to test with is 1.20.
If we update gtk-doc requirements, let's wait until after 1.4 with that.
I just checked with 1.19, which is from before bug #723118, no problems. I don't see a need to update the gtk-doc dependency, at least not for this issue.
I see no difference when building the documentation with or without the C language annotation. Using gtk-doc 1.19 here. Should we close this bug?
Evan, what is the significance of this annotation? Luis says it makes no difference wrt the generated output.
Documentation for languages other than C are being generated from the comments these days. I know the lack of these annotations was causing problems for valadoc, it is probably an issue for g-ir-doc-tool as well.
Sorry for the delay, thanks for the patch! commit d11e657412e657f9a5146680ca8fd703574b63f2 Author: Evan Nemerson <evan@nemerson.com> Date: Thu Jun 5 13:27:28 2014 -0700 docs: annotate C examples as such https://bugzilla.gnome.org/show_bug.cgi?id=731292