Commit Graph

2172 Commits

Author SHA1 Message Date
Clay Murray 85f2f4aa88 Fix issues with stat struct.
The stat struct was the format for the 64 bit version of stat. So we need to call stat64 to get the proper data.
Also we need to use _File_Time instead of File_Time because it is a compound value. 

These changes were tested and work on my computer, MacOS 64 bit.
2020-03-03 19:42:20 -07:00
gingerBill 3f63e12198 Add -subsystem:console and -subsystem:windows flags for windows 2020-03-02 18:54:56 +00:00
gingerBill 408fa027af Merge pull request #576 from Tetralux/patch-5
Fix encoding/base64 encoding null bytes incorrectly
2020-02-29 09:53:55 +00:00
gingerBill 5e903ed2ff Merge pull request #537 from Tetralux/fix-heap-alloc
Fix heap allocator alignment on all platforms
2020-02-29 09:49:24 +00:00
gingerBill ce20604e3c Fix #578 2020-02-29 09:35:41 +00:00
Tetralux 92e1c71dd6 Fix encoding/base64 encoding null bytes incorrectly
Fixes #574.

Thanks @jroatch!
2020-02-28 14:52:16 +00:00
gingerBill 3d74c2f6c0 Add proc(#const x: Type) to enforce a constant parameter (but not polymorphic) to a procedure 2020-02-26 22:53:40 +00:00
gingerBill 1596bca92d Add intrinsics.cpu_relax 2020-02-26 22:29:12 +00:00
gingerBill 8f42958ba3 Fix __dynamic_array_reserve 2020-02-26 12:58:22 +00:00
gingerBill 4d7270cec9 Fix __dynamic_array_reserve to allow for zero sized elements 2020-02-26 12:55:56 +00:00
gingerBill 15f5c85379 Fix comparison against nil for union #maybe pointers 2020-02-23 10:55:09 +00:00
gingerBill 10fe5e97b3 Merge pull request #541 from Tetralux/getcwd
Add os.get_current_directory / os.set_current_directory
2020-02-23 10:39:21 +00:00
gingerBill 5073fcd39e Improve error message on using with procedure parameters #568 2020-02-23 10:37:27 +00:00
gingerBill a72ac6f841 Fix #572 2020-02-23 10:26:49 +00:00
gingerBill 8a67775149 Fix #571 2020-02-23 10:20:12 +00:00
gingerBill 85e331d5e2 Fix #566 2020-02-23 10:13:42 +00:00
gingerBill 81b00c7a3e Fix #563 2020-02-23 10:11:43 +00:00
gingerBill 49ecd73406 Merge pull request #562 from Tetralux/string-compare
Fix #552: Fix strings.compare for empty strings and different-length strings.
2020-02-23 10:08:50 +00:00
Tetralux 1f0c1943da Fix #552.
- Fix comparisons involving one or more empty string.
- Fix comparisons against two strings of different lengths.
2020-02-12 11:25:12 +00:00
Mikkel Hjortshøj 0b7711684b Delete dockerimage.yml
My bad
2020-02-11 21:53:45 +01:00
Mikkel Hjortshøj 9821b2be25 Create dockerimage.yml 2020-02-11 21:52:10 +01:00
Mikkel Hjortshøj 49b42f585c Merge pull request #560 from ThisDrunkDane/master
Enhance logger interface with 'f' and not 'f' variants, also move level detection out
2020-02-10 11:55:49 +01:00
Mikkel Hjortshoej 9d5692ae68 Enhance logger interface with 'f' and not 'f' variants, also move level detection out 2020-02-10 01:26:04 +01:00
vassvik 6d67567453 Fix linalg.matrix_mul_vector.
Incorrect index.
2020-02-09 18:47:02 +01:00
vassvik 0c09cb9c12 Fix math.acos and math.asin, add f64 overloads. 2020-02-06 13:35:55 +01:00
Mikkel Hjortshøj 25feb507a4 Merge pull request #556 from oskarnp/issue-555
Fix #555
2020-02-05 21:03:36 +01:00
Oskar Nordquist 0b299cb8b4 Fix https://github.com/odin-lang/Odin/issues/555 2020-02-05 20:48:18 +01:00
gingerBill fbe2366af3 Merge pull request #554 from terickson001/merge-sort-proc
Removed 'where' clause from merge_sort_proc
2020-02-04 18:46:28 +00:00
Tyler Erickson 391e2a5120 Removed 'where' clause from merge_sort_proc 2020-02-03 19:20:12 -08:00
gingerBill 0f399a7294 Add union #maybe 2020-02-01 11:10:28 +00:00
gingerBill 4bcb667e97 Merge branch 'master' of https://github.com/odin-lang/Odin 2020-01-31 23:34:08 +00:00
gingerBill 7e6454b2f7 Add odin [command] -help (not requiring a file to be passed) 2020-01-31 23:34:00 +00:00
gingerBill 357e72654d Merge pull request #546 from thebirk/patch-1
Update README.md to use Odin syntax highlighting instead of Go.
2020-01-31 09:46:47 +00:00
Aleksander Birkeland e9f3ebba13 Update README.md to use Odin syntax highlighting instead of Go. 2020-01-30 01:01:01 +01:00
gingerBill 3a30f9fd71 Create .gitattributes 2020-01-29 12:04:54 +00:00
gingerBill 7a4ec48389 Fix missing allocator 2020-01-26 21:10:56 +00:00
gingerBill a101e0d7ba Add utf8.string_to_runes utf8.runes_to_string 2020-01-26 20:55:46 +00:00
gingerBill 64f5c9ab58 Merge branch 'master' of https://github.com/odin-lang/Odin 2020-01-26 20:44:32 +00:00
gingerBill 0ee5a07d01 Add package unicode letter.odin 2020-01-26 20:44:27 +00:00
gingerBill d658a8fca5 Merge pull request #545 from Tetralux/patch-2
Fix `make(map[K]V, 0)` by ensuring `reserve` always sets an allocator
2020-01-26 16:19:50 +00:00
Tetralux abe8789890 Fix make(map[K]V, 0) by ensuring reserve always sets an allocator
Currently, `make(map[K]V, 0)` asserts, because trying `reserve` zero items does not set the allocator; it early-outs.

`__dynamic_map_reserve` assumed that `__dynamic_array_reserve` would always set the allocator - even if given a desired capacity of `0`.

Rather than making `__slice_resize` just _also_ set the default allocator if there isn't one, this makes `__dynamic_array_reserve` always set the allocator, even if it is about to early out.
This is because users are lead to understand that `append` will set the allocator if one is not already set - `reserve` should work the same way.
2020-01-26 01:03:14 +00:00
Tetralux a4b60b78c8 Fix heap allocator alignment on all platforms 2020-01-22 12:03:16 +00:00
Tetralux 66d1656367 Add os.get_current_directory / os.set_current_directory 2020-01-20 14:28:31 +00:00
gingerBill 14c4fed94c v0.12.0 v0.12.0 2020-01-18 15:32:15 +00:00
gingerBill c3205316ed Remove debug printing 2020-01-18 14:53:53 +00:00
gingerBill b542ef273d Begin work on -target:windows_386 2020-01-18 14:44:53 +00:00
gingerBill 404132de17 Fix microsoft_craziness.h to work correctly 2020-01-18 12:36:18 +00:00
gingerBill cd43f4c94c Add suggestions for indexing constant values with a variable index 2020-01-18 12:09:26 +00:00
gingerBill 23ff98dea0 Fix microsoft_craziness.h 2020-01-18 12:08:45 +00:00
gingerBill c3a8e232a5 Add new intrinsics for polymorphic records:
type_is_specialized_polymorphic_record, type_is_unspecialized_polymorphic_record, type_polymorphic_record_parameter_count, type_polymorphic_record_parameter_value
2020-01-18 11:27:41 +00:00