Differences From Artifact [69d05c5e37]:
- File kstr/str.h — part of check-in [6479e060a3] at 2019-07-26 09:51:02 on branch trunk — major update. fix ridiculous old type size determination mechanism. mmap is still broken and i'm not sure why; the syscall does not appear to be going through correctly - see posix_mmap, kmheapa, and kcore/testbin.exe.fn (user: lexi, size: 224) [annotate] [blame] [check-ins using]
To Artifact [a45d7fa32d]:
- File kstr/str.h — part of check-in [926d05a4ce] at 2019-07-27 03:55:06 on branch trunk — add docs/manifesto for kfile; add initial kfile headers and function prototypes; update headers to include c++ extern guards so libk functions can be used from c++ (user: lexi, size: 294) [annotate] [blame] [check-ins using]
1
2
3
4
5
6
7
8
9
10
11
..
13
14
15
16
17
18
19
20
|
#ifndef KIstr
#define KIstr
#include <k/mem.h>
typedef struct kstr {
sz size;
kmptr ptr;
} kstr;
typedef struct ksraw {
................................................................................
const char* ptr;
} ksraw;
typedef struct ksmut {
sz size;
char* ptr;
} ksmut;
#endif
|
>
>
>
>
>
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
..
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef KIstr #define KIstr #include <k/mem.h> #ifdef __cplusplus extern "C" { #endif typedef struct kstr { sz size; kmptr ptr; } kstr; typedef struct ksraw { ................................................................................ const char* ptr; } ksraw; typedef struct ksmut { sz size; char* ptr; } ksmut; #ifdef __cplusplus } #endif #endif |