Files
gtk/gdk
Simon McVittie a97f378d64 gdk: Codify the requirement that gsize is pointer-sized
This is widely assumed, but is not guaranteed by Standard C, and is
known to be false on CHERI architectures (which have 64-bit sizes and
128-bit tagged pointers). Add a static assertion to ensure that GTK
will not build on platforms where this assumption does not hold.

As discussed on GNOME/gtk!7510, if GTK switches from gsize to uintptr_t
as its representation of the underlying bits in a pointer, GTK maintainers
would prefer that to be done project-wide so that it's done consistently,
after which this static assertion could be removed.

At the time of writing, GLib makes the same assumption (GNOME/glib#2842),
but GLib contributors are gradually removing it (mostly by replacing gsize
with uintptr_t where a pointer-sized quantity is needed). Finishing
that work in GLib would be a prerequisite for being able to make GTK
work on the affected platforms.

Signed-off-by: Simon McVittie <smcv@debian.org>
2024-07-28 14:31:31 +01:00
..
2023-05-09 16:43:35 +01:00
2023-09-21 19:51:11 +02:00
2024-07-24 16:45:21 -06:00
2022-09-23 23:33:42 -04:00
2023-05-15 20:30:38 -04:00
2023-05-15 18:22:37 -04:00
2021-09-24 22:50:29 +02:00
2024-07-24 16:45:21 -06:00
2024-07-24 16:45:21 -06:00
2024-07-24 18:59:18 -06:00
2024-07-24 18:59:18 -06:00
2024-07-24 16:45:21 -06:00
2022-10-05 23:01:28 -04:00
2022-09-23 23:33:42 -04:00
2024-04-04 01:07:28 +02:00
2024-04-04 01:07:28 +02:00
2021-05-22 17:25:26 -04:00
2024-07-10 22:11:13 +02:00
2024-07-10 22:11:13 +02:00
2024-07-11 14:57:20 +02:00
2023-05-01 10:40:26 -04:00
2024-05-07 00:34:47 +02:00
2024-04-07 11:12:13 -04:00
2023-12-22 08:47:47 -05:00
2023-03-14 14:56:42 -04:00
2021-09-24 22:50:29 +02:00
2024-07-16 21:23:44 +02:00
2021-09-10 16:56:42 -05:00
2022-09-24 10:03:37 -04:00
2023-03-31 15:11:10 -04:00
2024-04-09 19:13:34 -04:00
2024-03-29 13:31:36 +00:00
2022-09-23 23:33:42 -04:00
2024-06-26 07:33:15 -04:00
2023-03-31 15:11:10 -04:00
2024-01-21 14:02:08 -05:00
2021-05-22 17:25:26 -04:00
2024-05-31 21:29:49 -04:00
2024-05-31 21:29:49 -04:00
2022-09-23 23:33:42 -04:00
2024-07-10 21:34:12 +02:00
2024-07-14 12:46:20 -04:00
2024-07-14 12:46:20 -04:00
2024-07-11 14:57:19 +02:00
2021-05-22 17:25:26 -04:00
2024-07-24 16:45:21 -06:00
2024-07-24 16:45:21 -06:00