Added some type aliases
Nicer to refer to a byte as "byte" rather than "uint8_t"
This commit is contained in:
11
src/main.c
11
src/main.c
@@ -10,8 +10,19 @@
|
|||||||
* Description: Entrypoint to program
|
* Description: Entrypoint to program
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
typedef uint64_t u64;
|
||||||
|
typedef uint32_t u32;
|
||||||
|
typedef int32_t i32;
|
||||||
|
typedef int64_t i64;
|
||||||
|
typedef float f32;
|
||||||
|
typedef double f64;
|
||||||
|
|
||||||
|
typedef uint8_t byte;
|
||||||
|
typedef u64 word;
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
puts("Hello, world!");
|
puts("Hello, world!");
|
||||||
|
|||||||
Reference in New Issue
Block a user