mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Fix unnecessary namespacing.
This commit is contained in:
@@ -41,7 +41,7 @@ module std::io::file @if(env::LIBC &&& env::POSIX);
|
||||
@return? mem::OUT_OF_MEMORY, vm::ACCESS_DENIED, vm::RANGE_OVERFLOW, vm::INVALID_ARGS, vm::UNKNOWN_ERROR, io::NO_PERMISSION, io::FILE_NOT_VALID, io::WOULD_BLOCK, io::FILE_NOT_FOUND
|
||||
@return "Memory mapped region. Must be released with FileMmap.destroy(). Provided File will not be closed"
|
||||
*>
|
||||
fn mmap::FileMmap? mmap_file(File file, usz offset = 0, usz len = 0, vm::VirtualMemoryAccess access = READ, bool shared = false)
|
||||
fn FileMmap? mmap_file(File file, usz offset = 0, usz len = 0, VirtualMemoryAccess access = READ, bool shared = false)
|
||||
{
|
||||
if (len == 0)
|
||||
{
|
||||
@@ -78,7 +78,7 @@ fn mmap::FileMmap? mmap_file(File file, usz offset = 0, usz len = 0, vm::Virtual
|
||||
@return? mem::OUT_OF_MEMORY, vm::ACCESS_DENIED, vm::RANGE_OVERFLOW, vm::INVALID_ARGS, vm::UNKNOWN_ERROR, io::NO_PERMISSION, io::FILE_NOT_VALID, io::WOULD_BLOCK, io::FILE_NOT_FOUND
|
||||
@return "Memory mapped region. Must be released with FileMmap.destroy()"
|
||||
*>
|
||||
fn mmap::FileMmap? mmap_open(String filename, String mode, usz offset = 0, usz len = 0, vm::VirtualMemoryAccess access = READ, bool shared = false)
|
||||
fn FileMmap? mmap_open(String filename, String mode, usz offset = 0, usz len = 0, VirtualMemoryAccess access = READ, bool shared = false)
|
||||
{
|
||||
File file = open(filename, mode)!;
|
||||
defer catch (void)file.close();
|
||||
|
||||
@@ -4,8 +4,8 @@ alias Win32_FARPROC = void*;
|
||||
alias Win32_BOOL = int;
|
||||
alias Win32_BOOLEAN = Win32_BYTE;
|
||||
alias Win32_BYTE = char;
|
||||
alias Win32_CCHAR = cinterop::CChar;
|
||||
alias Win32_CHAR = cinterop::CChar;
|
||||
alias Win32_CCHAR = CChar;
|
||||
alias Win32_CHAR = CChar;
|
||||
alias Win32_COLORREF = Win32_DWORD;
|
||||
alias Win32_DWORD = uint;
|
||||
alias Win32_DWORDLONG = ulong;
|
||||
|
||||
Reference in New Issue
Block a user