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 1 #ifndef KIstr 2 2 #define KIstr 3 3 4 4 #include <k/mem.h> 5 + 6 +#ifdef __cplusplus 7 +extern "C" { 8 +#endif 5 9 6 10 typedef struct kstr { 7 11 sz size; 8 12 kmptr ptr; 9 13 } kstr; 10 14 11 15 typedef struct ksraw { ................................................................................ 13 17 const char* ptr; 14 18 } ksraw; 15 19 16 20 typedef struct ksmut { 17 21 sz size; 18 22 char* ptr; 19 23 } ksmut; 24 + 25 +#ifdef __cplusplus 26 +} 27 +#endif 28 + 20 29 #endif