git: <sys/malloc.h>: Separate basic typedefs to _malloc.h hearder.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Oct 31 14:15:47 PDT 2019


commit 5449304da0b1669ac210839499dfa7a30fa08bdd
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Fri Oct 18 16:43:12 2019 +0300

    <sys/malloc.h>: Separate basic typedefs to _malloc.h hearder.
    
     This will be used to reduce <sys/globaldata.h> pollution through the
     <sys/slaballoc.h> and will allow not to include <sys/malloc.h> for
     almost every kernel source even if no memory allocations are done.
    
     While there move MALLOC_DECLARE() macro too, it would help with malloc
     type visibility from headers that define it and will allow finally to
     sort most of the header includes alphabetically without side effects.

Summary of changes:
 sys/sys/_malloc.h | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sys/sys/malloc.h  | 44 ++---------------------------
 2 files changed, 86 insertions(+), 41 deletions(-)
 create mode 100644 sys/sys/_malloc.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5449304da0b1669ac210839499dfa7a30fa08bdd


-- 
DragonFly BSD source repository


More information about the Commits mailing list