After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757294 - Move G_POLLFD_FORMAT to glibconfig.h
Move G_POLLFD_FORMAT to glibconfig.h
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-10-29 10:29 UTC by Mikhail Zabaluev
Modified: 2015-11-02 18:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Move G_POLLFD_FORMAT to glibconfig.h (3.06 KB, patch)
2015-10-29 10:30 UTC, Mikhail Zabaluev
committed Details | Review
Moved the gtk-doc for G_POLLFD_FORMAT to docs.c (2.12 KB, patch)
2015-10-29 10:30 UTC, Mikhail Zabaluev
none Details | Review
Moved the gtk-doc for G_POLLFD_FORMAT to docs.c (1.91 KB, patch)
2015-10-30 07:25 UTC, Mikhail Zabaluev
rejected Details | Review

Description Mikhail Zabaluev 2015-10-29 10:29:59 UTC
G_POLLFD_FORMAT is a platform-specific macro, and g-ir-scanner is happier
processing one correct macro definition.

There is a problem with gtk-doc, which does not seem to be limited
to this change; the documentation for the macro can be recovered together
with G_GOFFSET_FORMAT and similar macros, where it has currently fallen
off as well.
Comment 1 Mikhail Zabaluev 2015-10-29 10:30:08 UTC
Created attachment 314374 [details] [review]
Move G_POLLFD_FORMAT to glibconfig.h

It's a platform-specific macro, so it belongs in glibconfig.h.
This ensures that g-ir-scanner will not pick the wrong definition
for introspection.
Comment 2 Mikhail Zabaluev 2015-10-29 10:30:14 UTC
Created attachment 314375 [details] [review]
Moved the gtk-doc for G_POLLFD_FORMAT to docs.c

An attempt to keep the documentation generated despite lacking
a gtk-doc friendly place to define the macro.

Changed the section to Miscellaneous Macros because this is one of
the sections docs.c defines, and the macro is misc-y.

This doesn't help recover the docs, though. But the problem seems
to be common with G_GOFFSET_FORMAT and the like, which fall through
gtk-doc despite being listed in glib-sections.txt and having strings
in docs.c.
Comment 3 Dan Winship 2015-10-29 13:39:33 UTC
(In reply to Mikhail Zabaluev from comment #2)
> This doesn't help recover the docs, though. But the problem seems
> to be common with G_GOFFSET_FORMAT and the like, which fall through
> gtk-doc despite being listed in glib-sections.txt and having strings
> in docs.c.

You probably need "#define G_GOFFSET_FORMAT", etc, in docs.c so gtk-doc will see *some* definition for the symbol.
Comment 4 Mikhail Zabaluev 2015-10-30 06:41:20 UTC
(In reply to Dan Winship from comment #3)
> You probably need "#define G_GOFFSET_FORMAT", etc, in docs.c so gtk-doc will
> see *some* definition for the symbol.

Nah, that didn't help. The symbols still end up in glib-undeclared.txt.
Comment 5 Mikhail Zabaluev 2015-10-30 06:50:46 UTC
I'm using gtk-doc 1.24 from Fedora F22, if that's any help.
Comment 6 Mikhail Zabaluev 2015-10-30 07:20:45 UTC
The brokenness comes from building in an off-tree build directory. When building in-tree, the documentation turns out fine.
Comment 7 Mikhail Zabaluev 2015-10-30 07:25:01 UTC
Created attachment 314435 [details] [review]
Moved the gtk-doc for G_POLLFD_FORMAT to docs.c

An attempt to keep the documentation generated despite lacking
a gtk-doc friendly place to define the macro.

Changed the section to Miscellaneous Macros because this is one of
the sections docs.c defines, and the macro is misc-y.
Comment 8 Dan Winship 2015-11-02 14:02:19 UTC
Comment on attachment 314435 [details] [review]
Moved the gtk-doc for G_POLLFD_FORMAT to docs.c

This ought to stay in gmain with GPollFD itself... is there still any problem with that after fixing the srcdir/builddir issue?
Comment 9 Dan Winship 2015-11-02 14:03:02 UTC
(where by "gmain", I mean the "The Main Event Loop" section of the docs)
Comment 10 Mikhail Zabaluev 2015-11-02 18:06:13 UTC
Attachment 314374 [details] pushed as 0dbc81c - Move G_POLLFD_FORMAT to glibconfig.h