aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-07-29 20:56:09 +0100
committergingerBill <bill@gingerbill.org>2018-07-29 20:56:09 +0100
commita6fe656f21863d578c1c408f158ed5bc567a8f23 (patch)
treeec29897fe4c51347cbaa7570fae644d8ebb3c8c2 /src/entity.cpp
parentdc5da7933aab94ca26718b35058559c19637229e (diff)
foreign import x {"foo.lib", "bar.lib"}
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 37bafc7d3..fa76026ff 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -124,7 +124,7 @@ struct Entity {
Scope *scope;
} ImportName;
struct {
- String path;
+ Array<String> paths;
String name;
} LibraryName;
i32 Nil;
@@ -278,9 +278,9 @@ Entity *alloc_entity_import_name(Scope *scope, Token token, Type *type,
}
Entity *alloc_entity_library_name(Scope *scope, Token token, Type *type,
- String path, String name) {
+ Array<String> paths, String name) {
Entity *entity = alloc_entity(Entity_LibraryName, scope, token, type);
- entity->LibraryName.path = path;
+ entity->LibraryName.paths = paths;
entity->LibraryName.name = name;
entity->state = EntityState_Resolved; // TODO(bill): Is this correct?
return entity;