Revert "Merge pull request #1177 from Kelimion/new_clone"
This reverts commitefa513262e, reversing changes made todaccfca11d.
This commit is contained in:
1 parent
efa513262e
commit
bf15e63130
5 files changed
+8
-451
No files matched your search
@@ -83,13 +83,13 @@ Token :: struct {
|
||||
Is_Keyword_Proc :: #type proc(tok: ^Token) -> bool
|
||||
|
||||
copy_token :: proc(tok: ^Token) -> ^Token {
|
||||
t, _ := new_clone(tok^)
|
||||
t := new_clone(tok^)
|
||||
t.next = nil
|
||||
return t
|
||||
}
|
||||
|
||||
new_eof :: proc(tok: ^Token) -> ^Token {
|
||||
t, _ := new_clone(tok^)
|
||||
t := new_clone(tok^)
|
||||
t.kind = .EOF
|
||||
t.lit = ""
|
||||
return t
|
||||
|
||||
Reference in new issue
Block a user