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
+7 -7
View File
@@ -5,7 +5,7 @@ foreign_system_library (
import "strings.odin";
Handle :: i32;
FileTime :: u64;
File_Time :: u64;
Errno :: i32;
@@ -40,7 +40,7 @@ RTLD_GLOBAL :: 0x100;
// "Argv" arguments converted to Odin strings
args := _alloc_command_line_arguments();
_FileTime :: struct #ordered {
_File_Time :: struct #ordered {
seconds: i64;
nanoseconds: i32;
reserved: i32;
@@ -63,9 +63,9 @@ Stat :: struct #ordered {
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: _File_Time; // Time of last access
modified: _File_Time; // Time of last modification
status_change: _File_Time; // Time of last status change
_reserve1,
_reserve2,
@@ -195,8 +195,8 @@ stdout: Handle = 1;
stderr: Handle = 2;
/* 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, int) #inline {