[gtk-doc-cn] r168 committed - 提交NULL的glib翻译文档

3 views
Skip to first unread message

gtk-d...@googlecode.com

unread,
Oct 29, 2009, 6:00:33 AM10/29/09
to gtk-d...@googlegroups.com
Revision: 168
Author: yetist
Date: Thu Oct 29 02:59:57 2009
Log: 提交NULL的glib翻译文档
http://code.google.com/p/gtk-doc-cn/source/detail?r=168

Modified:
/trunk/zh_CN/glib/docs-2.20.4/tmpl/macros.sgml
/trunk/zh_CN/glib/docs-2.20.4/tmpl/type_conversion.sgml
/trunk/zh_CN/glib/docs-2.20.4/tmpl/types.sgml

=======================================
--- /trunk/zh_CN/glib/docs-2.20.4/tmpl/macros.sgml Fri Oct 9 01:22:15 2009
+++ /trunk/zh_CN/glib/docs-2.20.4/tmpl/macros.sgml Thu Oct 29 02:59:57 2009
@@ -1,12 +1,12 @@
<!-- ##### SECTION Title ##### -->
-Standard Macros
+标准宏

<!-- ##### SECTION Short_Description ##### -->
-commonly-used macros.
+常见宏。

<!-- ##### SECTION Long_Description ##### -->
<para>
-These macros provide a few commonly-used features.
+这些宏提供一些常用的功能。
</para>

<!-- ##### SECTION See_Also ##### -->
@@ -19,210 +19,197 @@

<!-- ##### MACRO G_OS_WIN32 ##### -->
<para>
-This macro is defined only on Windows. So you can bracket
-Windows-specific code in "&num;ifdef G_OS_WIN32".
+这些宏只在Windows上定义。所以你要使用针对于Windows的特定代码 "&num;ifdef
G_OS_WIN32"。
</para>



<!-- ##### MACRO G_OS_BEOS ##### -->
<para>
-This macro is defined only on BeOS. So you can bracket
-BeOS-specific code in "&num;ifdef G_OS_BEOS".
+这些宏只在BeOS上定义。所以你要使用针对于BeOS的特定代码 "&num;ifdef
G_OS_BEOS"。
</para>



<!-- ##### MACRO G_OS_UNIX ##### -->
<para>
-This macro is defined only on UNIX. So you can bracket
-UNIX-specific code in "&num;ifdef G_OS_UNIX".
+这些宏只在UNIX上定义。所以你要使用针对于UNIX的特定代码 "&num;ifdef
G_OS_UNIX"。
</para>



<!-- ##### MACRO G_DIR_SEPARATOR ##### -->
<para>
-The directory separator character.
-This is '/' on UNIX machines and '\' under Windows.
+目录分隔符。’/’是UNIX机器上的,’\’是Windows环境下的。
</para>



<!-- ##### MACRO G_DIR_SEPARATOR_S ##### -->
<para>
-The directory separator as a string.
-This is "/" on UNIX machines and "\" under Windows.
+目录分隔字符串。”/”是UNIX机器上的,”\”是Windows环境下的。
</para>



<!-- ##### MACRO G_IS_DIR_SEPARATOR ##### -->
<para>
-Checks whether a character is a directory
-separator. It returns %TRUE for '/' on UNIX
-machines and for '\' or '/' under Windows.
+检查一个字符是否是目录分隔符。'/'在UNIX机器上,以及'\' 和 '/' 在
Windows下,会返回一个%TRUE。
</para>

-@c: a character
+@c: 一个字符
@Since: 2.6


<!-- ##### MACRO G_SEARCHPATH_SEPARATOR ##### -->
<para>
-The search path separator character.
-This is ':' on UNIX machines and ';' under Windows.
+搜索路径分隔符。':'是UNIX机器上的,';'则是Windows下的。
</para>



<!-- ##### MACRO G_SEARCHPATH_SEPARATOR_S ##### -->
<para>
-The search path separator as a string.
-This is ":" on UNIX machines and ";" under Windows.
+搜索路径分隔字符串。':'是UNIX机器上的,';'则是Windows下的。
</para>



<!-- ##### MACRO TRUE ##### -->
<para>
-Defines the %TRUE value for the #gboolean type.
+定义#gboolean类型的%TRUE。
</para>



<!-- ##### MACRO FALSE ##### -->
<para>
-Defines the %FALSE value for the #gboolean type.
+定义#gboolean类型的% FALSE。
</para>



<!-- ##### MACRO NULL ##### -->
<para>
-Defines the standard %NULL pointer.
+定义标准的%NULL 指针。
</para>



<!-- ##### MACRO MIN ##### -->
<para>
-Calculates the minimum of @a and @b.
+计算@a 和 @b哪个小。
</para>

-@a: a numeric value.
-@b: a numeric value.
-@Returns: the minimum of @a and @b.
+@a: 一个数值变量。
+@b: 一个数值变量。
+@Returns: @a 和 @b之中更小的


<!-- ##### MACRO MAX ##### -->
<para>
-Calculates the maximum of @a and @b.
+计算@a 和 @b哪个大。
</para>

-@a: a numeric value.
-@b: a numeric value.
-@Returns: the maximum of @a and @b.
+@a: 一个数值变量。
+@b: 一个数值变量。
+@Returns: @a 和 @b之中更大的


<!-- ##### MACRO ABS ##### -->
<para>
-Calculates the absolute value of @a.
-The absolute value is simply the number with any negative sign taken away.
+计算@a的绝对值。绝对值仅仅是对任何数去掉负号。
</para>
<para>
-For example,
+例如:
<itemizedlist>
<listitem><para>
-ABS(-10) is 10.
+ABS(-10) 绝对值为10.
</para></listitem>
<listitem><para>
-ABS(10) is also 10.
+ABS(10) 还是 10.
</para></listitem>
</itemizedlist>
</para>

-@a: a numeric value.
-@Returns: the absolute value of @a.
+@a: 一个数值变量。
+@Returns: @a的绝对值。


<!-- ##### MACRO CLAMP ##### -->
<para>
-Ensures that @x is between the limits set by @low and @high. If @low is
-greater than @high the result is undefined.
+确保@x在@low 和 @high之间。如果@low大于@high,结果是未知的。
</para>
<para>
-For example,
+例如:
<itemizedlist>
<listitem><para>
-CLAMP(5, 10, 15) is 10.
+CLAMP(5, 10, 15) 结果是 10。
</para></listitem>
<listitem><para>
-CLAMP(15, 5, 10) is 10.
+CLAMP(15, 5, 10) 结果是10.
</para></listitem>
<listitem><para>
-CLAMP(20, 15, 25) is 20.
+CLAMP(20, 15, 25) 结果是20.
</para></listitem>
</itemizedlist>
</para>

-@x: the value to clamp.
-@low: the minimum value allowed.
-@high: the maximum value allowed.
-@Returns: the value of @x clamped to the range between @low and @high.
+@x: the value to clamp.【不清楚这里如何理解】
+@low: 允许的最小值。
+@high: 允许的最大值。
+@Returns: the value of @x clamped to the range between @low and @high. 【不
清楚这里如何理解】


<!-- ##### MACRO G_STRUCT_MEMBER ##### -->
<para>
-Returns a member of a structure at a given offset, using the given type.
+返回一个结构体指定偏移量的成员,使用指定类型
</para>

-@member_type: the type of the struct field.
-@struct_p: a pointer to a struct.
-@struct_offset: the offset of the field from the start of the struct, in
bytes.
-@Returns: the struct member.
+@member_type: 结构体类型。
+@struct_p:指向结构体的指针
+@struct_offset: 自结构体起始的偏移,字节类型。
+@Returns:结构体成员。


<!-- ##### MACRO G_STRUCT_MEMBER_P ##### -->
<para>
-Returns an untyped pointer to a given offset of a struct.
+返回一个结构体的既定偏移量的无类型指针。
</para>

-@struct_p: a pointer to a struct.
-@struct_offset: the offset from the start of the struct, in bytes.
-@Returns: an untyped pointer to @struct_p plus @struct_offset bytes.
+@struct_p: 指向结构体的指针。
+@struct_offset: 自结构体起始的偏移,字节类型。
+@Returns:指向@struct_p 加 @struct_offset 个字节数的无类型指针。


<!-- ##### MACRO G_STRUCT_OFFSET ##### -->
<para>
-Returns the offset, in bytes, of a member of a struct.
+返回偏移量,字节类型,结构体的成员。
</para>

-@struct_type: a structure type, e.g. <structname>GtkWidget</structname>.
-@member: a field in the structure, e.g. <structfield>window</structfield>.
-@Returns: the offset of @member from the start of @struct_type.
+@struct_type: 结构体类型, e.g. <structname>GtkWidget</structname>.
+@member:结构体的域。e.g. <structfield>window</structfield>。
+@Returns: @struct_type的@member的偏移量
+


<!-- ##### MACRO G_MEM_ALIGN ##### -->
<para>
-Indicates the number of bytes to which memory will be aligned on the
-current platform.
+指明当前平台内存对齐的字节数。
</para>



<!-- ##### MACRO G_CONST_RETURN ##### -->
<para>
-If %G_DISABLE_CONST_RETURNS is defined, this macro expands to nothing.
-By default, the macro expands to <literal>const</literal>. The macro
+如果 %G_DISABLE_CONST_RETURNS 定义了, this macro expands to nothing.
+默认情况下,, the macro expands to <literal>const</literal>. The macro
should be used in place of <literal>const</literal> for functions that
return a value that should not be modified. The purpose of this macro is
to allow us to turn on <literal>const</literal> for returned constant
strings by default, while allowing programmers who find that annoying to
turn it off. This macro should only be used for return values and for
<emphasis>out</emphasis> parameters, it doesn't make sense for
-<emphasis>in</emphasis> parameters.
+<emphasis>in</emphasis> parameters. 【不清楚这里如何理解】
</para>

-
-
=======================================
--- /trunk/zh_CN/glib/docs-2.20.4/tmpl/type_conversion.sgml Mon Oct 12
05:00:33 2009
+++ /trunk/zh_CN/glib/docs-2.20.4/tmpl/type_conversion.sgml Thu Oct 29
02:59:57 2009
@@ -6,45 +6,36 @@

<!-- ##### SECTION Long_Description ##### -->
<para>
-Many times GLib, GTK+, and other libraries allow you to pass "user
-data" to a callback, in the form of a void pointer. From time to time
-you want to pass an integer instead of a pointer. You could allocate
-an integer, with something like:
+很多情况下,Glib、GTK+以及其他的一些库,允许你在调用的时候以空指针的形式传
递user data 。有时你想传递一个整数而不是一个指针,你可以分配一个整数,像下面
的形式:
<informalexample><programlisting>
- int *ip = g_new (int, 1);
- *ip = 42;
+int *ip = g_new (int, 1);
+*ip = 42;
</programlisting></informalexample>
-But this is inconvenient, and it's annoying to have to free the
-memory at some later time.
+但这样非常的不方便,需要在后面的某个时间确定是否回收这些内存。
</para>
<para>
-Pointers are always at least 32 bits in size (on all platforms GLib
-intends to support). Thus you can store at least 32-bit integer values
-in a pointer value. Naively, you might try this, but it's incorrect:
+指针的在大小总是至少占用32位空间(在所有的平台上,GLib都是支持的)。
+所以你需要在一个指针中储存至少32位的整数。天真的你可能尝试像以下的方式实
现,但是不幸的是,它并不正确:
<informalexample><programlisting>
- gpointer p;
- int i;
- p = (void*) 42;
- i = (int) p;
+gpointer p;
+int i;
+p = (void*) 42;
+i = (int) p;
</programlisting></informalexample>
-Again, that example was <emphasis>not</emphasis> correct, don't copy it.
-The problem is that on some systems you need to do this:
+再强调一次,这个例子是<emphasis>not</emphasis>正确的,不要复制这它。这个问
题出在有些系统你需要像如下的方式实现:
<informalexample><programlisting>
- gpointer p;
- int i;
- p = (void*) (long) 42;
- i = (int) (long) p;
+gpointer p;
+int i;
+p = (void*) (long) 42;
+i = (int) (long) p;
</programlisting></informalexample>
-So GPOINTER_TO_INT(), GINT_TO_POINTER(), etc. do the right thing
-on the current platform.
+所以 GPOINTER_TO_INT(), GINT_TO_POINTER(),在当前的平台是正确的。
</para>
<para>
<warning>
<para>
-YOU MAY NOT STORE POINTERS IN INTEGERS. THIS IS NOT PORTABLE IN ANY
-WAY SHAPE OR FORM. These macros <emphasis>ONLY</emphasis> allow
-storing integers in pointers, and only preserve 32 bits of the
-integer; values outside the range of a 32-bit integer will be mangled.
+你不能在一个整数中储存一个指针。以任何方式都不可能实现这个目的。
+这些宏<emphasis>只</emphasis>允许在指针中储存整数,而且只储存32位整形。超出
32位的整形值,将被截断。
</para>
</warning>
</para>
@@ -59,64 +50,59 @@

<!-- ##### MACRO GINT_TO_POINTER ##### -->
<para>
-Stuffs an integer into a pointer type.
+在指针类型中填充整数。
</para>
<para>
-Remember, YOU MAY NOT STORE POINTERS IN INTEGERS. THIS IS NOT PORTABLE
-IN ANY WAY SHAPE OR FORM. These macros <emphasis>ONLY</emphasis> allow
-storing integers in pointers, and only preserve 32 bits of the
-integer; values outside the range of a 32-bit integer will be mangled.
+记住,你不能在一个整数中储存一个指针。以任何方式都不可能实现这个目的。
+这些宏<emphasis>只</emphasis>允许在指针中储存整数,而且只储存32位整形。超出
32位的整形值,将被截断。
</para>

-@i: integer to stuff into a pointer.
+@i: 在指针类型中填充整数


<!-- ##### MACRO GPOINTER_TO_INT ##### -->
<para>
-Extracts an integer from a pointer. The integer must have
-been stored in the pointer with GINT_TO_POINTER().
+在一个指针中取出一个整数。这个整数必须是用GINT_TO_POINTER()存储在一个指针
中。(实际上两者都是指针)
</para>
<para>
-Remember, YOU MAY NOT STORE POINTERS IN INTEGERS. THIS IS NOT PORTABLE
-IN ANY WAY SHAPE OR FORM. These macros <emphasis>ONLY</emphasis> allow
-storing integers in pointers, and only preserve 32 bits of the
-integer; values outside the range of a 32-bit integer will be mangled.
+记住,你不能在一个整数中储存一个指针。以任何方式都不可能实现这个目的。
+这些宏<emphasis>只</emphasis>允许在指针中储存整数,而且只储存32位整形。超出
32位的整形值,将被截断。
</para>

-@p: pointer containing an integer.
+@p: 指针包含整形


<!-- ##### MACRO GUINT_TO_POINTER ##### -->
<para>
-Stuffs an unsigned integer into a pointer type.
+在指针类型中填充无符号整数
</para>

-@u: unsigned integer to stuff into the pointer.
+@u: 指针中填充unsigned integer


<!-- ##### MACRO GPOINTER_TO_UINT ##### -->
<para>
-Extracts an unsigned integer from a pointer. The integer must have
-been stored in the pointer with GUINT_TO_POINTER().
+在指针中取出一个整数。这个整数必须是用GINT_TO_POINTER()存储在一个指针中。
(事实上两者都是指针)
+记住,你不能储存指针到整数中。以任何方式都不可能实现这个目的。
+这些宏只允许在指针中储存整数,而且只储存32位整型。超出32位的整型值,将被截
断。
</para>

-@p: pointer to extract an unsigned integer from.
+@p: 从指针类型中取unsigned integer。


<!-- ##### MACRO GSIZE_TO_POINTER ##### -->
<para>
-Stuffs a #gsize into a pointer type.
+放一个 #gsize到指针类型中。
</para>

-@s: #gsize to stuff into the pointer.
+@s: #gsize 存放到指针类型中


<!-- ##### MACRO GPOINTER_TO_SIZE ##### -->
<para>
-Extracts a #gsize from a pointer. The #gsize must have
-been stored in the pointer with GSIZE_TO_POINTER().
+从指针类型中取出一个#gsize类型。 此 #gsize 必须
+使用GSIZE_TO_POINTER()存储到指针类型中。
</para>

-@p: pointer to extract a #gsize from.
-
-
+@p: 从指针类型中取出 #gsize 。
+
=======================================
--- /trunk/zh_CN/glib/docs-2.20.4/tmpl/types.sgml Fri Oct 9 01:22:15 2009
+++ /trunk/zh_CN/glib/docs-2.20.4/tmpl/types.sgml Thu Oct 29 02:59:57 2009
@@ -1,31 +1,30 @@
<!-- ##### SECTION Title ##### -->
-Basic Types
+基本类型

<!-- ##### SECTION Short_Description ##### -->
-standard GLib types, defined for ease-of-use and portability
+GLib 标准类型, 定义的非常易用和简便

<!-- ##### SECTION Long_Description ##### -->
<para>
-GLib defines a number of commonly used types, which can be divided into
-4 groups:
+GLib定义的这些普通的适用类型,分为了4组:

<itemizedlist>
<listitem><para>
-New types which are not part of standard C - #gboolean, #gsize, #gssize.
+非标准C的新类型- #gboolean, #gsize, #gssize.
</para></listitem>

<listitem><para>
-Integer types which are guaranteed to be the same size across all
platforms -
+跨平台使用的整型 -
#gint8, #guint8, #gint16, #guint16, #gint32, #guint32, #gint64, #guint64.
</para></listitem>

<listitem><para>
-Types which are easier to use than their standard C counterparts -
+与标准C相似但更好用的类型 -
#gpointer, #gconstpointer, #guchar, #guint, #gushort, #gulong.
</para></listitem>

<listitem><para>
-Types which correspond exactly to standard C types, but are included
+与标准C基本一致的类型【这里拿不定。。】Types which correspond exactly to
standard C types, but are included
for completeness - #gchar, #gint, #gshort, #glong, #gfloat, #gdouble.
</para></listitem>
</itemizedlist>
@@ -42,177 +41,168 @@

<!-- ##### TYPEDEF gboolean ##### -->
<para>
-A standard <type>boolean</type> type.
-Variables of this type should only contain the value %TRUE or %FALSE.
+标准 <type>boolean</type> 类型.
+它只储存两个值:%TRUE or %FALSE.
</para>


<!-- ##### TYPEDEF gpointer ##### -->
<para>
-An untyped pointer.
-#gpointer looks better and is easier to use than <type>void*</type>.
+无类型的指针。
+#gpointer比<type>void*</type>更易理解和更好用.
</para>


<!-- ##### TYPEDEF gconstpointer ##### -->
<para>
-An untyped pointer to constant data.
-The data pointed to should not be changed.
+一个常数的无类型指针。指针的值不能被更改。
</para>
<para>
-This is typically used in function prototypes to indicate that the
-data pointed to will not be altered by the function.
+典型的使用在子函数原型上,指出指针所指向的数据是不能被函数更改的。
</para>


<!-- ##### TYPEDEF gchar ##### -->
<para>
-Corresponds to the standard C <type>char</type> type.
+与标准C的<type>char</type>类型一致。
</para>


<!-- ##### TYPEDEF guchar ##### -->
<para>
-Corresponds to the standard C <type>unsigned char</type> type.
+与标准C的<type>unsigned char</type>一致。
</para>


<!-- ##### TYPEDEF gint ##### -->
<para>
-Corresponds to the standard C <type>int</type> type.
-Values of this type can range from #G_MININT to #G_MAXINT.
+类似标准C的<type>int</type>类型。其值设置在G_MININT 到 G_MAXINT范围内。
</para>


<!-- ##### TYPEDEF guint ##### -->
<para>
-Corresponds to the standard C <type>unsigned int</type> type.
-Values of this type can range from 0 to #G_MAXUINT.
+类似标准C的<type>unsigned int</type>类型。其值设置在0到 G_MAXUINT的范围内。
</para>


<!-- ##### TYPEDEF gshort ##### -->
<para>
-Corresponds to the standard C <type>short</type> type.
-Values of this type can range from #G_MINSHORT to #G_MAXSHORT.
+类似标准C的<type>short</type>类型。其值设置在G_MINSHORT 到 G_MAXSHORT范围
内。
</para>


<!-- ##### TYPEDEF gushort ##### -->
<para>
-Corresponds to the standard C <type>unsigned short</type> type.
-Values of this type can range from 0 to #G_MAXUSHORT.
+类似标准C的<type>unsigned short</type>类型。其值设置在0到 G_MAXUSHORT的范
内。
</para>


<!-- ##### TYPEDEF glong ##### -->
<para>
-Corresponds to the standard C <type>long</type> type.
-Values of this type can range from #G_MINLONG to #G_MAXLONG.
+类似标准C的<type>long</type>类型。其值设置在G_MINLONG 到 G_MAXLONG范围内。
</para>


<!-- ##### TYPEDEF gulong ##### -->
<para>
-Corresponds to the standard C <type>unsigned long</type> type.
-Values of this type can range from 0 to #G_MAXULONG.
+类似标准C的<type>unsigned long</type>类型。其值设置在0到 G_MAXULONG范围内。
</para>


<!-- ##### TYPEDEF gint8 ##### -->
<para>
-A signed integer guaranteed to be 8 bits on all platforms.
-Values of this type can range from -128 to 127.
+在任何平台上都保证是一个有符号8位整数。
+取值范围为 -128 到 127
</para>


<!-- ##### TYPEDEF guint8 ##### -->
<para>
-An unsigned integer guaranteed to be 8 bits on all platforms.
-Values of this type can range from 0 to 255.
+在任何平台上都保证是一个无符号8位整数。
+取值范围为 0 到 255
</para>


<!-- ##### TYPEDEF gint16 ##### -->
<para>
-A signed integer guaranteed to be 16 bits on all platforms.
-Values of this type can range from -32,768 to 32,767.
+在任何平台上都保证是一个有符号16位整数。
+取值范围为 -32,768 到 32,767
</para>
<para>
-To print or scan values of this type, use
-%G_GINT16_MODIFIER and/or %G_GINT16_FORMAT.
+要 print 或scan 此类型的值, 使用
+%G_GINT16_MODIFIER 和(或) %G_GINT16_FORMAT.
</para>


<!-- ##### TYPEDEF guint16 ##### -->
<para>
-An unsigned integer guaranteed to be 16 bits on all platforms.
-Values of this type can range from 0 to 65,535.
+在任何平台上都保证是一个无符号16位整数。
+取值范围为0 到 65,535
</para>
<para>
-To print or scan values of this type, use
-%G_GINT16_MODIFIER and/or %G_GUINT16_FORMAT.
+要 print 或scan 此类型的值, 使用
+%G_GINT16_MODIFIER 和(或) %G_GUINT16_FORMAT.
</para>


<!-- ##### TYPEDEF gint32 ##### -->
<para>
-A signed integer guaranteed to be 32 bits on all platforms.
-Values of this type can range from -2,147,483,648 to 2,147,483,647.
+在任何平台上都保证是一个有符号32位整数。
+取值范围为 -2,147,483,648 到 2,147,483,647
</para>
<para>
-To print or scan values of this type, use
-%G_GINT32_MODIFIER and/or %G_GINT32_FORMAT.
+要 print 或scan 此类型的值, 使用
+%G_GINT32_MODIFIER 和(或) %G_GINT32_FORMAT.
</para>


<!-- ##### TYPEDEF guint32 ##### -->
<para>
-An unsigned integer guaranteed to be 32 bits on all platforms.
-Values of this type can range from 0 to 4,294,967,295.
+在任何平台上都保证是一个无符号32位整数。
+取值范围为 0 到 4,294,967,295
</para>
<para>
-To print or scan values of this type, use
-%G_GINT32_MODIFIER and/or %G_GUINT32_FORMAT.
+要 print 或scan 此类型的值, 使用
+%G_GINT32_MODIFIER 和(或) %G_GUINT32_FORMAT.
</para>


<!-- ##### MACRO G_HAVE_GINT64 ##### -->
<para>
-This macro is defined if 64-bit signed and unsigned integers are available
-on the platform.
+在任何平台上都保证是一个有符号64位整数。
+取值范围为 -9,223,372,036,854,775,808 到 9,223,372,036,854,775,807
</para>

-@Deprecated: GLib requires 64-bit integer support since version 2.0,
therefore
-%G_HAVE_GINT64 is <emphasis>always</emphasis> defined.
-
+@Deprecated: GLib 2.0版以后需要64-bit 整型支持,所以
+%G_HAVE_GINT64 <emphasis>总是</emphasis> 要定义的。

<!-- ##### TYPEDEF gint64 ##### -->
<para>
-A signed integer guaranteed to be 64 bits on all platforms.
-Values of this type can range from -9,223,372,036,854,775,808 to
-9,223,372,036,854,775,807.
+在任何平台上都保证是一个有符号64位整数。
+取值范围为 -9,223,372,036,854,775,808 到 9,223,372,036,854,775,807
</para>
<para>
-To print or scan values of this type, use
-%G_GINT64_MODIFIER and/or %G_GINT64_FORMAT.
+要 print 或scan 此类型的值, 使用
+%G_GINT64_MODIFIER 和(或) %G_GINT64_FORMAT.
</para>


+
<!-- ##### TYPEDEF guint64 ##### -->
<para>
-An unsigned integer guaranteed to be 64 bits on all platforms.
-Values of this type can range from 0 to 18,446,744,073,709,551,615.
+在任何平台上都保证是一个无符号32位整数。
+取值范围为 0 到 18,446,744,073,709,551,615
</para>
<para>
-To print or scan values of this type, use
-%G_GINT64_MODIFIER and/or %G_GUINT64_FORMAT.
+要 print 或scan 此类型的值, 使用
+%G_GINT64_MODIFIER 和(或) %G_GUINT64_FORMAT.
</para>


<!-- ##### MACRO G_GINT64_CONSTANT ##### -->
<para>
-This macro is used to insert 64-bit integer literals into the source code.
+This macro is used to insert 64-bit integer literals into the source
code.【不能确定】
</para>

@val: a literal integer value, e.g. 0x1d636b02300a7aa7.
@@ -221,7 +211,7 @@
<!-- ##### MACRO G_GUINT64_CONSTANT ##### -->
<para>
This macro is used to insert 64-bit unsigned integer literals into the
-source code.
+source code. 【不能确定】
</para>

@val: a literal integer value, e.g. 0x1d636b02300a7aa7U.
@@ -230,45 +220,42 @@

<!-- ##### TYPEDEF gfloat ##### -->
<para>
-Corresponds to the standard C <type>float</type> type.
-Values of this type can range from -#G_MAXFLOAT to #G_MAXFLOAT.
+类似标准C的<type>float</type>类型。
+取值为 -G_MAXFLOAT 到 G_MAXFLOAT范围内。
</para>


<!-- ##### TYPEDEF gdouble ##### -->
<para>
-Corresponds to the standard C <type>double</type> type.
-Values of this type can range from -#G_MAXDOUBLE to #G_MAXDOUBLE.
+类似标准C的<type>double</type>类型。
+取值为 -G_MAXDOUBLE 到G_MAXDOUBLE范围内。
</para>


<!-- ##### TYPEDEF gsize ##### -->
<para>
-An unsigned integer type of the result of the sizeof operator,
corresponding
-to the size_t type defined in C99. This type is wide enough to hold the
numeric
-value of a pointer, so it is usually 32bit wide on a 32bit platform and
-64bit wide on a 64bit platform.
+无符号整形,用来储存sizeof的结果,与C99的size_t类型类似。
+这个类型能足够存储下一个指针的数据。通常在32为平台上是32位的,在64位平台上
是64位的。
</para>
<para>
-To print or scan values of this type, use
-%G_GSIZE_MODIFIER and/or %G_GSIZE_FORMAT.
+要 print 或scan 此类型的值, 使用
+%G_GSIZE_MODIFIER 和(或) %G_GSIZE_FORMAT.
</para>


<!-- ##### TYPEDEF gssize ##### -->
<para>
-A signed variant of gsize, corresponding to the ssize_t defined on most
platforms.
+有符号gsize,与大多数平台的ssize_t类型类似。
</para>
<para>
-To print or scan values of this type, use
-%G_GSIZE_MODIFIER and/or %G_GSSIZE_FORMAT.
+要 print 或scan 此类型的值, 使用
+%G_GSIZE_MODIFIER 和(或) %G_GSSIZE_FORMAT.
</para>


<!-- ##### TYPEDEF goffset ##### -->
<para>
-A signed integer type that is used for file offsets, corresponding to the
-C99 type off64_t.
+有符号的整形,用来作为文件偏移。类似于C99的off64_t。
</para>

Since: 2.14
@@ -277,10 +264,9 @@
<!-- ##### MACRO G_GOFFSET_CONSTANT ##### -->
<para>
This macro is used to insert #goffset 64-bit integer literals into the
source code.
-See also #G_GINT64_CONSTANT.
+See also #G_GINT64_CONSTANT. 【不能确定】
</para>

@val: a literal integer value, e.g. 0x1d636b02300a7aa7.
Since: 2.20

-
Reply all
Reply to author
Forward
0 new messages