1
2
3
4
5
6
7
8
9
10
11
12
|
#ifndef KIcore
#define KIcore
typedef unsigned long long sz;
typedef unsigned char stat;
typedef struct kenv {
sz argc;
char** argv;
} kenv;
#endif
|
>
>
>
<
<
>
>
>
>
>
>
>
<
>
>
|
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef KIcore
#define KIcore
#include <k/type.h>
#include <k/io.h>
#include <k/str.h>
static void* const null = (void*)0;
typedef struct kvar {
ksraw name;
ksraw val;
char* platform;
} kvar;
typedef struct kenv {
kiochan std;
kiochan err;
sz argc; char** argv;
kvar* vars;
} kenv;
#endif
|