Remove type prefix declarations

This commit is contained in:
Ginger Bill
2017-06-28 23:23:10 +01:00
parent 0622509807
commit 4f28e9e1fb
17 changed files with 233 additions and 256 deletions
+5 -7
View File
@@ -4,11 +4,9 @@ foreign_system_library (
)
import "strings.odin";
type (
Handle i32;
FileTime u64;
Errno i32;
)
Handle :: i32;
FileTime :: u64;
Errno :: i32;
O_RDONLY :: 0x00000;
@@ -42,7 +40,7 @@ RTLD_GLOBAL :: 0x100;
// "Argv" arguments converted to Odin strings
args := _alloc_command_line_arguments();
type _FileTime struct #ordered {
_FileTime :: struct #ordered {
seconds: i64,
nanoseconds: i32,
reserved: i32,
@@ -52,7 +50,7 @@ type _FileTime struct #ordered {
// https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/+/jb-dev/sysroot/usr/include/bits/stat.h
// Validity is not guaranteed.
type Stat struct #ordered {
Stat :: struct #ordered {
device_id: u64, // ID of device containing file
serial: u64, // File serial number
nlink: u32, // Number of hard links