summaryrefslogtreecommitdiff
path: root/source/base/base_parse.h
blob: d66fd047a9ae7d65413ec8e5d7ac469c4f33a1eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef BASE_PARSE_H
#define BASE_PARSE_H

#define COMPARE_STRING(c1, c2) compare_string((char *)c1, (char *)c2)

typedef struct proc_entry proc_entry;
typedef struct proc_file  proc_file;

struct proc_file
{
    i32         count;
    proc_entry *entries;
};

struct proc_entry
{
    char value[16];
    char key[16];
};

typedef struct
{
    i8 *start;
    i8 *end;
    umm len;
} Line;

#endif