v0.6.2; Use Ada_Case for types

This commit is contained in:
Ginger Bill
2017-08-03 21:21:56 +01:00
parent 294092979e
commit 49d337c830
19 changed files with 354 additions and 319 deletions
+8 -8
View File
@@ -6,7 +6,7 @@ foreign_system_library (
import "strings.odin";
Handle :: i32;
FileTime :: u64;
File_Time :: u64;
Errno :: int;
@@ -46,7 +46,7 @@ RTLD_FIRST :: 0x100;
args: [dynamic]string;
_FileTime :: struct #ordered {
_File_Time :: struct #ordered {
seconds: i64;
nanoseconds: i64;
}
@@ -60,10 +60,10 @@ Stat :: struct #ordered {
gid: u32; // Group ID of the file's group
rdev: i32; // Device ID, if device
last_access: FileTime; // Time of last access
modified: FileTime; // Time of last modification
status_change: FileTime; // Time of last status change
created: FileTime; // Time of creation
last_access: File_Time; // Time of last access
modified: File_Time; // Time of last modification
status_change: File_Time; // Time of last status change
created: File_Time; // Time of creation
size: i64; // Size of the file, in bytes
blocks: i64; // Number of blocks allocated for the file
@@ -212,8 +212,8 @@ stdout: Handle = 1; // get_std_handle(win32.STD_OUTPUT_HANDLE);
stderr: Handle = 2; // get_std_handle(win32.STD_ERROR_HANDLE);
/* TODO(zangent): Implement these!
last_write_time :: proc(fd: Handle) -> FileTime {}
last_write_time_by_name :: proc(name: string) -> FileTime {}
last_write_time :: proc(fd: Handle) -> File_Time {}
last_write_time_by_name :: proc(name: string) -> File_Time {}
*/
stat :: proc(path: string) -> (Stat, bool) #inline {