mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-06 21:06:18 -04:00
String support
This commit is contained in:
1 parent
19aea1f198
commit
2aaef48c5c
16 files changed
+737
-246
No files matched your search
+1
-4
@@ -2063,10 +2063,7 @@ void parse_file(Parser *p, AstFile *f) {
|
||||
} else {
|
||||
if (node->kind == AstNode_ImportDecl) {
|
||||
auto *id = &node->ImportDecl;
|
||||
String file = id->filepath.string;
|
||||
String file_str = {};
|
||||
if (file.text[0] == '"')
|
||||
file_str = make_string(file.text+1, file.len-2);
|
||||
String file_str = id->filepath.string;
|
||||
|
||||
char ext[] = ".odin";
|
||||
isize ext_len = gb_size_of(ext)-1;
|
||||
|
||||
Reference in new issue
Block a user