diff options
| author | Mustafa Quraish <[email protected]> | 2022-02-07 03:02:39 -0500 |
|---|---|---|
| committer | Mustafa Quraish <[email protected]> | 2022-02-07 03:18:08 -0500 |
| commit | 3817688851fae07b1d6a13ba2ce1906fc9811f8f (patch) | |
| tree | bb936b224cada39dc7ede856d9f15a4000950526 /std/vector.cup | |
| parent | Add missing files to self-hosted directory (diff) | |
| download | cup-3817688851fae07b1d6a13ba2ce1906fc9811f8f.tar.xz cup-3817688851fae07b1d6a13ba2ce1906fc9811f8f.zip | |
[cup] Self-hosting is now possible! Make some tweaks to match C output
A bit of a chonky commit, but this ports over the remaining (well,
almost) everything from the C implementation to the self-hosted
compiler.
The only things that really remain right now are (1) defer support
and (2) support for constants in local scopes. There were used barely
enough so for now their uses have been removed, but I'll implement
them back later. Not sure how useful (2) is though.
Diffstat (limited to 'std/vector.cup')
| -rw-r--r-- | std/vector.cup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/vector.cup b/std/vector.cup index 6953e9b..1b7104c 100644 --- a/std/vector.cup +++ b/std/vector.cup @@ -15,7 +15,7 @@ fn vector_new_sized(capacity: int): Vector* { } fn vector_new(): Vector* { - const initial_default_capacity = 8; + let initial_default_capacity = 8; return vector_new_sized(initial_default_capacity); } |