mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Add G_G[U]INTPTR_FORMAT and G_GINTPTR_MODIFIER
Add macros for printf formatting for g[u]intptr. Bug 569376.
This commit is contained in:
@@ -372,6 +372,9 @@ G_GSIZE_FORMAT
|
||||
G_GSSIZE_FORMAT
|
||||
G_GOFFSET_MODIFIER
|
||||
G_GOFFSET_FORMAT
|
||||
G_GINTPTR_MODIFIER
|
||||
G_GINTPTR_FORMAT
|
||||
G_GUINTPTR_FORMAT
|
||||
|
||||
<SUBSECTION Private>
|
||||
GLIB_VAR
|
||||
|
@@ -626,4 +626,30 @@ printing values of type #goffset. See also #G_GINT64_FORMAT.
|
||||
Since: 2.20
|
||||
|
||||
|
||||
<!-- ##### MACRO G_GINTPTR_MODIFIER ##### -->
|
||||
<para>
|
||||
The platform dependent length modifier for conversion specifiers for scanning
|
||||
and printing values of type #gintptr or #guintptr. It is a string literal.
|
||||
</para>
|
||||
|
||||
@Since: 2.22
|
||||
|
||||
|
||||
<!-- ##### MACRO G_GINTPTR_FORMAT ##### -->
|
||||
<para>
|
||||
This is the platform dependent conversion specifier for scanning and
|
||||
printing values of type #gintptr.
|
||||
</para>
|
||||
|
||||
@Since: 2.22
|
||||
|
||||
|
||||
<!-- ##### MACRO G_GUINTPTR_FORMAT ##### -->
|
||||
<para>
|
||||
This is the platform dependent conversion specifier for scanning and
|
||||
printing values of type #guintptr.
|
||||
</para>
|
||||
|
||||
@Since: 2.22
|
||||
|
||||
|
||||
|
@@ -271,6 +271,10 @@ To print or scan values of this type, use
|
||||
A signed integer type that is used for file offsets, corresponding to the
|
||||
C99 type off64_t.
|
||||
</para>
|
||||
<para>
|
||||
To print or scan values of this type, use
|
||||
%G_GOFFSET_MODIFIER and/or %G_GOFFSET_FORMAT.
|
||||
</para>
|
||||
|
||||
Since: 2.14
|
||||
|
||||
@@ -290,6 +294,10 @@ Since: 2.20
|
||||
Corresponds to the C99 type <type>intptr_t</type>, a signed integer type that
|
||||
can hold any pointer.
|
||||
</para>
|
||||
<para>
|
||||
To print or scan values of this type, use
|
||||
%G_GINTPTR_MODIFIER and/or %G_GINTPTR_FORMAT.
|
||||
</para>
|
||||
|
||||
Since: 2.18
|
||||
|
||||
@@ -299,5 +307,9 @@ Since: 2.18
|
||||
Corresponds to the C99 type <type>uintptr_t</type>, an unsigned integer type that
|
||||
can hold any pointer.
|
||||
</para>
|
||||
<para>
|
||||
To print or scan values of this type, use
|
||||
%G_GINTPTR_MODIFIER and/or %G_GUINTPTR_FORMAT.
|
||||
</para>
|
||||
|
||||
Since: 2.18
|
||||
|
Reference in New Issue
Block a user