mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-20 08:26:47 +00:00
Begin work on making packages import assembly sort files (.S)
This commit is contained in:
+26
-6
@@ -121,14 +121,28 @@ struct AstFile {
|
||||
struct LLVMOpaqueMetadata *llvm_metadata_scope;
|
||||
};
|
||||
|
||||
enum AstForeignFileKind {
|
||||
AstForeignFile_Invalid,
|
||||
|
||||
AstForeignFile_S, // Source,
|
||||
|
||||
AstForeignFile_COUNT
|
||||
};
|
||||
|
||||
struct AstForeignFile {
|
||||
AstForeignFileKind kind;
|
||||
String source;
|
||||
};
|
||||
|
||||
|
||||
struct AstPackage {
|
||||
PackageKind kind;
|
||||
isize id;
|
||||
String name;
|
||||
String fullpath;
|
||||
Array<AstFile *> files;
|
||||
bool is_single_file;
|
||||
PackageKind kind;
|
||||
isize id;
|
||||
String name;
|
||||
String fullpath;
|
||||
Array<AstFile *> files;
|
||||
Array<AstForeignFile> foreign_files;
|
||||
bool is_single_file;
|
||||
|
||||
// NOTE(bill): Created/set in checker
|
||||
Scope * scope;
|
||||
@@ -158,6 +172,12 @@ struct ParserWorkerData {
|
||||
ImportedFile imported_file;
|
||||
};
|
||||
|
||||
struct ForeignFileWorkerData {
|
||||
Parser *parser;
|
||||
ImportedFile imported_file;
|
||||
AstForeignFileKind foreign_kind;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user