From 3de6638d23b43da5a8d3ee50993c95b0a8e94fa9 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Mon, 30 Oct 2000 16:08:23 +0000 Subject: [PATCH] Added documentation for G_MAXU(INT|SHORT|LONG). 2000-10-30 Sebastian Wilhelmi * glib/tmpl/limits.sgml: Added documentation for G_MAXU(INT|SHORT|LONG). * glib/tmpl/macros_misc.sgml: Added documentation for G_G(U)INT(16|32|64)_FORMAT. * glib/tmpl/types.sgml: Mention G_MAXU(INT|SHORT|LONG) in documentation for gu(int|short|long). --- docs/reference/ChangeLog | 9 +++++++ docs/reference/glib/tmpl/limits.sgml | 6 ++--- docs/reference/glib/tmpl/macros_misc.sgml | 42 ++++++++++++++++++++++++++++--- docs/reference/glib/tmpl/types.sgml | 3 +++ 4 files changed, 54 insertions(+), 6 deletions(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index fc86575..35818fa 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,5 +1,14 @@ 2000-10-30 Sebastian Wilhelmi + * glib/tmpl/limits.sgml: Added documentation for + G_MAXU(INT|SHORT|LONG). + + * glib/tmpl/macros_misc.sgml: Added documentation for + G_G(U)INT(16|32|64)_FORMAT. + + * glib/tmpl/types.sgml: Mention G_MAXU(INT|SHORT|LONG) in + documentation for gu(int|short|long). + * glib/glib-sections.txt, glib/tmpl/linked_lists_double.sgml, glib/tmpl/caches.sgml: Move GCompareFunc to GList and introduce and document GEqualFunc in GHashTable. diff --git a/docs/reference/glib/tmpl/limits.sgml b/docs/reference/glib/tmpl/limits.sgml index 673fbc5..7ea4473 100644 --- a/docs/reference/glib/tmpl/limits.sgml +++ b/docs/reference/glib/tmpl/limits.sgml @@ -31,7 +31,7 @@ The maximum value which can be held in a #gint. - +The maximum value which can be held in a #guint. @@ -52,7 +52,7 @@ The maximum value which can be held in a #gshort. - +The maximum value which can be held in a #gushort. @@ -73,7 +73,7 @@ The maximum value which can be held in a #glong. - +The maximum value which can be held in a #gulong. diff --git a/docs/reference/glib/tmpl/macros_misc.sgml b/docs/reference/glib/tmpl/macros_misc.sgml index 06912ed..994ffb7 100644 --- a/docs/reference/glib/tmpl/macros_misc.sgml +++ b/docs/reference/glib/tmpl/macros_misc.sgml @@ -195,43 +195,79 @@ and function prototype. See the GNU C documentation for details. +This is the platform dependent conversion specifier for scanning and +printing values of type #gint16. It is a string literal, but doesn't +include the percent-sign, such that you can add precision and length +modifiers between percent-sign and conversion specifier. + + + + +gint16 in; +gint32 out; +sscanf ("42", "%" G_GINT16_FORMAT, &in) +out = in * 1000; +g_print ("%" G_GINT32_FORMAT, out); + + - +This is the platform dependent conversion specifier for scanning and +printing values of type #guint16. See also #G_GINT16_FORMAT. - +This is the platform dependent conversion specifier for scanning and +printing values of type #gint32. See also #G_GINT16_FORMAT. - +This is the platform dependent conversion specifier for scanning and +printing values of type #guint32. See also #G_GINT16_FORMAT. +This is the platform dependent conversion specifier for scanning and +printing values of type #gint64. See also #G_GINT16_FORMAT. + + + +Some platforms do not support scanning and printing 64 bit integers, +even though the types are supported. On such platforms G_GINT64_FORMAT +is not defined. + +This is the platform dependent conversion specifier for scanning and +printing values of type #guint64. See also #G_GINT16_FORMAT. + + + +Some platforms do not support scanning and printing 64 bit integers, +even though the types are supported. On such platforms G_GUINT64_FORMAT +is not defined. + diff --git a/docs/reference/glib/tmpl/types.sgml b/docs/reference/glib/tmpl/types.sgml index b3d63a4..a0ce13f 100644 --- a/docs/reference/glib/tmpl/types.sgml +++ b/docs/reference/glib/tmpl/types.sgml @@ -84,6 +84,7 @@ Values of this type can range from #G_MININT to #G_MAXINT. Corresponds to the standard C unsigned int type. +Values of this type can range from 0 to #G_MAXUINT. @@ -97,6 +98,7 @@ Values of this type can range from #G_MINSHORT to #G_MAXSHORT. Corresponds to the standard C unsigned short type. +Values of this type can range from 0 to #G_MAXUSHORT. @@ -110,6 +112,7 @@ Values of this type can range from #G_MINLONG to #G_MAXLONG. Corresponds to the standard C unsigned long type. +Values of this type can range from 0 to #G_MAXULONG. -- 2.7.4