mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-18 11:22:52 +02:00
docs: Fix typos in comments
This commit is contained in:
@@ -1685,7 +1685,7 @@ remove_interfaces (GDBusObjectManagerClient *manager,
|
|||||||
|
|
||||||
num_interfaces_to_remove = g_strv_length ((gchar **) interface_names);
|
num_interfaces_to_remove = g_strv_length ((gchar **) interface_names);
|
||||||
|
|
||||||
/* see if we are going to completety remove the object */
|
/* see if we are going to completely remove the object */
|
||||||
g_object_ref (manager);
|
g_object_ref (manager);
|
||||||
if (num_interfaces_to_remove == num_interfaces)
|
if (num_interfaces_to_remove == num_interfaces)
|
||||||
{
|
{
|
||||||
|
@@ -809,7 +809,7 @@ typedef enum
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert from @string in the encoding identified by @from_codeset,
|
* Convert from @string in the encoding identified by @from_codeset,
|
||||||
* returning a string in the encoding identifed by @to_codeset.
|
* returning a string in the encoding identified by @to_codeset.
|
||||||
* @len can be negative if @string is nul-terminated, or a non-negative
|
* @len can be negative if @string is nul-terminated, or a non-negative
|
||||||
* value in bytes. Flags defined in #ConvertCheckFlags can be set in @flags
|
* value in bytes. Flags defined in #ConvertCheckFlags can be set in @flags
|
||||||
* to check the input, the output, or both, for embedded nul bytes.
|
* to check the input, the output, or both, for embedded nul bytes.
|
||||||
|
@@ -169,7 +169,7 @@ g_datalist_unlock_and_set (GData **datalist, gpointer ptr)
|
|||||||
static gsize
|
static gsize
|
||||||
datalist_alloc_size (guint32 alloc)
|
datalist_alloc_size (guint32 alloc)
|
||||||
{
|
{
|
||||||
/* GDataElt also contains pointer. It thus is suitable aligned for pointers,
|
/* GDataElt also contains pointer. It thus is suitably aligned for pointers,
|
||||||
* and we can just append the pointer for the index at the end. */
|
* and we can just append the pointer for the index at the end. */
|
||||||
return G_STRUCT_OFFSET (GData, data) +
|
return G_STRUCT_OFFSET (GData, data) +
|
||||||
(((gsize) alloc) * sizeof (GDataElt)) +
|
(((gsize) alloc) * sizeof (GDataElt)) +
|
||||||
@@ -411,7 +411,7 @@ datalist_shrink (GData **data, GData **d_to_free)
|
|||||||
if (v != alloc_by_4)
|
if (v != alloc_by_4)
|
||||||
{
|
{
|
||||||
/* d->alloc is a power of two (unless it's G_MAXUINT32). Usually, we
|
/* d->alloc is a power of two (unless it's G_MAXUINT32). Usually, we
|
||||||
* remove one element at a time, then we will just reach reach a quarter
|
* remove one element at a time, then we will just reach a quarter
|
||||||
* of that.
|
* of that.
|
||||||
*
|
*
|
||||||
* However, with g_datalist_id_remove_multiple(), len can be smaller
|
* However, with g_datalist_id_remove_multiple(), len can be smaller
|
||||||
|
@@ -2026,7 +2026,7 @@ g_build_path_va (const gchar *separator,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_build_pathv:
|
* g_build_pathv:
|
||||||
* @separator: a string used to separator the elements of the path.
|
* @separator: a string used to separate the elements of the path.
|
||||||
* @args: (array zero-terminated=1) (element-type filename): %NULL-terminated
|
* @args: (array zero-terminated=1) (element-type filename): %NULL-terminated
|
||||||
* array of strings containing the path elements.
|
* array of strings containing the path elements.
|
||||||
*
|
*
|
||||||
@@ -2053,7 +2053,7 @@ g_build_pathv (const gchar *separator,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_build_path:
|
* g_build_path:
|
||||||
* @separator: (type filename): a string used to separator the elements of the path.
|
* @separator: (type filename): a string used to separate the elements of the path.
|
||||||
* @first_element: (type filename): the first element in the path
|
* @first_element: (type filename): the first element in the path
|
||||||
* @...: remaining elements in path, terminated by %NULL
|
* @...: remaining elements in path, terminated by %NULL
|
||||||
*
|
*
|
||||||
|
@@ -1909,7 +1909,7 @@ g_hash_table_steal_all (GHashTable *hash_table)
|
|||||||
* destroy function.
|
* destroy function.
|
||||||
*
|
*
|
||||||
* Returns: (transfer container): a #GPtrArray containing each key of
|
* Returns: (transfer container): a #GPtrArray containing each key of
|
||||||
* the table. Unref with with g_ptr_array_unref() when done.
|
* the table. Unref with g_ptr_array_unref() when done.
|
||||||
*
|
*
|
||||||
* Since: 2.76
|
* Since: 2.76
|
||||||
*/
|
*/
|
||||||
@@ -1946,7 +1946,7 @@ g_hash_table_steal_all_keys (GHashTable *hash_table)
|
|||||||
* destroy function.
|
* destroy function.
|
||||||
*
|
*
|
||||||
* Returns: (transfer container): a #GPtrArray containing each value of
|
* Returns: (transfer container): a #GPtrArray containing each value of
|
||||||
* the table. Unref with with g_ptr_array_unref() when done.
|
* the table. Unref with g_ptr_array_unref() when done.
|
||||||
*
|
*
|
||||||
* Since: 2.76
|
* Since: 2.76
|
||||||
*/
|
*/
|
||||||
@@ -2318,7 +2318,7 @@ g_hash_table_get_keys_as_array (GHashTable *hash_table,
|
|||||||
* You should always unref the returned array with g_ptr_array_unref().
|
* You should always unref the returned array with g_ptr_array_unref().
|
||||||
*
|
*
|
||||||
* Returns: (transfer container): a #GPtrArray containing each key from
|
* Returns: (transfer container): a #GPtrArray containing each key from
|
||||||
* the table. Unref with with g_ptr_array_unref() when done.
|
* the table. Unref with g_ptr_array_unref() when done.
|
||||||
*
|
*
|
||||||
* Since: 2.76
|
* Since: 2.76
|
||||||
**/
|
**/
|
||||||
@@ -2393,7 +2393,7 @@ g_hash_table_get_values (GHashTable *hash_table)
|
|||||||
* You should always unref the returned array with g_ptr_array_unref().
|
* You should always unref the returned array with g_ptr_array_unref().
|
||||||
*
|
*
|
||||||
* Returns: (transfer container): a #GPtrArray containing each value from
|
* Returns: (transfer container): a #GPtrArray containing each value from
|
||||||
* the table. Unref with with g_ptr_array_unref() when done.
|
* the table. Unref with g_ptr_array_unref() when done.
|
||||||
*
|
*
|
||||||
* Since: 2.76
|
* Since: 2.76
|
||||||
**/
|
**/
|
||||||
|
@@ -560,7 +560,7 @@ g_path_buf_to_path (GPathBuf *buf)
|
|||||||
* Compares two path buffers for equality and returns `TRUE`
|
* Compares two path buffers for equality and returns `TRUE`
|
||||||
* if they are equal.
|
* if they are equal.
|
||||||
*
|
*
|
||||||
* The path inside the paths buffers are not going to be normalized,
|
* The paths inside the path buffers are not going to be normalized,
|
||||||
* so `X/Y/Z/A/..`, `X/./Y/Z` and `X/Y/Z` are not going to be considered
|
* so `X/Y/Z/A/..`, `X/./Y/Z` and `X/Y/Z` are not going to be considered
|
||||||
* equal.
|
* equal.
|
||||||
*
|
*
|
||||||
|
@@ -1022,7 +1022,7 @@ g_parse_long_long (const gchar *nptr,
|
|||||||
guint base,
|
guint base,
|
||||||
gboolean *negative)
|
gboolean *negative)
|
||||||
{
|
{
|
||||||
/* this code is based on on the strtol(3) code from GNU libc released under
|
/* this code is based on the strtol(3) code from GNU libc released under
|
||||||
* the GNU Lesser General Public License.
|
* the GNU Lesser General Public License.
|
||||||
*
|
*
|
||||||
* Copyright (C) 1991,92,94,95,96,97,98,99,2000,01,02
|
* Copyright (C) 1991,92,94,95,96,97,98,99,2000,01,02
|
||||||
|
@@ -2874,7 +2874,7 @@ g_test_add_data_func (const char *testpath,
|
|||||||
*
|
*
|
||||||
* Creates a new test case.
|
* Creates a new test case.
|
||||||
*
|
*
|
||||||
* In constract to [func@GLib.test_add_data_func], this function
|
* In contrast to [func@GLib.test_add_data_func], this function
|
||||||
* is freeing @test_data after the test run is complete.
|
* is freeing @test_data after the test run is complete.
|
||||||
*
|
*
|
||||||
* Since: 2.34
|
* Since: 2.34
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Unit tests for g
|
/* Unit tests for gmem
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010 Red Hat, Inc.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: LicenseRef-old-glib-tests
|
* SPDX-License-Identifier: LicenseRef-old-glib-tests
|
||||||
|
@@ -78,7 +78,7 @@ main (int argc,
|
|||||||
#ifndef __linux__
|
#ifndef __linux__
|
||||||
if (!our_malloc_called)
|
if (!our_malloc_called)
|
||||||
{
|
{
|
||||||
/* For some reasons this doesn't work darwin systems, so ignore the result
|
/* For some reasons this doesn't work on darwin systems, so ignore the result
|
||||||
* for non-linux, while we want to ensure the test is valid at least there
|
* for non-linux, while we want to ensure the test is valid at least there
|
||||||
*/
|
*/
|
||||||
g_message ("Our malloc implementation has not been called, the test "
|
g_message ("Our malloc implementation has not been called, the test "
|
||||||
|
Reference in New Issue
Block a user