aboutsummaryrefslogtreecommitdiff
path: root/src/types.h
blob: 443aa126d9bcb5b55f0cfdaff8f58c032914248b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef ORYX_TYPES_H
#define ORYX_TYPES_H

#include <stddef.h>
#include <stdint.h>

typedef uint32_t      idx_t_;
typedef uint32_t      rune;
typedef unsigned char uchar;

#define RUNE_C(x) UINT32_C(x)

struct strview {
	const uchar *p;
	size_t len;
};

#endif /* !ORYX_TYPES_H */