mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-30 05:15:33 +00:00
glib-aux/prioq: rename NM_PRIOQ_FOREACH_ITEM() to nm_prioq_for_each()
Our for-each macros are usually lower-case and are spelled differently. Rename. Also add to clang-format as this is a for-each macro.
This commit is contained in:
parent
d840ddd959
commit
cf21da4ed1
|
@ -120,6 +120,7 @@ ForEachMacros: [
|
|||
'nm_manager_for_each_device',
|
||||
'nm_manager_for_each_device_safe',
|
||||
'nm_platform_iter_obj_for_each',
|
||||
'nm_prioq_for_each',
|
||||
'nmp_cache_iter_for_each',
|
||||
'nmp_cache_iter_for_each_link',
|
||||
'nmp_cache_iter_for_each_reverse',
|
||||
|
|
|
@ -55,7 +55,7 @@ nm_prioq_peek(NMPrioq *q)
|
|||
|
||||
void *nm_prioq_pop(NMPrioq *q);
|
||||
|
||||
#define NM_PRIOQ_FOREACH_ITEM(q, p) for (unsigned _i = 0; (p = nm_prioq_peek_by_index(q, _i)); _i++)
|
||||
#define nm_prioq_for_each(q, p) for (unsigned _i = 0; (p = nm_prioq_peek_by_index((q), _i)); _i++)
|
||||
|
||||
_nm_pure static inline unsigned
|
||||
nm_prioq_size(NMPrioq *q)
|
||||
|
|
Loading…
Reference in a new issue