mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Better lowering of distinct types. Noreturn function call expr recognized as a "jump" for escape analysis. Preferring "def" in libs. To upper / to lower for ascii. Initial dynlib support.
This commit is contained in:
committed by
Christoffer Lerno
parent
a877d4458c
commit
ddd0497922
@@ -4,7 +4,7 @@
|
||||
module std::collections::list<Type>;
|
||||
import std::math;
|
||||
|
||||
typedef ElementPredicate = fn bool(Type *type);
|
||||
def ElementPredicate = fn bool(Type *type);
|
||||
|
||||
struct List
|
||||
{
|
||||
|
||||
@@ -472,7 +472,7 @@ fn Object* Object.get_or_create_obj(Object* o, String key)
|
||||
return container;
|
||||
}
|
||||
|
||||
typedef ObjectInternalMap @private = HashMap<String, Object*>;
|
||||
typedef ObjectInternalList @private = List<Object*>;
|
||||
typedef ObjectInternalMapEntry @private = Entry<String, Object*>;
|
||||
def ObjectInternalMap @private = HashMap<String, Object*>;
|
||||
def ObjectInternalList @private = List<Object*>;
|
||||
def ObjectInternalMapEntry @private = Entry<String, Object*>;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
module std::collections::priorityqueue<Type>;
|
||||
import std::collections::list;
|
||||
|
||||
typedef Heap = List<Type>;
|
||||
def Heap = List<Type>;
|
||||
|
||||
struct PriorityQueue
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user