mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-23 16:07:52 +00:00
Remove let
This commit is contained in:
+1
-1
@@ -559,7 +559,7 @@ proc _fmt_int(fi: ^FmtInfo, u: u128, base: int, is_signed: bool, bit_size: int,
|
||||
_pad(fi, s);
|
||||
}
|
||||
|
||||
let (
|
||||
var (
|
||||
__DIGITS_LOWER = "0123456789abcdefx";
|
||||
__DIGITS_UPPER = "0123456789ABCDEFX";
|
||||
)
|
||||
|
||||
+2
-2
@@ -210,7 +210,7 @@ proc murmur64(data: []u8) -> u64 {
|
||||
}
|
||||
|
||||
|
||||
let _crc32_table = [256]u32{
|
||||
var _crc32_table = [256]u32{
|
||||
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
|
||||
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,
|
||||
0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
|
||||
@@ -276,7 +276,7 @@ let _crc32_table = [256]u32{
|
||||
0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94,
|
||||
0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d,
|
||||
};
|
||||
let _crc64_table = [256]u64{
|
||||
var _crc64_table = [256]u64{
|
||||
0x0000000000000000, 0x42f0e1eba9ea3693, 0x85e1c3d753d46d26, 0xc711223cfa3e5bb5,
|
||||
0x493366450e42ecdf, 0x0bc387aea7a8da4c, 0xccd2a5925d9681f9, 0x8e224479f47cb76a,
|
||||
0x9266cc8a1c85d9be, 0xd0962d61b56fef2d, 0x17870f5d4f51b498, 0x5577eeb6e6bb820b,
|
||||
|
||||
+3
-3
@@ -41,7 +41,7 @@ proc _string_data(s: string) -> ^u8 #inline { return &s[0]; }
|
||||
|
||||
var _libgl = win32.load_library_a(_string_data("opengl32.dll\x00"));
|
||||
|
||||
proc get_proc_address(name: string) -> proc() #cc_c {
|
||||
proc get_proc_address(name: string) -> rawptr {
|
||||
if name[len(name)-1] == 0 {
|
||||
name = name[0..<len(name)-1];
|
||||
}
|
||||
@@ -51,7 +51,7 @@ proc get_proc_address(name: string) -> proc() #cc_c {
|
||||
if res == nil {
|
||||
res = win32.get_proc_address(_libgl, &name[0]);
|
||||
}
|
||||
return res;
|
||||
return rawptr(res);
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -118,7 +118,7 @@ var (
|
||||
|
||||
proc init() {
|
||||
proc set_proc_address(p: rawptr, name: string) #inline {
|
||||
var x = ^(proc() #cc_c)(p);
|
||||
var x = ^rawptr(p);
|
||||
x^ = get_proc_address(name);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ const (
|
||||
)
|
||||
|
||||
// "Argv" arguments converted to Odin strings
|
||||
let args = _alloc_command_line_arguments();
|
||||
var args = _alloc_command_line_arguments();
|
||||
|
||||
type _FileTime struct #ordered {
|
||||
seconds: i64,
|
||||
|
||||
@@ -54,7 +54,7 @@ const (
|
||||
)
|
||||
|
||||
// "Argv" arguments converted to Odin strings
|
||||
let args = _alloc_command_line_arguments();
|
||||
var args = _alloc_command_line_arguments();
|
||||
|
||||
|
||||
proc open(path: string, mode: int = O_RDONLY, perm: u32 = 0) -> (Handle, Errno) {
|
||||
|
||||
+1
-1
@@ -416,7 +416,7 @@ proc round_shortest(d: ^Decimal, mant: u64, exp: int, flt: ^Float_Info) {
|
||||
}
|
||||
|
||||
const MAX_BASE = 32;
|
||||
let digits = "0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
var digits = "0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
|
||||
|
||||
proc is_integer_negative(u: u128, is_signed: bool, bit_size: int) -> (unsigned: u128, neg: bool) {
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ const (
|
||||
|
||||
type AcceptRange struct { lo, hi: u8 }
|
||||
|
||||
let (
|
||||
var (
|
||||
accept_ranges = [5]AcceptRange{
|
||||
{0x80, 0xbf},
|
||||
{0xa0, 0xbf},
|
||||
|
||||
Reference in New Issue
Block a user