Merge branch 'codespell' into 'master'

tree: Fix various typos and outdated terminology

See merge request GNOME/glib!1530
This commit is contained in:
Philip Withnall 2020-06-12 16:18:40 +00:00
commit 1cd7d1ade2
128 changed files with 253 additions and 251 deletions

View File

@ -2,8 +2,9 @@
set -e
# We need to add a new remote for the upstream master, since this script could
# be running in a personal fork of the repository which has out of date branches.
# We need to add a new remote for the upstream target branch, since this script
# could be running in a personal fork of the repository which has out of date
# branches.
git remote add upstream https://gitlab.gnome.org/GNOME/glib.git
git fetch upstream

View File

@ -5,8 +5,9 @@ set -e
# Wrap everything in a subshell so we can propagate the exit status.
(
# We need to add a new remote for the upstream master, since this script could
# be running in a personal fork of the repository which has out of date branches.
# We need to add a new remote for the upstream target branch, since this script
# could be running in a personal fork of the repository which has out of date
# branches.
git remote add upstream https://gitlab.gnome.org/GNOME/glib.git
git fetch upstream

View File

@ -34,7 +34,7 @@ In the bug report please include:
As a last resort, you can also provide a pointer to a larger piece
of software that can be downloaded.
* If the bug was a crash, the exact text that was printed out
when the crash occured.
when the crash occurred.
* Further information such as stack traces may be useful, but
is not necessary.

View File

@ -1,6 +1,6 @@
Traps (G_BREAKPOINT) and traces for the debuging
================================================
Traps (G_BREAKPOINT) and traces for the debugging
=================================================
Some code portions contain trap variables that can be set during
debugging time if G_ENABLE_DEBUG has been defined upon compilation

View File

@ -952,7 +952,7 @@ my_app_frobber_proxy_new_sync (GDBusConnection *connection,
the <function>net.Corp.MyApp.Frobber.HelloWorld()</function>
D-Bus method, connect to the
<function>::notification</function> GObject signal to receive
the <function>net.Corp.MyApp.Frobber::Notication</function>
the <function>net.Corp.MyApp.Frobber::Notification</function>
D-Bus signal and get/set the
<parameter>net.Corp.MyApp.Frobber:Verbose</parameter> D-Bus
Property using either the GObject property

View File

@ -133,7 +133,7 @@
<xi:include href="xml/gnetworking.xml"/>
</chapter>
<chapter id="highlevel-socket">
<title>High-level network functionallity</title>
<title>High-level network functionality</title>
<xi:include href="xml/gsocketclient.xml"/>
<xi:include href="xml/gsocketconnection.xml"/>
<xi:include href="xml/gunixconnection.xml"/>

View File

@ -161,7 +161,7 @@
have a GConf schema. GConf comes with a commandline tool
gsettings-schema-convert that can help with the task of converting
a GConf schema into an equivalent GSettings schema. The tool is not
perfect and may need assistence in some cases.
perfect and may need assistance in some cases.
</para>
<example><title>An example for using gsettings-schema-convert</title>
<para>Running <userinput>gsettings-schema-convert --gconf --xml --schema-id "org.gnome.font-rendering" --output org.gnome.font-rendering.gschema.xml destop_gnome_font_rendering.schemas</userinput> on the following <filename>desktop_gnome_font_rendering.schemas</filename> file:

View File

@ -281,7 +281,7 @@ be careful. GIO has extension points whose implementations get loaded
from modules (executable code in shared objects), which could allow
an attacker to sneak his own code into your application by tricking it
into loading the code as a module. However, GIO will never load modules
from your home directory except when explictly asked to do so via an
from your home directory except when explicitly asked to do so via an
environment variable.
</para>

View File

@ -12,7 +12,7 @@
<refnamediv>
<refname>Changes to GLib</refname>
<refpurpose>
Incompatible changes made between successing versions of GLib
Incompatible changes made between successive versions of GLib
</refpurpose>
</refnamediv>

View File

@ -288,7 +288,7 @@
</para>
<para>
Unicode escapes of the form <literal>\uxxxx</literal> and <literal>\Uxxxxxxxx</literal> are supported, in
hexidecimal. The usual control sequence escapes <literal>\a</literal>, <literal>\b</literal>,
hexadecimal. The usual control sequence escapes <literal>\a</literal>, <literal>\b</literal>,
<literal>\f</literal>, <literal>\n</literal>, <literal>\r</literal>, <literal>\t</literal> and
<literal>\v</literal> are supported. Additionally, a <literal>\</literal> before a newline character causes
the newline to be ignored. Finally, any other character following <literal>\</literal> is copied literally
@ -296,7 +296,7 @@
additions you should only use this feature when necessary for escaping backslashes or quotes.
</para>
<para>
The usual octal and hexidecimal escapes <literal>\0nnn</literal> and <literal>\xnn</literal> are not
The usual octal and hexadecimal escapes <literal>\0nnn</literal> and <literal>\xnn</literal> are not
supported here. Those escapes are used to encode byte values and GVariant strings are Unicode.
</para>
<para>
@ -309,10 +309,10 @@
<para>
Numbers are given by default as decimal values. Octal and hex values can be given in the usual way (by
prefixing with <literal>0</literal> or <literal>0x</literal>). Note that GVariant considers bytes to be
unsigned integers and will print them as a two digit hexidecimal number by default.
unsigned integers and will print them as a two digit hexadecimal number by default.
</para>
<para>
Floating point numbers can also be given in the usual ways, including scientific and hexidecimal notations.
Floating point numbers can also be given in the usual ways, including scientific and hexadecimal notations.
</para>
<para>
For lack of additional information, integers will be parsed as int32 values by default. If the number has a
@ -575,7 +575,7 @@
<para>
Bytestrings support the full range of escapes that you would expect (ie: those supported by
<link linkend='g-strcompress'><function>g_strcompress()</function></link>. This includes the normal control
sequence escapes (as mentioned in the section on strings) as well as octal and hexidecimal escapes of the
sequence escapes (as mentioned in the section on strings) as well as octal and hexadecimal escapes of the
forms <literal>\0nnn</literal> and <literal>\xnn</literal>.
</para>
<para>

View File

@ -690,7 +690,7 @@ g_variant_unref (value);]]></programlisting></informalexample>
<link linkend='g-variant-get'><function>g_variant_get()</function></link> returns (by reference) a
non-<link linkend='NULL:CAPS'><literal>NULL</literal></link> pointer. When any of these format strings are
prefixed with an '<literal>m</literal>', the type of arguments that are collected does not change in any way, but
<link linkend='NULL:CAPS'><literal>NULL</literal></link> becomes a permissable value, to indicate the Nothing case.
<link linkend='NULL:CAPS'><literal>NULL</literal></link> becomes a permissible value, to indicate the Nothing case.
</para>
<para>
Note that the "special exception" introduced in the array section for constructing empty arrays is ignored

View File

@ -2313,7 +2313,7 @@ refer to them instead of the whole pattern. In a larger pattern, keeping
track of parenthesis numbers can be tricky. It may be more convenient to
use named parentheses instead.
The Perl syntax for this is (?&amp;name); GRegex also supports the(?P>name)
syntac. We could rewrite the above example as follows:
syntax. We could rewrite the above example as follows:
</para>
<programlisting>

View File

@ -311,7 +311,7 @@ How to run and debug your GLib application
<ulink url="https://docs.microsoft.com/en-us/windows/desktop/debug/vectored-exception-handling">Vectored Exception Handling</ulink>
on Windows (see <link linkend="G_DEBUGGER"><envar>G_DEBUGGER</envar></link>), allowing GLib to catch more
exceptions. Set this variable to a comma-separated list of
hexademical exception codes that should additionally be caught.
hexadecimal exception codes that should additionally be caught.
</para>
<para>
By default GLib will only catch Access Violation, Stack Overflow and

View File

@ -90,7 +90,7 @@ __gio_location() {
if ! __has_common_prefix; then
COMPREPLY=("${mounts[@]} ${names[@]}")
# Workaround to prevent overwritting suggestions, it adds empty
# Workaround to prevent overwriting suggestions, it adds empty
# suggestion, otherwise names with colons will be corrupted
COMPREPLY+=(" ")

View File

@ -2870,7 +2870,7 @@ g_application_unmark_busy (GApplication *application)
* Gets the application's current busy state, as set through
* g_application_mark_busy() or g_application_bind_busy_property().
*
* Returns: %TRUE if @application is currenty marked as busy
* Returns: %TRUE if @application is currently marked as busy
*
* Since: 2.44
*/

View File

@ -67,7 +67,7 @@ loop:
* current thread and since we're doing only sync operations,
* this is safe.... */
/* CancelIoEx is only Vista+. Since we have only one overlap
* operaton on this thread, we can just use: */
* operation on this thread, we can just use: */
result = CancelIo (hfile);
g_warn_if_fail (result);
}

View File

@ -595,7 +595,7 @@ g_converter_output_stream_flush (GOutputStream *stream,
if (!is_closing &&
res == G_CONVERTER_FLUSHED)
{
/* Should not have retured FLUSHED with input left */
/* Should not have returned FLUSHED with input left */
g_assert (buffer_data_size (&priv->output_buffer) == 0);
flushed = TRUE;
}

View File

@ -1847,7 +1847,7 @@ class CodeGenerator:
' *\n'
' * Finishes an operation started with %s_call_%s().\n'
' *\n'
' * Returns: (skip): %%TRUE if the call succeded, %%FALSE if @error is set.\n'
' * Returns: (skip): %%TRUE if the call succeeded, %%FALSE if @error is set.\n'
%(i.name_lower, m.name_lower, i.name_lower, m.name_lower), False))
self.write_gtkdoc_deprecated_and_since_and_close(m, self.outfile, 0)
self.outfile.write('gboolean\n'
@ -1909,7 +1909,7 @@ class CodeGenerator:
' *\n'
' * See %s_call_%s() for the asynchronous version of this method.\n'
' *\n'
' * Returns: (skip): %%TRUE if the call succeded, %%FALSE if @error is set.\n'
' * Returns: (skip): %%TRUE if the call succeeded, %%FALSE if @error is set.\n'
%(i.name, m.name, i.name_lower, m.name_lower), False))
self.write_gtkdoc_deprecated_and_since_and_close(m, self.outfile, 0)
self.outfile.write('gboolean\n'

View File

@ -264,7 +264,7 @@ g_memory_buffer_write (GMemoryBuffer *mbuf,
if (mbuf->pos + count > mbuf->len)
{
/* At least enought to fit the write, rounded up
/* At least enough to fit the write, rounded up
for greater than linear growth.
TODO: This wastes a lot of memory at large buffer sizes.
Figure out a more rational allocation strategy. */
@ -3378,7 +3378,7 @@ g_dbus_message_to_gerror (GDBusMessage *message,
}
else
{
/* TOOD: this shouldn't happen - should check this at message serialization
/* TODO: this shouldn't happen - should check this at message serialization
* time and disconnect the peer.
*/
g_set_error (error,

View File

@ -1164,7 +1164,7 @@ subscribe_signals (GDBusObjectManagerClient *manager,
name_owner,
NULL, /* interface */
NULL, /* member */
NULL, /* path - TODO: really want wilcard support here */
NULL, /* path - TODO: really want wildcard support here */
NULL, /* arg0 */
G_DBUS_SIGNAL_FLAGS_NONE |
G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE,
@ -1197,7 +1197,7 @@ subscribe_signals (GDBusObjectManagerClient *manager,
name_owner,
NULL, /* interface */
NULL, /* member */
NULL, /* path - TODO: really want wilcard support here */
NULL, /* path - TODO: really want wildcard support here */
NULL, /* arg0 */
G_DBUS_SIGNAL_FLAGS_NONE,
signal_cb,

View File

@ -1504,7 +1504,7 @@ continue_writing (GDBusWorker *worker)
}
else
{
/* filters altered the message -> reencode */
/* filters altered the message -> re-encode */
error = NULL;
new_blob = g_dbus_message_to_blob (data->message,
&new_blob_size,

View File

@ -416,7 +416,7 @@ const gchar desktop_key_match_category[N_DESKTOP_KEYS] = {
};
/* Common prefix commands to ignore from Exec= lines */
const char * const exec_key_match_blacklist[] = {
const char * const exec_key_match_blocklist[] = {
"bash",
"env",
"flatpak",
@ -771,7 +771,7 @@ desktop_file_dir_unindexed_get_tweaks (DesktopFileDir *dir,
static void
expand_strv (gchar ***strv_ptr,
gchar **to_add,
gchar * const *blacklist)
gchar * const *blocklist)
{
guint strv_len, add_len;
gchar **strv;
@ -790,10 +790,10 @@ expand_strv (gchar ***strv_ptr,
for (i = 0; to_add[i]; i++)
{
/* Don't add blacklisted strings */
if (blacklist)
for (j = 0; blacklist[j]; j++)
if (g_str_equal (to_add[i], blacklist[j]))
/* Don't add blocklisted strings */
if (blocklist)
for (j = 0; blocklist[j]; j++)
if (g_str_equal (to_add[i], blocklist[j]))
goto no_add;
/* Don't add duplicates already in the list */
@ -915,7 +915,7 @@ desktop_file_dir_unindexed_read_mimeapps_lists (DesktopFileDir *dir)
dir->mime_tweaks = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, free_mime_tweaks);
/* We process in order of precedence, using a blacklisting approach to
/* We process in order of precedence, using a blocklisting approach to
* avoid recording later instructions that conflict with ones we found
* earlier.
*
@ -1134,8 +1134,8 @@ desktop_file_dir_unindexed_setup_search (DesktopFileDir *dir)
if ((slash = strrchr (raw, '/')))
value = slash + 1;
/* Don't match on blacklisted binaries like interpreters */
if (g_strv_contains (exec_key_match_blacklist, value))
/* Don't match on blocklisted binaries like interpreters */
if (g_strv_contains (exec_key_match_blocklist, value))
value = NULL;
}
@ -1199,7 +1199,7 @@ static void
desktop_file_dir_unindexed_mime_lookup (DesktopFileDir *dir,
const gchar *mime_type,
GPtrArray *hits,
GPtrArray *blacklist)
GPtrArray *blocklist)
{
UnindexedMimeTweaks *tweaks;
gint i;
@ -1216,7 +1216,7 @@ desktop_file_dir_unindexed_mime_lookup (DesktopFileDir *dir,
gchar *app_name = tweaks->additions[i];
if (!desktop_file_dir_app_name_is_masked (dir, app_name) &&
!array_contains (blacklist, app_name) && !array_contains (hits, app_name))
!array_contains (blocklist, app_name) && !array_contains (hits, app_name))
g_ptr_array_add (hits, app_name);
}
}
@ -1228,8 +1228,8 @@ desktop_file_dir_unindexed_mime_lookup (DesktopFileDir *dir,
gchar *app_name = tweaks->removals[i];
if (!desktop_file_dir_app_name_is_masked (dir, app_name) &&
!array_contains (blacklist, app_name) && !array_contains (hits, app_name))
g_ptr_array_add (blacklist, app_name);
!array_contains (blocklist, app_name) && !array_contains (hits, app_name))
g_ptr_array_add (blocklist, app_name);
}
}
}
@ -1447,14 +1447,14 @@ desktop_file_dir_get_all (DesktopFileDir *dir,
* @dir: a #DesktopFileDir
* @mime_type: the mime type to look up
* @hits: the array to store the hits
* @blacklist: the array to store the blacklist
* @blocklist: the array to store the blocklist
*
* Does a lookup of a mimetype against one desktop file directory,
* recording any hits and blacklisting and "Removed" associations (so
* recording any hits and blocklisting and "Removed" associations (so
* later directories don't record them as hits).
*
* The items added to @hits are duplicated, but the ones in @blacklist
* are weak pointers. This facilitates simply freeing the blacklist
* The items added to @hits are duplicated, but the ones in @blocklist
* are weak pointers. This facilitates simply freeing the blocklist
* (which is only used for internal bookkeeping) but using the pdata of
* @hits as the result of the operation.
*/
@ -1462,9 +1462,9 @@ static void
desktop_file_dir_mime_lookup (DesktopFileDir *dir,
const gchar *mime_type,
GPtrArray *hits,
GPtrArray *blacklist)
GPtrArray *blocklist)
{
desktop_file_dir_unindexed_mime_lookup (dir, mime_type, hits, blacklist);
desktop_file_dir_unindexed_mime_lookup (dir, mime_type, hits, blocklist);
}
/*< internal >
@ -4131,12 +4131,12 @@ static gchar **
g_desktop_app_info_get_desktop_ids_for_content_type (const gchar *content_type,
gboolean include_fallback)
{
GPtrArray *hits, *blacklist;
GPtrArray *hits, *blocklist;
gchar **types;
gint i, j;
hits = g_ptr_array_new ();
blacklist = g_ptr_array_new ();
blocklist = g_ptr_array_new ();
types = get_list_of_mimetypes (content_type, include_fallback);
@ -4144,7 +4144,7 @@ g_desktop_app_info_get_desktop_ids_for_content_type (const gchar *content_type,
for (i = 0; types[i]; i++)
for (j = 0; j < desktop_file_dirs->len; j++)
desktop_file_dir_mime_lookup (g_ptr_array_index (desktop_file_dirs, j), types[i], hits, blacklist);
desktop_file_dir_mime_lookup (g_ptr_array_index (desktop_file_dirs, j), types[i], hits, blocklist);
/* We will keep the hits past unlocking, so we must dup them */
for (i = 0; i < hits->len; i++)
@ -4154,7 +4154,7 @@ g_desktop_app_info_get_desktop_ids_for_content_type (const gchar *content_type,
g_ptr_array_add (hits, NULL);
g_ptr_array_free (blacklist, TRUE);
g_ptr_array_free (blocklist, TRUE);
g_strfreev (types);
return (gchar **) g_ptr_array_free (hits, FALSE);
@ -4327,7 +4327,7 @@ GAppInfo *
g_app_info_get_default_for_type (const char *content_type,
gboolean must_support_uris)
{
GPtrArray *blacklist;
GPtrArray *blocklist;
GPtrArray *results;
GAppInfo *info;
gchar **types;
@ -4337,7 +4337,7 @@ g_app_info_get_default_for_type (const char *content_type,
types = get_list_of_mimetypes (content_type, TRUE);
blacklist = g_ptr_array_new ();
blocklist = g_ptr_array_new ();
results = g_ptr_array_new ();
info = NULL;
@ -4351,7 +4351,7 @@ g_app_info_get_default_for_type (const char *content_type,
/* Consider the associations as well... */
for (j = 0; j < desktop_file_dirs->len; j++)
desktop_file_dir_mime_lookup (g_ptr_array_index (desktop_file_dirs, j), types[i], results, blacklist);
desktop_file_dir_mime_lookup (g_ptr_array_index (desktop_file_dirs, j), types[i], results, blocklist);
/* (If any), see if one of those apps is installed... */
for (j = 0; j < results->len; j++)
@ -4373,7 +4373,7 @@ g_app_info_get_default_for_type (const char *content_type,
}
/* Reset the list, ready to try again with the next (parent)
* mimetype, but keep the blacklist in place.
* mimetype, but keep the blocklist in place.
*/
g_ptr_array_set_size (results, 0);
}
@ -4381,7 +4381,7 @@ g_app_info_get_default_for_type (const char *content_type,
out:
desktop_file_dirs_unlock ();
g_ptr_array_unref (blacklist);
g_ptr_array_unref (blocklist);
g_ptr_array_unref (results);
g_strfreev (types);

View File

@ -45,7 +45,7 @@
*
* If the #GDrive reports that media isn't automatically detected, one
* can poll for media; typically one should not do this periodically
* as a poll for media operation is potententially expensive and may
* as a poll for media operation is potentially expensive and may
* spin up the drive creating noise.
*
* #GDrive supports starting and stopping drives with authentication
@ -249,9 +249,9 @@ g_drive_get_volumes (GDrive *drive)
* g_drive_is_media_check_automatic:
* @drive: a #GDrive.
*
* Checks if @drive is capabable of automatically detecting media changes.
* Checks if @drive is capable of automatically detecting media changes.
*
* Returns: %TRUE if the @drive is capabable of automatically detecting
* Returns: %TRUE if the @drive is capable of automatically detecting
* media changes, %FALSE otherwise.
**/
gboolean

View File

@ -57,7 +57,7 @@ G_BEGIN_DECLS
* @is_removable: Returns %TRUE if the #GDrive and/or its media is considered removable by the user. Since 2.50.
* @is_media_removable: Returns %TRUE if the #GDrive supports removal and insertion of media.
* @has_media: Returns %TRUE if the #GDrive has media inserted.
* @is_media_check_automatic: Returns %TRUE if the #GDrive is capabable of automatically detecting media changes.
* @is_media_check_automatic: Returns %TRUE if the #GDrive is capable of automatically detecting media changes.
* @can_poll_for_media: Returns %TRUE if the #GDrive is capable of manually polling for media change.
* @can_eject: Returns %TRUE if the #GDrive can eject media.
* @eject: Ejects a #GDrive.

View File

@ -38,7 +38,7 @@
*
* Keys are strings that contain a key namespace and a key name, separated
* by a colon, e.g. "namespace::keyname". Namespaces are included to sort
* key-value pairs by namespaces for relevance. Keys can be retrived
* key-value pairs by namespaces for relevance. Keys can be retrieved
* using wildcards, e.g. "standard::*" will return all of the keys in the
* "standard" namespace.
*

View File

@ -830,7 +830,7 @@ _g_file_info_get_attribute_value (GFileInfo *info,
* @info: a #GFileInfo.
* @attribute: a file attribute key.
*
* Gets the value of a attribute, formated as a string.
* Gets the value of a attribute, formatted as a string.
* This escapes things as needed to make the string valid
* UTF-8.
*
@ -2295,7 +2295,7 @@ struct _GFileAttributeMatcher {
GArray *sub_matchers;
/* Interator */
/* Iterator */
guint32 iterator_ns;
gint iterator_pos;
};

View File

@ -157,7 +157,7 @@ typedef struct _GFileInfoClass GFileInfoClass;
*
* A key in the "standard" namespace for getting the description of the file.
* The description is a utf8 string that describes the file, generally containing
* the filename, but can also contain furter information. Example descriptions
* the filename, but can also contain further information. Example descriptions
* could be "filename (on hostname)" for a remote file or "filename (in trash)"
* for a file in the trash. This is useful for instance as the window title
* when displaying a directory or for a bookmarks menu.

View File

@ -278,7 +278,7 @@ got_enum (GObject *source_object,
g_object_unref (data->completer->basenames_dir);
g_list_free_full (data->completer->basenames, g_free);
/* Mark uptodate with no basenames */
/* Mark up-to-date with no basenames */
data->completer->basenames_dir = g_object_ref (data->dir);
data->completer->basenames = NULL;
data->completer->basenames_are_escaped = data->should_escape;

View File

@ -50,7 +50,7 @@
* unreferenced).
*
* For bindings in languages where the native constructor supports
* exceptions the binding could check for objects implemention %GInitable
* exceptions the binding could check for objects implementing %GInitable
* during normal construction and automatically initialize them, throwing
* an exception on failure.
*/

View File

@ -117,7 +117,7 @@ typedef enum {
/**
* GFileAttributeType:
* @G_FILE_ATTRIBUTE_TYPE_INVALID: indicates an invalid or uninitalized type.
* @G_FILE_ATTRIBUTE_TYPE_INVALID: indicates an invalid or uninitialized type.
* @G_FILE_ATTRIBUTE_TYPE_STRING: a null terminated UTF8 string.
* @G_FILE_ATTRIBUTE_TYPE_BYTE_STRING: a zero terminated string of non-zero bytes.
* @G_FILE_ATTRIBUTE_TYPE_BOOLEAN: a boolean value.

View File

@ -444,7 +444,7 @@ is_valid_module_name (const gchar *basename,
*
* This may not actually load and initialize all the types in each
* module, some modules may be lazily loaded and initialized when
* an extension point it implementes is used with e.g.
* an extension point it implements is used with e.g.
* g_io_extension_point_get_extensions() or
* g_io_extension_point_get_extension_by_name().
*
@ -586,7 +586,7 @@ g_io_modules_scan_all_in_directory_with_scope (const char *dirname,
*
* This may not actually load and initialize all the types in each
* module, some modules may be lazily loaded and initialized when
* an extension point it implementes is used with e.g.
* an extension point it implements is used with e.g.
* g_io_extension_point_get_extensions() or
* g_io_extension_point_get_extension_by_name().
*

View File

@ -830,7 +830,7 @@ splice_cancelled_cb (GCancellable *cancellable,
* @callback: (scope async): a #GAsyncReadyCallback.
* @user_data: (closure): user data passed to @callback.
*
* Asyncronously splice the output stream of @stream1 to the input stream of
* Asynchronously splice the output stream of @stream1 to the input stream of
* @stream2, and splice the output stream of @stream2 to the input stream of
* @stream1.
*

View File

@ -194,7 +194,7 @@ typedef struct _GSocketListener GSocketListener;
/**
* GSocketService:
*
* A helper class for handling accepting incomming connections in the
* A helper class for handling accepting incoming connections in the
* glib mainloop.
*
* Since: 2.22

View File

@ -73,7 +73,7 @@ G_DEFINE_INTERFACE (GListModel, g_list_model, G_TYPE_OBJECT)
* it are gone.
*
* On the other side, a consumer is expected only to hold references on
* objects that are currently "user visible", in order to faciliate the
* objects that are currently "user visible", in order to facilitate the
* maximum level of laziness in the implementation of the list and to
* reduce the required number of signal connections at a given time.
*

View File

@ -429,7 +429,7 @@ g_menu_model_class_init (GMenuModelClass *class)
* @removed: the number of items removed
* @added: the number of items added
*
* Emitted when a change has occured to the menu.
* Emitted when a change has occurred to the menu.
*
* The only changes that can occur to a menu is that items are removed
* or added. Items may not change (except by being removed and added

View File

@ -431,7 +431,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
/**
* GMountOperation::show-unmount-progress:
* @op: a #GMountOperation:
* @message: string containing a mesage to display to the user
* @message: string containing a message to display to the user
* @time_left: the estimated time left before the operation completes,
* in microseconds, or -1
* @bytes_left: the amount of bytes to be written before the operation

View File

@ -318,7 +318,7 @@ g_network_service_get_domain (GNetworkService *srv)
* g_network_service_get_scheme:
* @srv: a #GNetworkService
*
* Get's the URI scheme used to resolve proxies. By default, the service name
* Gets the URI scheme used to resolve proxies. By default, the service name
* is used as scheme.
*
* Returns: @srv's scheme name

View File

@ -326,7 +326,7 @@ get_bundle_for_id (CFStringRef bundle_id)
CFArrayRef urls = LSCopyApplicationURLsForBundleIdentifier (bundle_id, NULL);
if (urls)
{
/* TODO: if there's multiple, we should perhaps prefer one thats in $HOME,
/* TODO: if there's multiple, we should perhaps prefer one that's in $HOME,
* instead of just always picking the first.
*/
app_url = CFArrayGetValueAtIndex (urls, 0);

View File

@ -2953,7 +2953,7 @@ close_async_thread (GTask *task,
result = class->flush (stream, cancellable, &error);
}
/* Auto handling of cancelation disabled, and ignore
/* Auto handling of cancellation disabled, and ignore
cancellation, since we want to close things anyway, although
possibly in a quick-n-dirty way. At least we never want to leak
open handles */

View File

@ -233,7 +233,7 @@ g_proxy_address_class_init (GProxyAddressClass *klass)
g_object_class_install_property (gobject_class,
PROP_DESTINATION_PROTOCOL,
g_param_spec_string ("destination-protocol",
P_("Destionation Protocol"),
P_("Destination Protocol"),
P_("The proxy destination protocol"),
NULL,
G_PARAM_READWRITE |

View File

@ -745,7 +745,7 @@ registry_cache_update_node (GNode *cache_node,
}
/* Blocking notifications is a useful optimisation. When a change is made
* through GSettings we update the cache manually, but a notifcation is
* through GSettings we update the cache manually, but a notification is
* triggered as well. This function is also used for nested notifications,
* eg. if /test and /test/foo are watched, and /test/foo/value is changed then
* we will get notified both for /test/foo and /test and it is helpful to block

View File

@ -168,7 +168,7 @@ g_seekable_can_truncate (GSeekable *seekable)
*
* Sets the length of the stream to @offset. If the stream was previously
* larger than @offset, the extra data is discarded. If the stream was
* previouly shorter than @offset, it is extended with NUL ('\0') bytes.
* previously shorter than @offset, it is extended with NUL ('\0') bytes.
*
* If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation

View File

@ -2249,7 +2249,7 @@ g_socket_w32_get_adapter_ipv4_addr (const gchar *name_or_ip)
*/
if_index = if_nametoindex (name_or_ip);
/* Step 3: Prepare wchar string for friendly name comparision */
/* Step 3: Prepare wchar string for friendly name comparison */
if (if_index == 0)
{
size_t if_name_len = strlen (name_or_ip);
@ -2259,7 +2259,7 @@ g_socket_w32_get_adapter_ipv4_addr (const gchar *name_or_ip)
wchar_name_or_ip = (wchar_t *) g_try_malloc ((if_name_len + 1) * sizeof(wchar_t));
if (wchar_name_or_ip)
mbstowcs (wchar_name_or_ip, name_or_ip, if_name_len + 1);
/* NOTE: Even if malloc fails here, some comparisions can still be done later... so no exit here! */
/* NOTE: Even if malloc fails here, some comparisons can still be done later... so no exit here! */
}
/*

View File

@ -48,7 +48,7 @@ typedef struct _GSocketServiceClass GSocketServiceClass;
/**
* GSocketServiceClass:
* @incomming: signal emitted when new connections are accepted
* @incoming: signal emitted when new connections are accepted
*
* Class structure for #GSocketService.
*/

View File

@ -323,7 +323,7 @@ set_connect_msg (guint8 *msg,
* +----+-----+-------+------+----------+----------+
* | 1 | 1 | X'00' | 1 | Variable | 2 |
* +----+-----+-------+------+----------+----------+
* This reply need to be read by small part to determin size. Buffer
* This reply need to be read by small part to determine size. Buffer
* size is determined in function of the biggest part to read.
*
* The parser only requires 4 bytes.

View File

@ -911,7 +911,7 @@ static void g_task_thread_complete (GTask *task);
* g_task_return_error_if_cancelled() and then returned.
*
* This allows you to create a cancellable wrapper around an
* uninterruptable function. The #GTaskThreadFunc just needs to be
* uninterruptible function. The #GTaskThreadFunc just needs to be
* careful that it does not modify any externally-visible state after
* it has been cancelled. To do that, the thread should call
* g_task_set_return_on_cancel() again to (atomically) set

View File

@ -188,7 +188,7 @@ g_tcp_wrapper_connection_new (GIOStream *base_io_stream,
* g_tcp_wrapper_connection_get_base_io_stream:
* @conn: a #GTcpWrapperConnection
*
* Get's @conn's base #GIOStream
* Gets @conn's base #GIOStream
*
* Returns: (transfer none): @conn's base #GIOStream
*/

View File

@ -398,7 +398,7 @@ typedef struct {
/* fields in third byte */
unsigned qr: 1; /* response flag */
unsigned opcode: 4; /* purpose of message */
unsigned aa: 1; /* authoritive answer */
unsigned aa: 1; /* authoritative answer */
unsigned tc: 1; /* truncated message */
unsigned rd: 1; /* recursion desired */
/* fields in fourth byte */
@ -412,7 +412,7 @@ typedef struct {
/* fields in third byte */
unsigned rd :1; /* recursion desired */
unsigned tc :1; /* truncated message */
unsigned aa :1; /* authoritive answer */
unsigned aa :1; /* authoritative answer */
unsigned opcode :4; /* purpose of message */
unsigned qr :1; /* response flag */
/* fields in fourth byte */
@ -508,7 +508,7 @@ typedef enum __ns_type {
ns_t_cert = 37, /* Certification record */
ns_t_a6 = 38, /* IPv6 address (deprecates AAAA) */
ns_t_dname = 39, /* Non-terminal DNAME (for IPv6) */
ns_t_sink = 40, /* Kitchen sink (experimentatl) */
ns_t_sink = 40, /* Kitchen sink (experimental) */
ns_t_opt = 41, /* EDNS0 option (meta-RR) */
ns_t_apl = 42, /* Address prefix list (RFC 3123) */
ns_t_tkey = 249, /* Transaction key */

View File

@ -546,7 +546,7 @@ _g_mount_get_for_mount_path (const gchar *mount_path,
/* TODO: How do we know this succeeded? Keep in mind that the native
* volume monitor may fail (e.g. not being able to connect to
* hald). Is the get_mount_for_mount_path() method allowed to
* udisks). Is the get_mount_for_mount_path() method allowed to
* return NULL? Seems like it is ... probably the method needs
* to take a boolean and write if it succeeds or not.. Messy.
* Very messy.

View File

@ -421,7 +421,7 @@ guess_system_internal (const char *mountpoint,
* to not mengle those mounts with the "regular" mounts (i.e. which points to
* the root). But because those mounts usually just duplicate other mounts and
* are completely ignored with mntend-based implementation, let's mark them as
* system internal. Given the different approches it doesn't mean that all
* system internal. Given the different approaches it doesn't mean that all
* mounts which were ignored will be system internal now, but this should work
* in most cases. For more info, see g_unix_mount_get_root_path() annotation,
* comment in mntent-based _g_get_unix_mounts() implementation and the

View File

@ -2234,7 +2234,7 @@ MuiRegQueryValueExW (HKEY hKey,
* When calling with value_data == NULL (to get data size without getting
* the data itself) remember that returned size corresponds to possibly
* unterminated string data (if value is some kind of string), because
* termination cannot be checked and fixed unless the data is retreived
* termination cannot be checked and fixed unless the data is retrieved
* too.
*
* When not %NULL, @mui_dll_dirs indicates that `RegLoadMUIStringW()` API

View File

@ -105,7 +105,7 @@ get_viewable_logical_drives (void)
return viewable_drives;
}
/* deliver accesible (aka 'mounted') volumes */
/* deliver accessible (aka 'mounted') volumes */
static GList *
get_mounts (GVolumeMonitor *volume_monitor)
{
@ -237,7 +237,7 @@ g_win32_volume_monitor_class_init (GWin32VolumeMonitorClass *klass)
static void
g_win32_volume_monitor_init (GWin32VolumeMonitor *win32_monitor)
{
/* maybe we shoud setup a callback window to listern for WM_DEVICECHANGE ? */
/* maybe we should setup a callback window to listen for WM_DEVICECHANGE ? */
#if 0
unix_monitor->mount_monitor = g_win32_mount_monitor_new ();

View File

@ -231,7 +231,7 @@ error:
*
* @param[in,out] before A pointer to a pointer to a list. Will contain items
* which were not found in the 'after' list.
* @param[in,out] after A pointer to a pointer to a list. Will containt items
* @param[in,out] after A pointer to a pointer to a list. Will contain items
* which were not found in the 'before' list.
**/
void
@ -356,7 +356,7 @@ G_STMT_START { \
* Detect and notify about moves in the watched directory.
*
* A move is what happens when you rename a file in a directory, and
* a new name is unique, i.e. you didnt overwrite any existing files
* a new name is unique, i.e. you didn't overwrite any existing files
* with this one.
*
* @param[in,out] removed A list of the removed files in the directory.
@ -387,7 +387,7 @@ dl_detect_moves (dep_list **removed,
/**
* Detect and notify about replacements in the watched directory.
*
* Consider you are watching a directory foo with the folloing files
* Consider you are watching a directory foo with the following files
* insinde:
*
* foo/bar

View File

@ -354,7 +354,7 @@ g_kqueue_file_monitor_callback (gint fd, GIOCondition condition, gpointer user_d
* rescan of missing files immediately so we don't have to wait for
* 4 seconds for discovering missing files. We pass the sub_file
* corresponding to the GKqueueFileMonitor to 'check_this_sub_only'
* argument to prevent _km_scan_missing from emiting 'CREATED'
* argument to prevent _km_scan_missing from emitting 'CREATED'
* events because _kh_dir_diff will do it for us. */
if (sub->mon->sub_file != NULL && sub->mon->sub_file->fd == -1)
_km_scan_missing (sub->mon->sub_file);

View File

@ -262,7 +262,7 @@
<!--
List:
@app_id: an application ID, or '' to list all documents
@docs: a dictonary mapping document IDs to their filesystem path
@docs: a dictionary mapping document IDs to their filesystem path
Lists documents in the document store for an application (or for
all applications).

View File

@ -39,7 +39,7 @@ test_empty_address (void)
g_error_free (error);
}
/* Test that g_dbus_is_supported_address() returns FALSE for an unparseable
/* Test that g_dbus_is_supported_address() returns FALSE for an unparsable
* address. */
static void
test_unsupported_address (void)

View File

@ -1279,7 +1279,7 @@ test_object_registration (void)
g_strfreev (nodes);
g_assert_cmpint (count_interfaces (c, "/foo/dyna/dynamicallycreated"), ==, 4);
/* now check that the object hierarachy is properly generated... yes, it's a bit
/* now check that the object hierarchy is properly generated... yes, it's a bit
* perverse that we round-trip to the bus to introspect ourselves ;-)
*/
nodes = get_nodes_at (c, "/");

View File

@ -1862,7 +1862,7 @@ codegen_test_peer (void)
g_assert (value != NULL);
g_variant_unref (value);
/* Give the proxies a chance to refresh in the defaul main loop */
/* Give the proxies a chance to refresh in the default main loop */
g_timeout_add (100, codegen_quit_mainloop_timeout, NULL);
g_main_loop_run (loop);
@ -1897,7 +1897,7 @@ codegen_test_peer (void)
g_assert (value != NULL);
g_variant_unref (value);
/* Give the proxies a chance to refresh in the defaul main loop */
/* Give the proxies a chance to refresh in the default main loop */
g_timeout_add (1000, codegen_quit_mainloop_timeout, NULL);
g_main_loop_run (loop);

View File

@ -230,7 +230,7 @@ test_proxy (void)
g_main_loop_unref (loop);
/* TODO: should call session_bus_down() but that requires waiting
* for all the oustanding method calls to complete...
* for all the outstanding method calls to complete...
*/
if (g_test_verbose ())
g_printerr ("\n");

View File

@ -388,7 +388,7 @@ test_proxy_signals_on_emit_signal_cb (GDBusProxy *proxy,
g_assert_cmpstr (g_variant_get_type_string (result), ==, "()");
g_variant_unref (result);
/* check that the signal was recieved before we got the method result */
/* check that the signal was received before we got the method result */
g_assert_cmpuint (strlen (data->s->str), >, 0);
/* break out of the loop */

View File

@ -2434,7 +2434,7 @@ test_interface_stability (void)
*
* - check that a property with name "Type" is mapped into g-name "type"
* with C accessors get_type_ (to avoid clashing with the GType accessor)
* and set_type_ (for symmetri)
* and set_type_ (for symmetry)
* (see https://bugzilla.gnome.org/show_bug.cgi?id=679473 for details)
*
* - (could add more tests here)

View File

@ -409,7 +409,7 @@ test_method_calls_on_proxy (GDBusProxy *proxy)
guint n, divisor;
/*
* Check that multiple threads can do calls without interferring with
* Check that multiple threads can do calls without interfering with
* each other. We do this by creating three threads that call the
* Sleep() method on the server (which handles it asynchronously, e.g.
* it won't block other requests) with different sleep durations and

View File

@ -1046,7 +1046,7 @@ test_communicate_utf8_async (gconstpointer test_data)
g_object_unref (proc);
}
/* Test g_subprocess_communicate_utf8_async() can be cancelled correclty. */
/* Test g_subprocess_communicate_utf8_async() can be cancelled correctly. */
static void
test_communicate_utf8_cancelled_async (gconstpointer test_data)
{
@ -1721,7 +1721,7 @@ test_launcher_environment (void)
/* unset a variable */
g_subprocess_launcher_unsetenv (launcher, "A");
/* and set a diffferent one */
/* and set a different one */
g_subprocess_launcher_setenv (launcher, "E", "F", TRUE);
args = get_test_subprocess_args ("printenv", "A", "C", "E", NULL);

View File

@ -32,7 +32,7 @@
/*
* WARNING: This is not the example you're looking for [slow hand wave]. This
* is not industrial strength, it's just for testing. It uses embarassing
* is not industrial strength, it's just for testing. It uses embarrassing
* functions like getpass() and does lazy things with threads.
*/

View File

@ -3,7 +3,7 @@ Before you start testing it would be good to explain how it works.
The script works in three modes:
1. read-only (no special arguments) - suitable for read-only backends. Just
create the sample structure using the second mode, pack it (tar -p is
preffered to preserve unix modes) and put it on a reachable place.
preferred to preserve unix modes) and put it on a reachable place.
2. create-structure - only creates reference structure for later testing
in read-only mode
3. write mode - full test suite, creates testing structure and performs all

View File

@ -4,7 +4,7 @@
* This must be done before including any GLib headers,
* since GLIB_AVAILABLE_IN_ALL, which is used to mark the
* g_io_module*() symbols, is defined to be _GLIB_EXTERN,
* which must be overriden to export the symbols.
* which must be overridden to export the symbols.
*/
#include "modules/symbol-visibility.h"
#define _GLIB_EXTERN GLIB_TEST_EXPORT_SYMBOL

View File

@ -605,7 +605,7 @@ test_resource_binary_linked (void)
/* Test resource whose xml file starts with more than one digit
* and where no explicit c-name is given
* Checks if resources are sucessfully registered and
* Checks if resources are successfully registered and
* data can be found and read. */
static void
test_resource_digits (void)

View File

@ -63,7 +63,7 @@ test_start_stop (void)
saddr = g_inet_socket_address_new (iaddr, 0);
g_object_unref (iaddr);
/* instanciate with g_object_new so we can pass active = false */
/* instantiate with g_object_new so we can pass active = false */
service = g_object_new (G_TYPE_SOCKET_SERVICE, "active", FALSE, NULL);
g_assert_false (g_socket_service_is_active (service));

View File

@ -4,7 +4,7 @@
<file>test1.txt</file>
</gresource>
<!-- Test compiling the generated GResource C-code
that has a resouce entry size over 65536 bytes -->
that has a resource entry size over 65536 bytes -->
<gresource prefix="/big_prefix">
<file>gresource-big-test.txt</file>
</gresource>

View File

@ -285,7 +285,7 @@ from_files (const Reference *ref)
g_assert_null (cert);
/* Using this method twice with a file containing both private key and
* certificate as a way to inforce private key presence is a fair use
* certificate as a way to enforce private key presence is a fair use
*/
cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "key-cert.pem", NULL),
g_test_get_filename (G_TEST_DIST, "cert-tests", "key-cert.pem", NULL),

View File

@ -416,7 +416,7 @@ g_win32_fs_monitor_close_handle (GWin32FSMonitorPrivate *monitor)
/* This triggers a last callback() with nBytes==0. */
/* Actually I am not so sure about that, it seems to trigger a last
* callback allright, but the way to recognize that it is the final
* callback correctly, but the way to recognize that it is the final
* one is not to check for nBytes==0, I think that was a
* misunderstanding.
*/

View File

@ -73,7 +73,7 @@ This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
$echo "Written by" "Ulrich Drepper"
exit 0 ;;
-- ) # Stop option prcessing
-- ) # Stop option processing
shift; break ;;
-* )
$echo "glib-gettextize: unknown option $1"

View File

@ -115,7 +115,7 @@ G_BEGIN_DECLS
*
* Returns: %TRUE if any events are pending.
*
* Deprected: 2.2: Use g_main_context_pending() instead.
* Deprecated: 2.2: Use g_main_context_pending() instead.
*/
#define g_main_pending() g_main_context_pending (NULL) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_context_pending)

View File

@ -424,7 +424,7 @@ g_once_init_enter_impl (volatile gsize *location)
* want to require prior calling to g_thread_init(), because your code
* should also be usable in non-threaded programs, you are not able to
* use g_mutex_new() and thus #GMutex, as that requires a prior call to
* g_thread_init(). In theses cases you can also use a #GStaticMutex.
* g_thread_init(). In these cases you can also use a #GStaticMutex.
* It must be initialized with g_static_mutex_init() before using it
* and freed with with g_static_mutex_free() when not needed anymore to
* free up any allocated resources.
@ -1025,7 +1025,7 @@ g_static_rw_lock_reader_lock (GStaticRWLock* lock)
*
* Returns: %TRUE, if @lock could be locked for reading
*
* Deprectated: 2.32: Use g_rw_lock_reader_trylock() instead
* Deprecated: 2.32: Use g_rw_lock_reader_trylock() instead
*/
gboolean
g_static_rw_lock_reader_trylock (GStaticRWLock* lock)
@ -1055,7 +1055,7 @@ g_static_rw_lock_reader_trylock (GStaticRWLock* lock)
* locks for reading have been unlocked, the waiting thread is woken up
* and can lock @lock for writing.
*
* Deprectated: 2.32: Use g_rw_lock_reader_unlock() instead
* Deprecated: 2.32: Use g_rw_lock_reader_unlock() instead
*/
void
g_static_rw_lock_reader_unlock (GStaticRWLock* lock)
@ -1084,7 +1084,7 @@ g_static_rw_lock_reader_unlock (GStaticRWLock* lock)
* @lock (neither for reading nor writing). This lock has to be
* unlocked by g_static_rw_lock_writer_unlock().
*
* Deprectated: 2.32: Use g_rw_lock_writer_lock() instead
* Deprecated: 2.32: Use g_rw_lock_writer_lock() instead
*/
void
g_static_rw_lock_writer_lock (GStaticRWLock* lock)
@ -1114,7 +1114,7 @@ g_static_rw_lock_writer_lock (GStaticRWLock* lock)
*
* Returns: %TRUE, if @lock could be locked for writing
*
* Deprectated: 2.32: Use g_rw_lock_writer_trylock() instead
* Deprecated: 2.32: Use g_rw_lock_writer_trylock() instead
*/
gboolean
g_static_rw_lock_writer_trylock (GStaticRWLock* lock)
@ -1147,7 +1147,7 @@ g_static_rw_lock_writer_trylock (GStaticRWLock* lock)
* lock @lock for reading, the waiting threads are woken up and can
* lock @lock for reading.
*
* Deprectated: 2.32: Use g_rw_lock_writer_unlock() instead
* Deprecated: 2.32: Use g_rw_lock_writer_unlock() instead
*/
void
g_static_rw_lock_writer_unlock (GStaticRWLock* lock)

View File

@ -144,7 +144,7 @@
* If you need to clear the contents of the data, you will need to use an
* ancillary function that calls g_rc_box_release_full():
*
* |[<!-- laguage="C" -->
* |[<!-- language="C" -->
* static void
* my_data_struct_release (MyDataStruct *data)
* {
@ -188,7 +188,7 @@ g_atomic_rc_box_alloc (gsize block_size)
* @block_size: the size of the allocation, must be greater than 0
*
* Allocates @block_size bytes of memory, and adds atomic
* referenc counting semantics to it.
* reference counting semantics to it.
*
* The contents of the returned data is set to zero.
*

View File

@ -88,7 +88,7 @@ g_futex_wait (const volatile gint *address,
* Nominally, wakes one thread that is blocked in g_futex_wait() on
* @address (if any thread is currently waiting).
*
* As mentioned in the documention for g_futex_wait(), spurious
* As mentioned in the documentation for g_futex_wait(), spurious
* wakeups may occur. As such, this call may result in more than one
* thread being woken up.
*/

View File

@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
# Contributer(s):
# Contributor(s):
# Andrew Taylor <andrew.taylor@montage.ca>
# gen-unicode-tables.pl - Generate tables for libunicode from Unicode data.
@ -225,7 +225,7 @@ defined $derivedeastasianwidthtxt or die "Did not find DerivedEastAsianWidth fil
print "Creating decomp table\n" if ($do_decomp);
print "Creating property table\n" if ($do_props);
print "Composition exlusions from $compositionexclusionstxt\n";
print "Composition exclusions from $compositionexclusionstxt\n";
open (INPUT, "< $compositionexclusionstxt") || exit 1;

View File

@ -227,7 +227,7 @@ g_environ_unsetenv (gchar **envp,
return g_environ_unsetenv_internal (envp, variable, TRUE);
}
/* UNIX implemention {{{1 */
/* UNIX implementation {{{1 */
#ifndef G_OS_WIN32
/**

View File

@ -121,7 +121,7 @@ ensure_gettext_initialized (void)
* This is an internal function and should only be used by
* the internals of glib (such as libgio).
*
* Returns: the transation of @str to the current locale
* Returns: the translation of @str to the current locale
*/
const gchar *
glib_gettext (const gchar *str)

View File

@ -154,7 +154,7 @@
* a more secure hash function when using a GHashTable with keys
* that originate in untrusted data (such as HTTP requests).
* Using g_str_hash() in that situation might make your application
* vulerable to
* vulnerable to
* [Algorithmic Complexity Attacks](https://lwn.net/Articles/474912/).
*
* The key to choosing a good hash is unpredictability. Even

View File

@ -135,7 +135,7 @@
* @G_IO_STATUS_EOF: End of file.
* @G_IO_STATUS_AGAIN: Resource temporarily unavailable.
*
* Stati returned by most of the #GIOFuncs functions.
* Statuses returned by most of the #GIOFuncs functions.
**/
/**
@ -1854,7 +1854,7 @@ read_again:
goto done;
}
break;
case '\0': /* Embeded null in input */
case '\0': /* Embedded null in input */
line_length = nextchar - use_buf->str;
got_term_len = 1;
goto done;
@ -1986,7 +1986,7 @@ g_io_channel_read_to_end (GIOChannel *channel,
* @buf: (out caller-allocates) (array length=count) (element-type guint8):
* a buffer to read data into
* @count: (in): the size of the buffer. Note that the buffer may not be
* complelely filled even if there is data in the buffer if the
* completely filled even if there is data in the buffer if the
* remaining data is not a complete character.
* @bytes_read: (out) (optional): The number of bytes read. This may be
* zero even on success if count < 6 and the channel's encoding
@ -2374,7 +2374,7 @@ reconvert:
default:
g_assert_not_reached ();
err = (gsize) -1;
errnum = 0; /* Don't confunse the compiler */
errnum = 0; /* Don't confuse the compiler */
}
}
else

View File

@ -1113,7 +1113,7 @@ g_key_file_load_from_dirs (GKeyFile *key_file,
* @full_path. If the file could not be loaded then an %error is
* set to either a #GFileError or #GKeyFileError.
*
* Returns: %TRUE if a key file could be loaded, %FALSE othewise
* Returns: %TRUE if a key file could be loaded, %FALSE otherwise
* Since: 2.6
**/
gboolean
@ -3487,7 +3487,7 @@ g_key_file_get_key_comment (GKeyFile *key_file,
string = NULL;
/* Then find all the comments already associated with the
* key and concatentate them.
* key and concatenate them.
*/
tmp = key_node->next;
if (!key_node->next)

View File

@ -89,7 +89,7 @@
* in a compatible way before this feature was supported in all
* compilers. These days, GLib requires inlining support from the
* compiler, so your GLib-using programs can safely assume that the
* "inline" keywork works properly.
* "inline" keyword works properly.
*
* Never use this macro anymore. Just say "static inline".
*

View File

@ -3063,7 +3063,7 @@ escape_string (GString *string)
*
* - `G_MESSAGES_PREFIXED`: A :-separated list of log levels for which
* messages should be prefixed by the program name and PID of the
* aplication.
* application.
*
* - `G_MESSAGES_DEBUG`: A space-separated list of log domains for
* which debug and informational messages are printed. By default

View File

@ -834,7 +834,7 @@ g_node_depth_traverse_level (GNode *node,
* its grandchildren, and so on. Note that this is less
* efficient than the other orders.
*
* Specifies the type of traveral performed by g_tree_traverse(),
* Specifies the type of traversal performed by g_tree_traverse(),
* g_node_traverse() and g_node_find(). The different orders are
* illustrated here:
* - In order: A, B, C, D, E, F, G, H, I

View File

@ -582,7 +582,7 @@ gdouble
g_rand_double (GRand *rand)
{
/* We set all 52 bits after the point for this, not only the first
32. Thats why we need two calls to g_rand_int */
32. That's why we need two calls to g_rand_int */
gdouble retval = g_rand_int (rand) * G_RAND_DOUBLE_TRANSFORM;
retval = (retval + g_rand_int (rand)) * G_RAND_DOUBLE_TRANSFORM;

View File

@ -37,7 +37,7 @@ typedef struct _GRand GRand;
/* GRand - a good and fast random number generator: Mersenne Twister
* see http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html for more info.
* The range functions return a value in the intervall [begin, end).
* The range functions return a value in the interval [begin, end).
* int -> [0..2^32-1]
* int_range -> [begin..end-1]
* double -> [0..1)

View File

@ -186,7 +186,7 @@ G_STATIC_ASSERT (G_REGEX_MATCH_PARTIAL_SOFT == PCRE_PARTIAL_SOFT);
G_STATIC_ASSERT (G_REGEX_MATCH_PARTIAL_HARD == PCRE_PARTIAL_HARD);
G_STATIC_ASSERT (G_REGEX_MATCH_NOTEMPTY_ATSTART == PCRE_NOTEMPTY_ATSTART);
/* These PCRE flags are unused or not exposed publically in GRegexFlags, so
/* These PCRE flags are unused or not exposed publicly in GRegexFlags, so
* it should be ok to reuse them for different things.
*/
G_STATIC_ASSERT (G_REGEX_OPTIMIZE == PCRE_NO_UTF8_CHECK);
@ -1285,7 +1285,7 @@ static pcre *regex_compile (const gchar *pattern,
* Compiles the regular expression to an internal form, and does
* the initial setup of the #GRegex structure.
*
* Returns: (nullable): a #GRegex structure or %NULL if an error occured. Call
* Returns: (nullable): a #GRegex structure or %NULL if an error occurred. Call
* g_regex_unref() when you are done with it
*
* Since: 2.14
@ -2785,7 +2785,7 @@ interpolation_list_needs_match (GList *list)
* If you do not need to use backreferences use g_regex_replace_literal().
*
* The @replacement string must be UTF-8 encoded even if #G_REGEX_RAW was
* passed to g_regex_new(). If you want to use not UTF-8 encoded stings
* passed to g_regex_new(). If you want to use not UTF-8 encoded strings
* you can use g_regex_replace_literal().
*
* Setting @start_position differs from just passing over a shortened

View File

@ -141,10 +141,10 @@
* - the thread magazines. for each (aligned) chunk size, a magazine (a list)
* of recently freed and soon to be allocated chunks is maintained per thread.
* this way, most alloc/free requests can be quickly satisfied from per-thread
* free lists which only require one g_private_get() call to retrive the
* free lists which only require one g_private_get() call to retrieve the
* thread handle.
* - the magazine cache. allocating and freeing chunks to/from threads only
* occours at magazine sizes from a global depot of magazines. the depot
* occurs at magazine sizes from a global depot of magazines. the depot
* maintaines a 15 second working set of allocated magazines, so full
* magazines are not allocated and released too often.
* the chunk size dependent magazine sizes automatically adapt (within limits,
@ -291,7 +291,7 @@ static SliceConfig slice_config = {
};
static GMutex smc_tree_mutex; /* mutex for G_SLICE=debug-blocks */
/* --- auxiliary funcitons --- */
/* --- auxiliary functions --- */
void
g_slice_set_config (GSliceConfig ckey,
gint64 value)

View File

@ -98,7 +98,7 @@ protect_wargv (gint argc,
{
if (*p == ' ' || *p == '\t')
need_dblquotes = TRUE;
/* estimate max len, assuming that all escapable chracters will be escaped */
/* estimate max len, assuming that all escapable characters will be escaped */
if (*p == '"' || *p == '\\')
len += 2;
else
@ -112,7 +112,7 @@ protect_wargv (gint argc,
if (need_dblquotes)
*q++ = '"';
/* Only quotes and backslashes preceeding quotes are escaped:
/* Only quotes and backslashes preceding quotes are escaped:
* see "Parsing C Command-Line Arguments" at
* https://docs.microsoft.com/en-us/cpp/c-language/parsing-c-command-line-arguments
*/
@ -122,12 +122,12 @@ protect_wargv (gint argc,
{
/* Add backslash for escaping quote itself */
*q++ = '\\';
/* Add backslash for every preceeding backslash for escaping it */
/* Add backslash for every preceding backslash for escaping it */
for (;pre_bslash > 0; --pre_bslash)
*q++ = '\\';
}
/* Count length of continuous sequence of preceeding backslashes. */
/* Count length of continuous sequence of preceding backslashes. */
if (*p == '\\')
++pre_bslash;
else
@ -139,7 +139,7 @@ protect_wargv (gint argc,
if (need_dblquotes)
{
/* Add backslash for every preceeding backslash for escaping it,
/* Add backslash for every preceding backslash for escaping it,
* do NOT escape quote itself.
*/
for (;pre_bslash > 0; --pre_bslash)

View File

@ -138,7 +138,7 @@ protect_argv_string (const gchar *string)
{
if (*p == ' ' || *p == '\t')
need_dblquotes = TRUE;
/* estimate max len, assuming that all escapable chracters will be escaped */
/* estimate max len, assuming that all escapable characters will be escaped */
if (*p == '"' || *p == '\\')
len += 2;
else
@ -151,7 +151,7 @@ protect_argv_string (const gchar *string)
if (need_dblquotes)
*q++ = '"';
/* Only quotes and backslashes preceeding quotes are escaped:
/* Only quotes and backslashes preceding quotes are escaped:
* see "Parsing C Command-Line Arguments" at
* https://docs.microsoft.com/en-us/cpp/c-language/parsing-c-command-line-arguments
*/
@ -161,12 +161,12 @@ protect_argv_string (const gchar *string)
{
/* Add backslash for escaping quote itself */
*q++ = '\\';
/* Add backslash for every preceeding backslash for escaping it */
/* Add backslash for every preceding backslash for escaping it */
for (;pre_bslash > 0; --pre_bslash)
*q++ = '\\';
}
/* Count length of continuous sequence of preceeding backslashes. */
/* Count length of continuous sequence of preceding backslashes. */
if (*p == '\\')
++pre_bslash;
else
@ -178,7 +178,7 @@ protect_argv_string (const gchar *string)
if (need_dblquotes)
{
/* Add backslash for every preceeding backslash for escaping it,
/* Add backslash for every preceding backslash for escaping it,
* do NOT escape quote itself.
*/
for (;pre_bslash > 0; --pre_bslash)

View File

@ -157,7 +157,7 @@ typedef void (* GSpawnChildSetupFunc) (gpointer user_data);
* execute, while the remaining elements are the actual argument vector
* to pass to the file. Normally g_spawn_async_with_pipes() uses `argv[0]`
* as the file to execute, and passes all of `argv` to the child.
* @G_SPAWN_SEARCH_PATH_FROM_ENVP: if `argv[0]` is not an abolute path,
* @G_SPAWN_SEARCH_PATH_FROM_ENVP: if `argv[0]` is not an absolute path,
* it will be looked for in the `PATH` from the passed child environment.
* Since: 2.34
* @G_SPAWN_CLOEXEC_PIPES: create all pipes with the `O_CLOEXEC` flag set.

View File

@ -1769,7 +1769,7 @@ g_ascii_digit_value (gchar c)
* g_ascii_xdigit_value:
* @c: an ASCII character.
*
* Determines the numeric value of a character as a hexidecimal
* Determines the numeric value of a character as a hexadecimal
* digit. Differs from g_unichar_xdigit_value() because it takes
* a char, so there's no worry about sign extension if characters
* are signed.

View File

@ -402,7 +402,7 @@ class GTestCase(object):
txt = self._error_text(self._case)
details['error'] = Content(mime_utf8, lambda:[txt])
if self._get_outcome() == 'addSuccess':
# Sucessful tests may have performance metrics.
# Successful tests may have performance metrics.
perflist = list_children(self._case, 'performance')
if perflist:
presults = []

View File

@ -62,8 +62,8 @@ g_thread_abort (gint status,
}
/* Starting with Vista and Windows 2008, we have access to the
* CONDITION_VARIABLE and SRWLock primatives on Windows, which are
* pretty reasonable approximations of the primatives specified in
* CONDITION_VARIABLE and SRWLock primitives on Windows, which are
* pretty reasonable approximations of the primitives specified in
* POSIX 2001 (pthread_cond_t and pthread_mutex_t respectively).
*
* Both of these types are structs containing a single pointer. That

View File

@ -61,7 +61,7 @@
* g_time_zone_get_identifier().
*
* A time zone contains a number of intervals. Each interval has
* an abbreviation to describe it (for example, PDT), an offet to UTC and a
* an abbreviation to describe it (for example, PDT), an offset to UTC and a
* flag indicating if the daylight savings time is in effect during that
* interval. A time zone always has at least one interval interval 0. Note
* that interval abbreviations are not the same as time zone identifiers

View File

@ -362,7 +362,7 @@ g_unichar_istitle (gunichar c)
* g_unichar_isxdigit:
* @c: a Unicode character.
*
* Determines if a character is a hexidecimal digit.
* Determines if a character is a hexadecimal digit.
*
* Returns: %TRUE if the character is a hexadecimal digit
**/
@ -624,7 +624,7 @@ g_unichar_totitle (gunichar c)
{
unsigned int i;
/* We handle U+0000 explicitely because some elements in
/* We handle U+0000 explicitly because some elements in
* title_table[i][1] may be null. */
if (c == 0)
return c;
@ -664,7 +664,7 @@ g_unichar_digit_value (gunichar c)
* g_unichar_xdigit_value:
* @c: a Unicode character
*
* Determines the numeric value of a character as a hexidecimal
* Determines the numeric value of a character as a hexadecimal
* digit.
*
* Returns: If @c is a hex digit (according to

View File

@ -1000,7 +1000,7 @@ g_ucs4_to_utf8 (const gunichar *str,
* Note that the input is expected to be already in native endianness,
* an initial byte-order-mark character is not handled specially.
* g_convert() can be used to convert a byte buffer of UTF-16 data of
* ambiguous endianess.
* ambiguous endianness.
*
* Further note that this function does not validate the result
* string; it may e.g. include embedded NUL characters. The only

View File

@ -795,7 +795,7 @@ g_variant_ref_sink (GVariant *value)
*
* Using this function on the return value of the user's callback allows
* the user to do whichever is more convenient for them. The caller
* will alway receives exactly one full reference to the value: either
* will always receives exactly one full reference to the value: either
* the one that was returned in the first place, or a floating reference
* that has been converted to a full reference.
*

View File

@ -3004,7 +3004,7 @@ g_variant_iter_init (GVariantIter *iter,
* need it.
*
* A reference is taken to the container that @iter is iterating over
* and will be releated only when g_variant_iter_free() is called.
* and will be related only when g_variant_iter_free() is called.
*
* Returns: (transfer full): a new heap-allocated #GVariantIter
*

Some files were not shown because too many files have changed in this diff Show More