| ... | ... | @@ -35,7 +35,6 @@ readable, safe, optimal, and concise code to solve any computing problem. |
| 35 | 35 | * test framework to test for compile errors |
| 36 | 36 | * Simple .so library |
| 37 | 37 | * Multiple files |
| 38 | | * figure out integers |
| 39 | 38 | * inline assembly and syscalls |
| 40 | 39 | * running code at compile time |
| 41 | 40 | * implement a simple game using SDL2 |
| ... | ... | @@ -45,6 +44,7 @@ readable, safe, optimal, and concise code to solve any computing problem. |
| 45 | 44 | |
| 46 | 45 | zig | C equivalent | Description |
| 47 | 46 | -------|--------------|------------------------------- |
| 47 | bool | bool | unsigned 1-bit integer |
| 48 | 48 | i8 | int8_t | signed 8-bit integer |
| 49 | 49 | u8 | uint8_t | unsigned 8-bit integer |
| 50 | 50 | i16 | int16_t | signed 16-bit integer |
| ... | ... | @@ -56,8 +56,8 @@ zig | C equivalent | Description |
| 56 | 56 | f32 | float | 32-bit IEE754 floating point |
| 57 | 57 | f64 | double | 64-bit IEE754 floating point |
| 58 | 58 | f128 | long double | 128-bit IEE754 floating point |
| 59 | | isize | ssize_t | signed pointer sized integer |
| 60 | | usize | size_t | unsigned pointer sized integer |
| 59 | isize | intptr_t | signed pointer sized integer |
| 60 | usize | uintptr_t | unsigned pointer sized integer |
| 61 | 61 | |
| 62 | 62 | ### Grammar |
| 63 | 63 | |