Commit Graph

3509 Commits

Author SHA1 Message Date
gingerBill
b845db1618 Add prototypes for intrinsics.fixed_point_* dev-2021-05 2021-05-01 18:26:51 +01:00
gingerBill
ced7700cdb Add extra check for #no_bounds_check etc being followed by a newline or empty statement 2021-05-01 17:59:30 +01:00
gingerBill
406d2ab6ba Simplify/Fix the state_flag behaviour for code generation 2021-05-01 17:42:59 +01:00
gingerBill
327116b84b Merge branch 'master' of https://github.com/odin-lang/Odin 2021-05-01 17:30:27 +01:00
gingerBill
fd56b48825 Add ODIN_ROOT information 2021-05-01 17:30:22 +01:00
Jeroen van Rijn
1ef9b094b6 Merge pull request #932 from Kelimion/png_blend_test
PNG: Fix tRNS handling.
2021-05-01 18:28:23 +02:00
Jeroen van Rijn
0659a11a1a PNG: Fix tRNS handling. 2021-05-01 18:24:31 +02:00
gingerBill
956b59d48c Update old bin/README.md 2021-05-01 16:27:11 +01:00
gingerBill
97b537f800 Update intrinsics.odin for documentation 2021-05-01 16:23:50 +01:00
Jeroen van Rijn
ae907bf724 Merge pull request #931 from Kelimion/png_blend_test
Fix a few more cases in which bKGD wasn't properly applied.
2021-05-01 16:05:48 +02:00
Jeroen van Rijn
db1ef078ff Fix a few more cases in which bKGD wasn't properly applied. 2021-05-01 16:05:13 +02:00
Jeroen van Rijn
c2603297ee Merge pull request #928 from Kelimion/png_blend_test
PNG: Fix test for when premultiplication is needed.
2021-05-01 13:25:49 +02:00
Jeroen van Rijn
a02bcd3bfd PNG: Fix test for when premultiplication is needed. 2021-05-01 13:16:47 +02:00
Mikkel Hjortshøj
0e972296a4 Change non-target indentation in Makefile to spaces to fix make error 2021-04-30 22:50:14 +02:00
Mikkel Hjortshøj
5ec82623ab Remove downloading the LLVM binaries in nightly.yml 2021-04-30 22:27:09 +02:00
Mikkel Hjortshøj
47ff50a92d Remove downloading the LLVM binaries in ci.yml 2021-04-30 22:26:15 +02:00
Mikkel Hjortshøj
a1558b3398 Update nightly.yml 2021-04-30 22:19:10 +02:00
gingerBill
5f617c56e1 Minor stylistic code changes to compress and image packages 2021-04-30 10:58:29 +01:00
Jeroen van Rijn
7ef30355cb Merge pull request #924 from Kelimion/core_compress
Add `compress` and `image` to core.
2021-04-30 11:33:41 +02:00
Jeroen van Rijn
06f1eaa153 Use regular allocator from png+gzip's load_from_file.
I would've used `os.stream_from_handle`, but:
- Parts of it seem to be implemented for Windows only at the moment.
- PNG's `peek_data` using that stream didn't manage to rewind and thus tried to parse the data after the header as the header.

Two things must happen:
- The `os.stream_from_handle` implementation needs to be fixed.
- PNG and GZIP's parsers need to be able to handle streams that can't rewind or seek (backward).

Those fixes are on my TODO list but are exceed the scope of this patch.
2021-04-30 09:35:43 +02:00
Jeroen van Rijn
58e023e0cf Add compress and image to core. 2021-04-30 00:21:52 +02:00
gingerBill
222bab501c Disallow unnamed polymorphic records 2021-04-29 11:00:14 +01:00
gingerBill
bee637aef1 Update Makefile for Linux 2021-04-28 16:23:42 +01:00
gingerBill
d5844dfd2a Update llvm-config checking on Linux 2021-04-28 16:07:46 +01:00
gingerBill
3751322521 Add -no-pie flag to linker on Linux 2021-04-28 15:36:29 +01:00
gingerBill
71ac145f49 Remove dead code related to old backend 2021-04-28 15:28:14 +01:00
gingerBill
e50ef33c2a Fix #921 2021-04-28 12:34:16 +01:00
gingerBill
3061dd2497 Update build.bat to use wmic os get LocalDateTime /value instead of %DATE% which is not consistent across computers 2021-04-28 11:56:47 +01:00
gingerBill
002184cd49 Merge pull request #920 from rasa-silva/patch-1
Fix Makefile for OSX
2021-04-28 11:20:47 +01:00
Ricardo Silva
02da4d61ae Fix Makefile for OSX 2021-04-28 11:15:05 +01:00
gingerBill
102c29575b Allow @(test) to be ran outside of *_test.odin files 2021-04-28 10:49:40 +01:00
gingerBill
24fce21d90 Add "naked" calling convention (removes prologue and epilogue) 2021-04-28 10:49:30 +01:00
gingerBill
afe185ee22 Fix procedure entity finding 2021-04-27 21:08:18 +01:00
gingerBill
ffffb04d85 Remove unused import 2021-04-27 17:21:52 +01:00
gingerBill
17390cd317 Implement sync2.Recursive_Mutex using WaitOnAddress and friends on Windows 2021-04-27 17:19:12 +01:00
gingerBill
7ac80544a1 Max sync2.Sema on windows be i32 for the counter internally. 2021-04-27 16:59:25 +01:00
gingerBill
96b60d8779 Reimplement sync2.Sema on windows with WaitOnAddress primitives 2021-04-27 16:56:11 +01:00
gingerBill
24f2d97c0e Make atomic compare related intrinsics optional ok 2021-04-27 16:55:39 +01:00
gingerBill
f6d98d2a16 Fix Makefile for macOs 2021-04-27 13:29:14 +01:00
gingerBill
ab5460e2e2 Update CI 2021-04-27 13:22:30 +01:00
gingerBill
cd1658e56c Update Makefile 2021-04-27 13:14:54 +01:00
gingerBill
e7e1866e50 Fix #893 2021-04-27 13:09:37 +01:00
gingerBill
94fd59e6f0 Make compound literals require trailing commas if followed by a newline 2021-04-26 23:05:00 +01:00
gingerBill
c07ab5f9ad Change expr_level increment rules within a compound literal 2021-04-26 23:02:00 +01:00
gingerBill
06e0da97b7 Implement ODIN_ROOT #913 2021-04-26 22:56:32 +01:00
gingerBill
04535b2913 Fix constant aliasing for debug information 2021-04-26 22:36:20 +01:00
gingerBill
6667b78c12 Correct core:os/os2 mock-up 2021-04-26 22:08:15 +01:00
gingerBill
7e0c78eae7 Fix logic for \n ignoring 2021-04-26 21:39:49 +01:00
gingerBill
6d1eb473cf Correct \n ignore rules 2021-04-26 21:25:44 +01:00
gingerBill
898245431f Make -strict-style the default #871 2021-04-26 21:07:58 +01:00