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 569375 - g[u]intptr undocumented
g[u]intptr undocumented
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2009-01-27 18:54 UTC by Christian Persch
Modified: 2017-10-06 11:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] Bug 569375 – g[u]intptr undocumented (1.36 KB, patch)
2009-01-27 18:55 UTC, Christian Persch
none Details | Review
updated patch; ok to commit? (1.73 KB, patch)
2009-05-19 12:08 UTC, Christian Persch
committed Details | Review
docs: Mention gsize, goffset, etc. are in C99 (1.83 KB, patch)
2017-10-06 11:16 UTC, Philip Withnall
committed Details | Review

Description Christian Persch 2009-01-27 18:54:15 UTC
gintptr and guintptr were added in 2.17.x, but are undocumented.
Comment 1 Christian Persch 2009-01-27 18:55:01 UTC
Created attachment 127346 [details] [review]
[PATCH] Bug 569375 – g[u]intptr undocumented

 docs/reference/glib/glib-sections.txt |    4 ++++
 docs/reference/glib/tmpl/types.sgml   |   19 ++++++++++++++++++-
 2 files changed, 22 insertions(+), 1 deletions(-)
Comment 2 Dan Winship 2009-01-27 19:54:04 UTC
you say "any gpointer" in the gintptr doc, but "any pointer" in the guintptr doc. (the latter is probably better?)
Comment 3 Christian Persch 2009-01-27 20:16:18 UTC
Right. I had "gpointer" first and changed one but forgot to change the other occurrence of it.
Comment 4 Christian Persch 2009-05-19 12:08:25 UTC
Created attachment 134929 [details] [review]
updated patch; ok to commit?
Comment 5 Tor Lillqvist 2009-05-20 11:33:18 UTC
Probably should say "C99 type" instead of "standard C"? Many platforms still use just C89 compilers. If we required C99, gintptr and guintptr would not be needed. Otherwise fine with me to commit.
Comment 6 Matthias Clasen 2009-05-23 03:56:50 UTC
Please commit with the change that Tor recommends.
Comment 7 Christian Persch 2009-05-23 16:07:50 UTC
Committed with s/standard C ... type/C99 type .../.

Now I wonder about the placement of g[u]intptr in this category:

<listitem><para>
Types which correspond exactly to standard C types, but are included
for completeness - #gchar, #gint, #gshort, #glong, #gfloat, #gdouble,
#gintptr, #guintptr.
</para></listitem>

Should another category be added here, for types that are in the C99 std only? (The other existing categories don't fit for g[u]intptr either.)
Comment 8 Philip Withnall 2017-10-06 11:15:52 UTC
(In reply to Christian Persch from comment #7)
> Should another category be added here, for types that are in the C99 std
> only? (The other existing categories don't fit for g[u]intptr either.)

Done.

The following fix has been pushed:
5040de9 docs: Mention gsize, goffset, etc. are in C99
Comment 9 Philip Withnall 2017-10-06 11:16:00 UTC
Created attachment 361038 [details] [review]
docs: Mention gsize, goffset, etc. are in C99

Signed-off-by: Philip Withnall <withnall@endlessm.com>