Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
types.h
Go to the documentation of this file.
1/*
2 * This file is part of the Rishka distribution (https://github.com/nthnn/rishka).
3 * Copyright (c) 2024 Nathanne Isip.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
27#ifndef LIBRISHKA_TYPES_H
28#define LIBRISHKA_TYPES_H
29
34typedef char rune;
35
40typedef char* string;
41
46typedef signed char i8;
47
52typedef signed short int i16;
53
58typedef signed int i32;
59
64typedef signed long int i64;
65
70typedef unsigned char u8;
71
76typedef unsigned short int u16;
77
82typedef unsigned int u32;
83
88typedef unsigned long int u64;
89
94typedef u32 usize;
95
100typedef void* any;
101
106#define F(str) ((char*) str)
107
112#define nil ((void*) 0)
113
118#define false 0
119
124#define true 1
125
126#endif /* LIBRISHKA_TYPES_H */
signed char i8
Alias for the signed 8-bit integer type.
Definition: types.h:46
char * string
Alias for the string type.
Definition: types.h:40
signed int i32
Alias for the signed 32-bit integer type.
Definition: types.h:58
char rune
Alias for the Unicode character type.
Definition: types.h:34
unsigned int u32
Alias for the unsigned 32-bit integer type.
Definition: types.h:82
signed short int i16
Alias for the signed 16-bit integer type.
Definition: types.h:52
signed long int i64
Alias for the signed 64-bit integer type.
Definition: types.h:64
unsigned short int u16
Alias for the unsigned 16-bit integer type.
Definition: types.h:76
unsigned char u8
Alias for the unsigned 8-bit integer type.
Definition: types.h:70
void * any
Alias for the generic pointer type.
Definition: types.h:100
unsigned long int u64
Alias for the unsigned 64-bit integer type.
Definition: types.h:88
u32 usize
Alias for the unsigned integer type representing size.
Definition: types.h:94