+2005-05-02 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gstring.c (g_str_equal, g_str_hash): Move docs
+ inline.
+
2005-05-01 Matthias Clasen <mclasen@redhat.com>
* glib/ghash.h: Rename some parameters to make gtk-doc
+2005-05-02 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gstring.c (g_str_equal, g_str_hash): Move docs
+ inline.
+
2005-05-01 Matthias Clasen <mclasen@redhat.com>
* glib/ghash.h: Rename some parameters to make gtk-doc
+2005-05-02 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gstring.c (g_str_equal, g_str_hash): Move docs
+ inline.
+
2005-05-01 Matthias Clasen <mclasen@redhat.com>
* glib/ghash.h: Rename some parameters to make gtk-doc
+2005-05-02 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gstring.c (g_str_equal, g_str_hash): Move docs
+ inline.
+
2005-05-01 Matthias Clasen <mclasen@redhat.com>
* glib/ghash.h: Rename some parameters to make gtk-doc
2005-05-02 Matthias Clasen <mclasen@redhat.com>
+ * glib/tmpl/hash_tables.sgml: Move some docs inline.
+
+ * glib/tmpl/windows.sgml:
* gobject/tmpl/signals.sgml:
* gobject/tmpl/generic_values.sgml:
* gobject/tmpl/gtype.sgml:
</para>
+<!-- ##### SECTION Stability_Level ##### -->
+
+
<!-- ##### STRUCT GHashTable ##### -->
<para>
The <structname>GHashTable</structname> struct is an opaque data structure to represent a
@v1:
@v2:
@Returns:
-<!-- # Unused Parameters # -->
-@v:
<!-- ##### FUNCTION g_int_hash ##### -->
<!-- ##### FUNCTION g_str_equal ##### -->
<para>
-Compares two strings and returns %TRUE if they are equal.
-It can be passed to g_hash_table_new() as the @key_equal_func
-parameter, when using strings as keys in a #GHashTable.
</para>
@v1:
-@v2: a key to compare with @v.
-@Returns: %TRUE if the two keys match.
-<!-- # Unused Parameters # -->
-@v: a key.
+@v2:
+@Returns:
<!-- ##### FUNCTION g_str_hash ##### -->
<para>
-Converts a string to a hash value.
-It can be passed to g_hash_table_new() as the @hash_func parameter, when
-using strings as keys in a #GHashTable.
</para>
-@v: a string key.
-@Returns: a hash value corresponding to the key.
+@v:
+@Returns:
</para>
+<!-- ##### SECTION Stability_Level ##### -->
+
+
<!-- ##### MACRO MAXPATHLEN ##### -->
<para>
Provided for UNIX emulation on Windows; equivalent to UNIX
-<!-- ##### TYPEDEF pid_t ##### -->
-<para>
-Provided for UNIX emulation on Windows; process ID type.
-</para>
-
-
<!-- ##### MACRO pipe ##### -->
<para>
Provided for UNIX emulation on Windows; see documentation for <function>pipe()</function>
in any UNIX manual.
</para>
-@phandles:
+@phandles: file descriptors, the first one for reading, the second one for writing.
<!-- ##### FUNCTION g_win32_error_message ##### -->
@Returns:
+<!-- ##### FUNCTION g_win32_locale_filename_from_utf8 ##### -->
+<para>
+
+</para>
+
+@utf8filename:
+@Returns:
+
+
<!-- ##### MACRO G_WIN32_DLLMAIN_FOR_DLL_NAME ##### -->
<para>
On Windows, this macro defines a <function>DllMain()</function> function
/* Hash Functions.
*/
+/**
+ * g_str_equal:
+ * @v1: a key.
+ * @v2: a key to compare with @v1.
+ *
+ * Compares two strings and returns %TRUE if they are equal.
+ * It can be passed to g_hash_table_new() as the @key_equal_func
+ * parameter, when using strings as keys in a #GHashTable.
+ *
+ * Returns: %TRUE if the two keys match.
+ */
gboolean
g_str_equal (gconstpointer v1,
gconstpointer v2)
return strcmp (string1, string2) == 0;
}
-/* 31 bit hash function */
+/**
+ * g_str_hash:
+ * @v: a string key.
+ *
+ * Converts a string to a hash value.
+ * It can be passed to g_hash_table_new() as the @hash_func parameter,
+ * when using strings as keys in a #GHashTable.
+ *
+ * Returns: a hash value corresponding to the key.
+ */
guint
-g_str_hash (gconstpointer key)
+g_str_hash (gconstpointer v)
{
- const char *p = key;
+ /* 31 bit hash function */
+ const char *p = v;
guint h = *p;
if (h)