mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 00:13:40 +02:00
docs: spelling and grammar fixes
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
This commit is contained in:
@@ -131,7 +131,7 @@ need assistance in some cases.
|
||||
|
||||
Running `gsettings-schema-convert --gconf --xml --schema-id
|
||||
"org.gnome.font-rendering" --output org.gnome.font-rendering.gschema.xml
|
||||
destop_gnome_font_rendering.schemas` on the following
|
||||
desktop_gnome_font_rendering.schemas` on the following
|
||||
`desktop_gnome_font_rendering.schemas` file:
|
||||
|
||||
```xml
|
||||
|
@@ -144,7 +144,7 @@ on_name_acquired (GDBusConnection *connection,
|
||||
```
|
||||
|
||||
Note that `g_bus_own_name()` works asynchronously and requires you to enter
|
||||
your mainloop to await the `on_name_aquired()` callback. Also note that in
|
||||
your mainloop to await the `on_name_acquired()` callback. Also note that in
|
||||
order to avoid race conditions (e.g. when your service is activated by a
|
||||
method call), you have to export your manager object before acquiring the
|
||||
name. The `on_bus_acquired()` callback is the right place to do such
|
||||
|
@@ -217,63 +217,63 @@ side-effects.
|
||||
: Converts a `size_t` value from host byte order to little-endian.
|
||||
|
||||
`GUINT16_FROM_BE(value)`
|
||||
: Converts an `uint16_t` value from big-endian to host byte order.
|
||||
: Converts a `uint16_t` value from big-endian to host byte order.
|
||||
|
||||
`GUINT16_FROM_LE(value)`
|
||||
: Converts an `uint16_t` value from little-endian to host byte order.
|
||||
: Converts a `uint16_t` value from little-endian to host byte order.
|
||||
|
||||
`GUINT16_TO_BE(value)`
|
||||
: Converts an `uint16_t` value from host byte order to big-endian.
|
||||
: Converts a `uint16_t` value from host byte order to big-endian.
|
||||
|
||||
`GUINT16_TO_LE(value)`
|
||||
: Converts an `uint16_t` value from host byte order to little-endian.
|
||||
: Converts a `uint16_t` value from host byte order to little-endian.
|
||||
|
||||
`GUINT32_FROM_BE(value)`
|
||||
: Converts an `uint32_t` value from big-endian to host byte order.
|
||||
: Converts a `uint32_t` value from big-endian to host byte order.
|
||||
|
||||
`GUINT32_FROM_LE(value)`
|
||||
: Converts an `uint32_t` value from little-endian to host byte order.
|
||||
: Converts a `uint32_t` value from little-endian to host byte order.
|
||||
|
||||
`GUINT32_TO_BE(value)`
|
||||
: Converts an `uint32_t` value from host byte order to big-endian.
|
||||
: Converts a `uint32_t` value from host byte order to big-endian.
|
||||
|
||||
`GUINT32_TO_LE(value)`
|
||||
: Converts an `uint32_t` value from host byte order to little-endian.
|
||||
: Converts a `uint32_t` value from host byte order to little-endian.
|
||||
|
||||
`GUINT64_FROM_BE(value)`
|
||||
: Converts an `uint64_t` value from big-endian to host byte order.
|
||||
: Converts a `uint64_t` value from big-endian to host byte order.
|
||||
|
||||
`GUINT64_FROM_LE(value)`
|
||||
: Converts an `uint64_t` value from little-endian to host byte order.
|
||||
: Converts a `uint64_t` value from little-endian to host byte order.
|
||||
|
||||
`GUINT64_TO_BE(value)`
|
||||
: Converts an `uint64_t` value from host byte order to big-endian.
|
||||
: Converts a `uint64_t` value from host byte order to big-endian.
|
||||
|
||||
`GUINT64_TO_LE(value)`
|
||||
: Converts an `uint64_t` value from host byte order to little-endian.
|
||||
: Converts a `uint64_t` value from host byte order to little-endian.
|
||||
|
||||
`GUINT16_SWAP_BE_PDP(value)`
|
||||
: Converts an `uint16_t` value between big-endian and pdp-endian byte order.
|
||||
: Converts a `uint16_t` value between big-endian and pdp-endian byte order.
|
||||
The conversion is symmetric so it can be used both ways.
|
||||
|
||||
`GUINT16_SWAP_LE_BE(value)`
|
||||
: Converts an `uint16_t` value between little-endian and big-endian byte order.
|
||||
: Converts a `uint16_t` value between little-endian and big-endian byte order.
|
||||
The conversion is symmetric so it can be used both ways.
|
||||
|
||||
`GUINT16_SWAP_LE_PDP(value)`
|
||||
: Converts an `uint16_t` value between little-endian and pdp-endian byte order.
|
||||
: Converts a `uint16_t` value between little-endian and pdp-endian byte order.
|
||||
The conversion is symmetric so it can be used both ways.
|
||||
|
||||
`GUINT32_SWAP_BE_PDP(value)`
|
||||
: Converts an `uint32_t` value between big-endian and pdp-endian byte order.
|
||||
: Converts a `uint32_t` value between big-endian and pdp-endian byte order.
|
||||
The conversion is symmetric so it can be used both ways.
|
||||
|
||||
`GUINT32_SWAP_LE_BE(value)`
|
||||
: Converts an `uint32_t` value between little-endian and big-endian byte order.
|
||||
: Converts a `uint32_t` value between little-endian and big-endian byte order.
|
||||
The conversion is symmetric so it can be used both ways.
|
||||
|
||||
`GUINT32_SWAP_LE_PDP(value)`
|
||||
: Converts an `uint32_t` value between little-endian and pdp-endian byte order.
|
||||
: Converts a `uint32_t` value between little-endian and pdp-endian byte order.
|
||||
The conversion is symmetric so it can be used both ways.
|
||||
|
||||
`GUINT64_SWAP_LE_BE(value)`
|
||||
|
@@ -12,7 +12,7 @@ SPDX-FileCopyrightText: 2020 Endless OS Foundation, LLC
|
||||
|
||||
# Data Structures
|
||||
|
||||
GLib includes a number of basic data sructures, such as arrays, linked lists, hash tables,
|
||||
GLib includes a number of basic data structures, such as arrays, linked lists, hash tables,
|
||||
queues, trees, etc.
|
||||
|
||||
## Arrays
|
||||
@@ -506,7 +506,7 @@ person_details_from_data (const char *data)
|
||||
In the example above, we have multiple functions taking the same strings for different uses; with typical
|
||||
C strings, we'd have to copy the strings every time the life time rules of the data differ from the
|
||||
life-time of the string parsed from the original buffer. With reference counted strings, each caller can
|
||||
ake a reference on the data, and keep it as long as it needs to own the string.
|
||||
take a reference on the data, and keep it as long as it needs to own the string.
|
||||
|
||||
Reference-counted strings can also be "interned" inside a global table owned by GLib; while an interned
|
||||
string has at least a reference, creating a new interned reference-counted string with the same contents
|
||||
|
@@ -73,7 +73,7 @@ Some of these changes are under consideration for inclusion into D-Bus [#f2]_.
|
||||
special value outside of that range, called ``NULL``, ``Nothing``, ``None`` or similar. In most languages with reference
|
||||
or pointer types, these types are nullable. Some languages have the ability to have nullable versions of
|
||||
any type (for example, “``Maybe Int``” in Haskell and “``int? i;``” in C#).
|
||||
.. [#f2] Considerable discussion has been made in face-to-face meetings and some discussion has also occured
|
||||
.. [#f2] Considerable discussion has been made in face-to-face meetings and some discussion has also occurred
|
||||
on the D-Bus mailing list: http://lists.freedesktop.org/archives/dbus/2007-August/008290.html
|
||||
|
||||
Enumeration of Types
|
||||
|
Reference in New Issue
Block a user