Re: [PATCH] btree: Add custom allocator interface.
Stuart Longland <[email protected]> Mon, 8 Feb 2016 14:26:29 +1000
| Newsgroups | org.ozlabs.lists.ccan |
|---|---|
| Message-ID | <[email protected]> |
On 08/02/16 12:17, David Gibson wrote:
>> +static void* default_malloc(const struct btree_allocator* alloc, size_t size);
> Existing style in this function suggests "void *foo" rather than
> "void* foo".
Ahh, call it habit, I'm used to having the "pointer" bit with the type
(as to me; "pointer to void" is a distinct type from "void"). Caught
myself doing it elsewhere but missed it here, I'll fix it.
> [snip]
>> > +/* Default allocator implementation */
>> > +const struct btree_allocator BTREE_DEFAULT_ALLOCATOR = {
> Use of all-caps for a non-macro is a bit unexpected.
>
Good point. I guess I wanted to visually differentiate a constant from
other member types.
Regards,
--
Stuart Longland (aka Redhatter, VK4MSL)
I haven't lost my mind...
...it's backed up on a tape somewhere.
_______________________________________________
ccan mailing list
[email protected]
https://lists.ozlabs.org/listinfo/ccan
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWuBj1AAoJEE36GRQQveO3gi4QAKhc2vgGf+9djn8im5VHwv1Q xcg4AYUS3xISJe80fIeiOGPWpKs/NbQTk42oOwK5kxvPsrkC2+m5paQxi8BhVdcS HO7ee9IrSRURqH3p6/x/qvf56riYIRTIu5ylh62y9CXpWB9iyX2UA+HIfSfbe1v1 6CVA2EYzOlbxcgsHnvcHKhku+fXxsDeoUVKKz2BXrAt3p61a4lkGQZirWtikxohk ujbnItKzeEBQr6REkJkg3rjmc/VjyR26Ev0Ld2EUe+n/DnRnWjqhWwp8dAh+Jccw BKS8rNWGK32J1c0KL5cu8redE+qQLuUCqhuChzyn92Od+hISip/gbCJWitSfN7Db ve3/JI/hCuyq1uysnBJiN2CCVNVdhH+JxxOTVMu7GpalPn9HvnQSGwQLZsEW+rDP 9kegnPZWkiTVN0FN9FEmROvdeyfMrqsdSAZBtb639y4hAGzgKnmdKt/NuooFrGyT qiLxKA+SjfHGXugyf+VKXZVTQ0qZKJ/2Y09ueNBG/kBXS59zzvDgkYSex6FK1Jgz xMST+hzyF9KosKmFWm6bHcdvlGLZBrx0bYqQUpdWpYSAYWkmHGIqacCGnQx5sdtg AZJArIeKc607l/bjlVWDcWPHqqun5wlrUrGjztVihbEraujlicKH/zlp8srmz+Su KTr7GRTzQl/6TRZHb8C/ =NXfL -----END PGP SIGNATURE-----