Matthias Clasen
45f6f43fc6
docs: Mark all GWakeup docs as private
...
This is not public API.
Helps: #3037
2023-10-11 17:38:31 +01:00
Matthias Clasen
ccfedf08cb
docs: Move the GPatternSpec SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-11 17:38:31 +01:00
Matthias Clasen
f2b1e4d936
docs: Move the GKeyFile SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-11 17:38:31 +01:00
Matthias Clasen
f27af99233
docs: Move the unicode SECTION
...
Move the content to the new unicode.md file.
Helps: #3037
2023-10-11 17:38:31 +01:00
Matthias Clasen
6052639a5c
docs: Update Unicode version history
...
Unicode 14 and 15 were missing from this list.
2023-10-11 17:38:31 +01:00
Matthias Clasen
55a844a465
docs: Move the GDate SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-11 17:38:31 +01:00
Matthias Clasen
1dae4fc618
docs: Move the GPathBuf SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-11 17:38:31 +01:00
Matthias Clasen
be9a463a10
docs: Move the GStrvBuilder SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-11 17:38:31 +01:00
Matthias Clasen
c50f94e41e
docs: Move the GScanner SECTION
...
Not much here to begin with.
Helps: #3037
2023-10-11 17:38:31 +01:00
Matthias Clasen
5a415ee93f
docs: Move the GTimeZone SECTION
...
Move the contents to the struct docs.
Helps: #3037
2023-10-11 17:38:31 +01:00
Matthias Clasen
7b4d00e0a4
docs: Move GDateTime SECTION
...
Move the contents to the struct comment.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
7fd50be9d0
docs: Move bookmarkfile SECTION
...
Move the content to the struct docs.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
d028759903
docs: Drop the threadpool SECTION
...
Move the contents to the GThreadPool struct docs.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
2e47610560
docs: Drop the GString SECTION
...
Move the contents to the GString struct docs.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
97cb9fa220
docs: Move the refstring SECTION
...
Move the contents to the data-structures.md file.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
8164220213
docs: Move the sequence SECTION
...
Add the contents to the data-structures.md file.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
c226088028
docs: Move the GNode SECTION
...
Move the contents to the data-structures.md file.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
2191c6024a
docs: Move the tree SECTION
...
Move the content to the new data-structures.md file.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
0ce33a6fee
docs: Move the asyncqueue SECTION
...
Move the contents to the new data-structures.md file.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
25aeddd2a7
docs: Move the queue SECTION
...
Add the content to the new data-structures.md file.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
f88d96e2ad
docs: Move the GHashTable SECTION
...
Move the content to the new data-structures.md file.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
ed1bc3228b
docs: Move list SECTIONs
...
Move the content to the data-structures.md file.
Helps: #3037
2023-10-11 17:38:30 +01:00
Matthias Clasen
09733b6531
docs: Move the array SECTIONs
...
Move the content to the new data-structures.md file.
Helps: #3037
2023-10-11 17:38:30 +01:00
Philip Withnall
c140f83922
Merge branch 'migrate-to-gi-docgen' into 'main'
...
Switch to using gi-docgen for docs (batch 1)
See merge request GNOME/glib!3591
2023-10-11 15:21:10 +00:00
Matthias Clasen
ab066d4856
docs: Move the GOption SECTION
...
Move the content to the new goption.md file.
Helps: #3037
2023-10-11 14:01:29 +01:00
Matthias Clasen
8b9c4cfb87
docs: Move the GMarkup SECTION
...
Move the content to the new markup.md file.
Helps: #3037
2023-10-11 14:01:29 +01:00
Matthias Clasen
7c5fc4eb26
docs: Move the GSlice documentation to Markdown
...
Helps: #3037
2023-10-11 14:01:29 +01:00
Matthias Clasen
1a090564d2
docs: Move GTest/test framework documentation to Markdown
...
Helps: #3037
2023-10-11 14:01:29 +01:00
Matthias Clasen
d8b25ecda3
docs: Move GMainLoop documentation to Markdown
...
Helps: #3037
2023-10-11 14:01:29 +01:00
Matthias Clasen
6c6337aa27
docs: Move macros documentation to Markdown
...
Helps: #3037
2023-10-11 14:01:29 +01:00
Matthias Clasen
48c70b557e
docs: Move logging documentation to Markdown
...
Helps: #3037
2023-10-11 14:01:29 +01:00
Matthias Clasen
7b954a8d15
docs: Move i18n documentation to Markdown
...
Helps: #3037
2023-10-11 14:01:29 +01:00
Matthias Clasen
46eed6009b
docs: Move GError documentation to Markdown
...
Helps: #3037
2023-10-11 14:01:29 +01:00
Matthias Clasen
a73d3d7b8f
docs: Move byte conversion macro documentation to Markdown
...
Helps: #3037
2023-10-11 14:01:28 +01:00
Matthias Clasen
9725c012b1
docs: Move character set conversion docs to Markdown
...
Helps: #3037
2023-10-11 14:01:28 +01:00
Matthias Clasen
0b56387ad5
docs: Move GThread documentation to Markdown
...
Helps: #3037
2023-10-11 14:01:28 +01:00
Matthias Clasen
c3713e1b67
docs: Move GRcBox/GArcBox and refcounting docs to Markdown
...
Helps: #3037
2023-10-11 14:01:28 +01:00
Alex Richardson
ab7e584e9f
Cast via guintptr when adding/removing bitsflags on pointers
...
Round-tripping pointers via gsize is not guaranteed to work (the C standard
only requires this for (u)inptr_t) and in fact breaks on CHERI-enabled
systems such as Arm Morello where pointers are 128-bits but size_t is 64.
This means the current casts would strip the high bits of the pointer and
return a non-dereferenceable value. Fix this by casting the operand that
holds the pointer to guintptr instead of gsize.
Helps: https://gitlab.gnome.org/GNOME/glib/-/issues/2842
2023-10-10 08:30:46 -07:00
Alex Richardson
c762d51134
gatomic: Use g(u)intptr where appropriate
...
This is required for CHERI systems such as Arm Morello, where gsize is
not large enough to hold a pointer. For all other architectures this
should not result in any functional changes since gsize is already the
same size (and I believe for most architectures even the same type)
as guintptr.
This is fully ABI compatible with all currently supported architectures
and should also be fully API compatible except for some rather unlikely
examples such as someone happening to use something like
`decltype(g_atomic_pointer_add(&a, 0))` in a C++ context where it
changes name mangling of some function.
Helps: https://gitlab.gnome.org/GNOME/glib/-/issues/2842
2023-10-10 08:30:46 -07:00
Alex Richardson
877c575cd9
gbitlock: don't assume sizeof(gsize) == sizeof(gpointer)
...
Use a gpointer* instead of a gsize* as the g_atomic_pointer_* argument.
This is required for architectures such as Arm Morello where gsize is
64 bits but gpointer is 128 bits.
Helps: https://gitlab.gnome.org/GNOME/glib/-/issues/2842
2023-10-10 08:30:46 -07:00
Philip Withnall
f7d2a58be6
Merge branch 'tests_meson_targets' into 'main'
...
glib/tests/meson.build: remove identical build targets
See merge request GNOME/glib!3629
2023-10-10 09:51:36 +00:00
Hannes Müller
5a1300db0a
glib/tests/meson.build: remove identical build targets
...
If no error with -Werror=sign-conversion, the resulting object file
does not differ from compilation without -Werror=sign-conversion.
So the -Werror argument is now applied directly to string.c and testing.c.
Finally, the currently specific -Werror targets string-macro and
testing-macro are removed.
2023-10-10 11:16:25 +02:00
Philip Withnall
2191b5aa05
glib-unix: Use full path to gstdio.h include
...
This fixes use of `glib-unix.h` from outside the GLib build path.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3457#note_1864368
2023-10-09 22:18:18 +01:00
Philip Withnall
9b51346237
Merge branch 'wip/smcv/auto-unix-pipe' into 'main'
...
glib-unix: Add convenience API for pipes
See merge request GNOME/glib!3457
2023-10-09 18:00:36 +00:00
Simon McVittie
e80b0c4e4b
gspawn: Use GUnixPipe on Unix
...
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-10-09 18:44:38 +01:00
Simon McVittie
9e20a7d0e7
tests: Exercise GUnixPipe
...
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-10-09 18:44:38 +01:00
Simon McVittie
26c7b308ba
tests: Break out assert_fd_was_closed() into a header
...
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-10-09 18:44:38 +01:00
Simon McVittie
f31db7d370
glib-unix: Add convenience API for pipes
...
We can't easily use g_autofd with g_unix_open_pipe, because its
parameter is an array of two fds that both need closing. Add an inline
convenience wrapper providing the obvious semantics.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-10-09 18:44:38 +01:00
Philip Withnall
240156d174
Merge branch '3098-keyfile-escaping' into 'main'
...
Revert "gkeyfile: Temporarily re-allow invalid escapes when parsing strings"
Closes #3098
See merge request GNOME/glib!3618
2023-10-09 16:50:56 +00:00
Simon McVittie
6fd1037361
gspawn: Use g_clear_fd() instead of reinventing it
...
g_clear_fd() is documented to be async-signal safe whenever the
fd is either negative or valid (which it should be here) and the error
is NULL (which it always is here).
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-10-09 17:42:04 +01:00