Remove := with var and :: with const

This commit is contained in:
Ginger Bill
2017-06-12 11:48:12 +01:00
parent c2c935ba81
commit 8fafdb185c
31 changed files with 3264 additions and 3502 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
new_c_string :: proc(s: string) -> ^u8 {
c := make([]u8, len(s)+1);
const new_c_string = proc(s: string) -> ^u8 {
var c = make([]u8, len(s)+1);
copy(c, []u8(s));
c[len(s)] = 0;
return &c[0];
}
to_odin_string :: proc(c: ^u8) -> string {
len := 0;
const to_odin_string = proc(c: ^u8) -> string {
var len = 0;
for (c+len)^ != 0 {
len++;
}