libk  Check-in [51af496851]

Overview
Comment:add Kmsz macro
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 51af4968511db2a9aed06712f7f15daf14be9c84017491c74af2d006e452b344
User & Date: lexi on 2019-06-28 04:48:43
Other Links: manifest | tags
Context
2019-06-28
04:52
fix stupid bullshit that was including boot.o in libk.a which already HAS the runtime shit ohmyGOD check-in: de8e1eb5d2 user: lexi tags: trunk
04:48
add Kmsz macro check-in: 51af496851 user: lexi tags: trunk
04:35
fix useless params check-in: f5e894f1c4 user: lexi tags: trunk
Changes

Modified kmem/mem.h from [4d62b7403b] to [551899b415].

1
2
3




4
5
6
7
8
9
10
#ifndef KImem
#define KImem
#include <k/type.h>





typedef enum kmkind {
	kmkind_none,
	kmkind_heap,
	kmkind_pool,
	kmkind_ref,
	kmkind_tree



>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef KImem
#define KImem
#include <k/type.h>

#ifndef KFclean
#	define Kmsz(e) ( sizeof (e) / sizeof (e) [0] )
#endif

typedef enum kmkind {
	kmkind_none,
	kmkind_heap,
	kmkind_pool,
	kmkind_ref,
	kmkind_tree