Use semicolons as field delimiters in records

This commit is contained in:
Ginger Bill
2017-07-10 13:49:50 +01:00
parent 81336b58cb
commit 66e4aaffc5
15 changed files with 460 additions and 343 deletions
+20 -20
View File
@@ -41,9 +41,9 @@ RTLD_GLOBAL :: 0x100;
args := _alloc_command_line_arguments();
_FileTime :: struct #ordered {
seconds: i64,
nanoseconds: i32,
reserved: i32,
seconds: i64;
nanoseconds: i32;
reserved: i32;
}
// Translated from
@@ -51,27 +51,27 @@ _FileTime :: struct #ordered {
// Validity is not guaranteed.
Stat :: struct #ordered {
device_id: u64, // ID of device containing file
serial: u64, // File serial number
nlink: u32, // Number of hard links
mode: u32, // Mode of the file
uid: u32, // User ID of the file's owner
gid: u32, // Group ID of the file's group
_padding: i32, // 32 bits of padding
rdev: u64, // Device ID, if device
size: i64, // Size of the file, in bytes
block_size: i64, // Optimal bllocksize for I/O
blocks: i64, // Number of 512-byte blocks allocated
device_id: u64; // ID of device containing file
serial: u64; // File serial number
nlink: u32; // Number of hard links
mode: u32; // Mode of the file
uid: u32; // User ID of the file's owner
gid: u32; // Group ID of the file's group
_padding: i32; // 32 bits of padding
rdev: u64; // Device ID, if device
size: i64; // Size of the file, in bytes
block_size: i64; // Optimal bllocksize for I/O
blocks: i64; // Number of 512-byte blocks allocated
last_access: _FileTime, // Time of last access
modified: _FileTime, // Time of last modification
status_change: _FileTime, // Time of last status change
last_access: _FileTime; // Time of last access
modified: _FileTime; // Time of last modification
status_change: _FileTime; // Time of last status change
_reserve1,
_reserve2,
_reserve3: i64,
serial_numbe: u64, // File serial number...? Maybe.
_reserve4: i64,
_reserve3: i64;
serial_numbe: u64; // File serial number...? Maybe.
_reserve4: i64;
};
// File type