docs: Clarify the definition of goffset

off64_t doesn’t exist in any standard (definitely not C99), and so
goffset is actually closer to off_t in 64-bit mode.

However, goffset is always defined as gint64, so make that clear.

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

https://bugzilla.gnome.org/show_bug.cgi?id=792856
This commit is contained in:
Philip Withnall 2018-01-24 15:51:24 +00:00
parent fc857073a0
commit 38592939d7

View File

@ -617,7 +617,9 @@
* goffset:
*
* A signed integer type that is used for file offsets,
* corresponding to the C99 type off64_t.
* corresponding to the POSIX type `off_t` as if compiling with
* `_FILE_OFFSET_BITS` set to 64. #goffset is always 64 bits wide, even on
* 32-bit architectures.
* Values of this type can range from #G_MINOFFSET to
* #G_MAXOFFSET.
*