Re: [PATCH 2/4] ucrtbase: Add __std_type_info_name implementation
4 Aug
2016
4 Aug
'16
11:56 a.m.
On 04.08.2016 16:28, Piotr Caban wrote:
+static void CDECL type_info_entry_free(void *ptr) +{ + ptr = (char*)ptr - FIELD_OFFSET(type_info_entry, name); + MSVCRT_free(ptr); +}
[...]
+ else + { + type_info_entry *entry = (type_info_entry*)(name-FIELD_OFFSET(type_info_entry, name)); + InterlockedPushEntrySList(header, &entry->entry); + }
Its up to you of course, but why not CONTAINING_RECORD in those two cases?
5 Aug
5 Aug
2:26 a.m.
New subject: [PATCH 2/4] ucrtbase: Add __std_type_info_name implementation
On 08/04/16 18:56, Sebastian Lackner wrote:
Its up to you of course, but why not CONTAINING_RECORD in those two cases? I could have used CONTAINING_RECORD. Since the patch is already committed I don't think it's worth changing.
Thanks, Piotr
3415
Age (days ago)
3416
Last active (days ago)
1 comments
2 participants
participants (2)
-
Piotr Caban -
Sebastian Lackner