diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-02-11 21:20:57 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-02-11 21:20:57 +0000 |
| commit | e1fdd675cebc6e6dad50a359d8908c779a6d69b5 (patch) | |
| tree | 76c5d3a0c34e2ea3c2100545a683ef3b2e797425 /src/build.c | |
| parent | 4306345ff10e9f8225b156633aa986fee3f97987 (diff) | |
v0.1.0v0.1.0
Added:
* Dynamic Arrays `[...]Type`
* Dynamic Maps `map[Key]Value`
* Dynamic array and map literals
* Custom struct alignemnt `struct #align 8 { bar: i8 }`
* Allow `_` in numbers
* Variadic `append`
* fmt.sprint*
* Entities prefixes with an underscore do not get exported on imports
* Overloaded `free` for pointers, slices, strings, dynamic arrays, and dynamic maps
* enum types have an implict `names` field, a []string of all the names in that enum
Removed:
* Maybe/option types
* immutable variables
* Remove `type` keyword and other "reserved" keywords
* `compile_assert` and `assert`return the value of the condition for semantic reasons
Changed:
* thread_local -> #thread_local
* #include -> #load
* Files only get checked if they are actually used
* match x in y {} // For type match statements
* Version numbering now starts from 0.1.0 and uses the convention:
- major.minor.patch
Fixes:
* Many fmt.* fixes
To come very Soon™:
* Linux and OS X builds (unofficial ones do exist already)
Diffstat (limited to 'src/build.c')
| -rw-r--r-- | src/build.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/build.c b/src/build.c index 3afc05047..cb4b96f91 100644 --- a/src/build.c +++ b/src/build.c @@ -213,26 +213,6 @@ String get_fullpath_core(gbAllocator a, String path) { return res; } -String get_filepath_extension(String path) { - isize dot = 0; - bool seen_slash = false; - for (isize i = path.len-1; i >= 0; i--) { - u8 c = path.text[i]; - if (c == '/' || c == '\\') { - seen_slash = true; - } - - if (c == '.') { - if (seen_slash) { - return str_lit(""); - } - - dot = i; - break; - } - } - return make_string(path.text, dot); -} |