Browse Source

MT#55283 add __ct to typed GList

This is a placeholder to keep the const-qualified type of the contained
type within the struct, so that it can be used via __typeof__ if
necessary.

Change-Id: Ib40c55daa2225b7f9a9a926a6fa74f9b1471b6de
pull/1838/head
Richard Fuchs 1 year ago
parent
commit
b562bf141f
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      lib/containers.h

+ 4
- 1
lib/containers.h View File

@ -162,7 +162,10 @@
union type_name##_list { \
GList l; \
struct { \
contained_type *data; \
union { \
contained_type *data; \
const contained_type *__ct; \
}; \
type_name##_list *next; \
type_name##_list *prev; \
}; \


Loading…
Cancel
Save