Commit Graph

  • f70939ab4f Use windows specific exception traps gingerBill 2020-06-15 12:39:29 +01:00
  • 08e271720a Merge branch 'master' of https://github.com/odin-lang/Odin gingerBill 2020-06-15 11:54:28 +01:00
  • c3ebc49ad2 Fix @static slice for LLVM C API backend gingerBill 2020-06-15 11:54:18 +01:00
  • 9cccb20f49 Add some tests to test utf16_to_utf8 and wstring_to_utf8 vassvik 2020-06-13 18:04:19 +02:00
  • 6985d72fda Make os.get_current_directory no longer strip the zero at the end of the resulting string, as it no longer should occur. vassvik 2020-06-13 15:20:39 +02:00
  • 0056cdffa7 Reworked win32.utf16_to_utf8 and win32.wstring_to_utf8 to scan for zeros from the start of the string instead of from the end. vassvik 2020-06-13 15:19:41 +02:00
  • a229f9825b Fix -vet warning for fmt.printf("%10s") gingerBill 2020-06-12 23:13:26 +01:00
  • a6ff48a5de Merge pull request #681 from ralph-the-mighty/stringwidth gingerBill 2020-06-12 23:10:28 +01:00
  • 6648dc9ed1 use width in when printing formatted string to control padding added after the string Josh 2020-06-12 18:05:40 -04:00
  • bbbf7168f1 Add wstring_to_utf8 to sys/win32 vassvik 2020-06-12 21:06:21 +02:00
  • c15ed44f82 Fix off by one bug introduced in the previous commit. vassvik 2020-06-12 18:19:46 +02:00
  • 58466a6f3b Add extra NUL termination check for string length in win32 general string convertors gingerBill 2020-06-12 15:01:43 +01:00
  • be76c860a5 mem.simple_equal gingerBill 2020-06-12 14:52:31 +01:00
  • 4533c02cc7 Improve intrinsics.type_is_simple_compare gingerBill 2020-06-12 14:37:27 +01:00
  • 01d12770fa Fix compound literals for constant procedure fields gingerBill 2020-06-11 16:11:54 +01:00
  • 82b559c32b Remove debug code gingerBill 2020-06-10 19:29:24 +01:00
  • 474d79dcf1 Add mem.simple_compare_values gingerBill 2020-06-10 16:37:22 +01:00
  • 61db6c1234 Add force usage when importing intrinsics or builtin gingerBill 2020-06-10 16:36:59 +01:00
  • e641d714a0 Fix #677 gingerBill 2020-06-10 16:32:53 +01:00
  • f305726015 Fix #c_vararg for LLVM C API gingerBill 2020-06-10 16:15:56 +01:00
  • 57b09b2ffb Fix #439 gingerBill 2020-06-10 15:37:50 +01:00
  • e86fde3cb1 Fix #648 gingerBill 2020-06-10 15:09:04 +01:00
  • 99944f3b02 Improve behaviour of return with named results to aid with defer statements gingerBill 2020-06-10 14:53:35 +01:00
  • a9295d33ab Fix #674 gingerBill 2020-06-10 14:39:50 +01:00
  • 4acae2af44 Add support for using on relative pointers #670 gingerBill 2020-06-10 14:25:11 +01:00
  • 036429bf2f Fix reflect.as_i64 and reflect.as_u64 gingerBill 2020-06-10 14:13:50 +01:00
  • d0920804c3 Stop statement generation after terminating instruction in current block (LLVM C API) gingerBill 2020-06-10 13:57:25 +01:00
  • 97d3d4ff6f Minor changes for \*nix backend gingerBill 2020-06-10 13:38:17 +01:00
  • 6ea0910213 Fix typo gingerBill 2020-06-10 13:02:42 +01:00
  • b8d33165c9 Add -target:<string> fuzzy checking with "Did you mean" message gingerBill 2020-06-10 12:59:54 +01:00
  • 6b3ee447f0 Basic cross compilation support gingerBill 2020-06-10 12:26:31 +01:00
  • 9b1cc6e94f Update logic for slice literals, backing array to be on the stack if possible (LLVM C API) gingerBill 2020-06-08 12:41:42 +01:00
  • 0ffb718a91 Add fmt.User_Formatter gingerBill 2020-06-08 12:40:50 +01:00
  • a7dd686859 Add #caller_location to strings.clone; remove deprecated procedures in package strings gingerBill 2020-06-08 11:42:38 +01:00
  • 87a6d695d6 Fix typo in error message gingerBill 2020-06-06 22:39:36 +01:00
  • a89633e3ed Remove return after unreachable gingerBill 2020-06-06 15:22:22 +01:00
  • 59a0bbb385 Improve termination rules checking for missing return; Make diverging procedure -> ! be terminators gingerBill 2020-06-06 15:16:24 +01:00
  • a3fa647bfd Add package sys/llvm to expose some of the LLVM intrinsics gingerBill 2020-06-06 14:52:22 +01:00
  • 1a4e2196bd Fix runtime.bswap_16 gingerBill 2020-06-05 14:12:30 +01:00
  • d8f9daac95 Fix different endian integers for LLVM C API backend gingerBill 2020-06-05 13:12:57 +01:00
  • f992e36f9a Rename reflect.to_* to reflect.as_* gingerBill 2020-06-05 10:38:38 +01:00
  • 11dd971e13 Add reflect.{to_int, to_uint, to_i64, to_u64, to_f64} gingerBill 2020-06-05 10:27:32 +01:00
  • 5ed4bac16f Merge pull request #676 from Tetralux/fix-temp-alloc-resize gingerBill 2020-06-04 23:13:41 +01:00
  • 04ceb5d20c Fix temporary allocator resizing Tetralux 2020-06-04 21:49:07 +00:00
  • 0b67de47d6 add #config to odin parser Kevin Watters 2020-06-04 10:48:13 -04:00
  • 15c4077806 Fix WASM foreign import names gingerBill 2020-06-04 00:30:44 +01:00
  • 37a3abdaaa Fix calling convention stuff with LLVM C API gingerBill 2020-06-03 21:23:30 +01:00
  • ac709b8afb Merge branch 'master' of https://github.com/odin-lang/Odin gingerBill 2020-06-03 21:10:18 +01:00
  • d80049bfd2 Change runtime.Type_Info_Enum_Value to be i64 internally rather than a union gingerBill 2020-06-03 21:10:07 +01:00
  • 239f3c0418 Merge pull request #672 from foxnne/fixwrap gingerBill 2020-06-03 14:57:43 +01:00
  • 5b11a842a8 Merge pull request #668 from kevinw/patch-1 gingerBill 2020-06-03 14:56:36 +01:00
  • 626b4740b1 Add wasm-ld support for wasm code generation gingerBill 2020-06-03 13:12:38 +01:00
  • 437d5e28cd fix wrap in core:math foxnne 2020-06-02 00:37:06 -05:00
  • 6c7fc4212a Remove intrinsics import Kevin Watters 2020-06-01 18:44:47 -04:00
  • 8589af1458 Improve bits.rotate_left* gingerBill 2020-05-31 16:19:08 +01:00
  • bf5ce04b24 Improve rules for shifting behaviour Example: x: u64 = 123; assert(x >> 64 == 0); // In C this would be 123 because (64 & 0b111111) == 0 gingerBill 2020-05-31 13:50:17 +01:00
  • 8057af9e09 Fix #659 Compiler error when indexing constant slices gingerBill 2020-05-31 12:20:47 +01:00
  • d8bc2030e6 Fix big_int_to_f64 gingerBill 2020-05-30 16:45:49 +01:00
  • 5eaef091e2 Update math/bits gingerBill 2020-05-30 12:24:00 +01:00
  • 84fd40de77 Fix rules for recursive initialization with procedure entities; Fix executable name if not given gingerBill 2020-05-30 12:23:41 +01:00
  • 1d7f99cbdf Remove mem_zero from make; Implement custom memset for windows amd64 gingerBill 2020-05-27 20:17:58 +01:00
  • 3d4a3730b0 Add notin deprecation gingerBill 2020-05-27 18:47:45 +01:00
  • 1f31d573e4 Fix tokenization gingerBill 2020-05-27 18:43:02 +01:00
  • 237962182b Fix tokenizing for %% gingerBill 2020-05-27 18:41:10 +01:00
  • e84406a895 Move zero_size gingerBill 2020-05-27 18:26:20 +01:00
  • 1a0614b0d7 Improve performance of tokenization and parsing gingerBill 2020-05-27 18:23:37 +01:00
  • 876820789e Add rune_is_letter_or_digit for tokenizer gingerBill 2020-05-27 12:54:11 +01:00
  • 4e21a4d46a Optimize rune_is_* procedures for tokenizer gingerBill 2020-05-27 12:43:49 +01:00
  • 6ac0fb80a6 Minor tokenizer performance improvements gingerBill 2020-05-27 12:32:11 +01:00
  • 098699103d Begin work on supporting wasm32 architecture gingerBill 2020-05-25 12:46:23 +01:00
  • d6bcc25b69 Fix tokenizer for 0i #658 gingerBill 2020-05-24 21:43:36 +01:00
  • a2c50d3666 Fix -vet for strings gingerBill 2020-05-24 17:57:55 +01:00
  • f06efffe22 Update strings case convertors to be unicode compliant gingerBill 2020-05-24 17:50:27 +01:00
  • e42f7008fc Change spaces to tabs gingerBill 2020-05-24 16:40:48 +01:00
  • 26c9d17040 Merge branch 'master' of https://github.com/odin-lang/Odin gingerBill 2020-05-24 12:52:19 +01:00
  • 2be87169ef Fix #656 gingerBill 2020-05-24 12:52:08 +01:00
  • 732c745bb3 Merge pull request #655 from ThisDrunkDane/master Mikkel Hjortshøj 2020-05-24 12:52:38 +02:00
  • c035fc337f Add case conversions by @dotbmp Mikkel Hjortshoej 2020-05-24 12:47:43 +02:00
  • cbfbff7240 Add intrinsics.type_is_comparable; Add sort.linear_search gingerBill 2020-05-23 14:02:21 +01:00
  • 99e6eba20f Revert demo.odin gingerBill 2020-05-23 13:57:45 +01:00
  • 7d11ee605c Add sort.binary_search (uses interpolation sort for ordered numeric types) gingerBill 2020-05-23 13:57:24 +01:00
  • 4671207c61 Make the using import deprecation warning an error gingerBill 2020-05-23 13:39:18 +01:00
  • aa029fe8d9 Add "pure" procedure types gingerBill 2020-05-23 13:38:06 +01:00
  • ef539696b9 Strip carriage return \r from raw string literals gingerBill 2020-05-23 11:39:29 +01:00
  • 26fe9b0212 Fix SelectorCallExpr with no return values gingerBill 2020-05-22 23:41:17 +01:00
  • fd6e2ed5de Revert demo.odin gingerBill 2020-05-22 14:56:32 +01:00
  • 7bd1039a49 Selector Call Expressions: x->y(123) == x.y(x, 123) gingerBill 2020-05-22 14:54:30 +01:00
  • 76a230372f Merge branch 'master' of https://github.com/odin-lang/Odin gingerBill 2020-05-22 12:32:36 +01:00
  • 86b613fb15 Remove the need for type_of, size_of, align_of, offset_of to be keywords gingerBill 2020-05-22 12:32:29 +01:00
  • aacf524a47 Merge pull request #653 from lkppo/master gingerBill 2020-05-22 10:35:49 +01:00
  • 8ad3a1f41f Fix the shebang portability of the build.sh script Stéphane Aulery 2020-05-22 11:23:00 +02:00
  • d09ac8943a Minor fixes to improve hash map/set performance gingerBill 2020-05-21 16:27:40 +01:00
  • 8e63c94393 Add string.h gingerBill 2020-05-21 11:10:03 +01:00
  • 0b16ed7c85 Use memcmp for str_eq gingerBill 2020-05-21 11:05:38 +01:00
  • 89d824216a Add extra information to -show-more-timings gingerBill 2020-05-21 09:30:15 +01:00
  • 3f23a0b3b0 Fix edge cases of relative pointers gingerBill 2020-05-17 15:23:27 +01:00
  • 7819fec0a1 Merge pull request #645 from Tetralux/llvm-noabc-obey-directive gingerBill 2020-05-16 18:15:25 +01:00
  • 96ed948590 LLVM C backend: Obey directives on blocks, procedures, and expressions Tetralux 2020-05-16 15:04:08 +00:00
  • 3bd01d3a02 Merge pull request #644 from Tetralux/llvm-bounds-checks gingerBill 2020-05-16 15:32:15 +01:00
  • c4b492fb64 Add bounds checks to LLVM C backend Tetralux 2020-05-16 13:45:53 +00:00