diff options
author | Eric Wong <e@80x24.org> | 2019-10-06 23:30:33 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-07 10:20:10 +0900 |
commit | 973d5eea7455e1053842f7474c8ec34755f3525b (patch) | |
tree | 4411e81347bf94abe48b80a8bda6c6e9a28de3cf /gitk-git/po/hu.po | |
parent | hashmap_put takes "struct hashmap_entry *" (diff) | |
download | tgif-973d5eea7455e1053842f7474c8ec34755f3525b.tar.xz |
introduce container_of macro
This macro is popular within the Linux kernel for supporting
intrusive data structures such as linked lists, red-black trees,
and chained hash tables while allowing the compiler to do
type checking.
Later patches will use container_of() to remove the limitation
of "hashmap_entry" being location-dependent. This will complete
the transition to compile-time type checking for the hashmap API.
This macro already exists in our source as "list_entry" in
list.h and making "list_entry" an alias to "container_of"
as the Linux kernel has done is a possibility.
Signed-off-by: Eric Wong <e@80x24.org>
Reviewed-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitk-git/po/hu.po')
0 files changed, 0 insertions, 0 deletions