Commit Graph

3087 Commits

Author SHA1 Message Date
gingerBill
a5a56e061c Fix to png example.odin 2022-08-11 11:10:05 +01:00
gingerBill
cb0a59bb2c Eliminate use of LLVMGetElementType for pointers 2022-08-09 15:36:18 +01:00
gingerBill
838554460b Add basic "lock" around Log_Allocator to minimize errors with allocation logging loops 2022-08-08 15:25:11 +01:00
gingerBill
659c3c528d Update delete to pass size in bytes to free when possible 2022-08-08 15:16:18 +01:00
gingerBill
60aeab3c38 Update fmt.odin 2022-08-08 15:07:19 +01:00
gingerBill
5e3cf45df3 Add #soa pointer type to aid with refactoring to #soa data types
a: #soa[16]Foo
p := &a[6]
#assert(type_of(p) == #soa^#soa[16]Foo)
p^.x = 123
p.x = 123
2022-08-08 15:07:00 +01:00
gingerBill
4633591918 Remove unnecessary pointer 2022-08-08 14:28:36 +01:00
gingerBill
0e6a8b7c72 Make Growing_Arena reserve memory first and then commit as needed
It just committed all at once to begin with
2022-08-08 12:43:18 +01:00
gingerBill
147848ca20 Clean up naming conventions 2022-08-08 12:30:58 +01:00
gingerBill
cde002c579 Fix i18n 2022-08-08 12:27:23 +01:00
gingerBill
f23d93ba89 Merge branch 'master' of https://github.com/odin-lang/Odin 2022-08-08 12:23:48 +01:00
gingerBill
c97a8418dc Clean-up and unification for the allocation procedures 2022-08-08 12:23:19 +01:00
gingerBill
4aca9372a6 Improve resize call 2022-08-08 12:11:30 +01:00
gingerBill
4912ecc3ea Add log.Log_Allocator 2022-08-08 11:57:51 +01:00
blake
b2b0043875 fixed math.log2 2022-08-06 06:19:47 -04:00
cui fliter
dc8b7a0eb8 fix some typos
Signed-off-by: cui fliter <imcusg@gmail.com>
2022-08-05 20:10:20 +08:00
gingerBill
a2117d23b2 Change unreachable with panic 2022-08-05 12:41:25 +01:00
gingerBill
576914aee1 Make unreachable() a built-in compiler-level procedure 2022-08-05 11:57:33 +01:00
gingerBill
326411498a Merge pull request #1925 from neNasko1/fix-incorrect-behaviour-of-string-ordering
Fix incorrect behaviour of string ordering
2022-08-03 19:43:55 +01:00
Ian Lilley
dbec4b0d0e fixed memory leak from calling get_env 2022-08-03 11:49:42 -04:00
Atanas Dimitrov
4cb489b9e4 Fix sort.compare_strings for prefixes 2022-08-03 16:22:54 +03:00
Atanas Dimitrov
28ec50d567 Fix string orderings to account for prefix-equal strings 2022-08-03 16:09:36 +03:00
gingerBill
73beed0477 Merge pull request #1921 from Hyp-X/master
Update user32.odin
2022-08-02 12:15:44 +01:00
gingerBill
e0ecdd4b24 Simplify logic of append of zero sized elements 2022-08-02 11:13:53 +01:00
gingerBill
5168cf03a9 Remove dead #maybe code 2022-08-01 15:38:50 +01:00
gingerBill
0ec4d97bfd Correct parser logic for is_token_field_prefix 2022-08-01 15:24:17 +01:00
Hyp-X
e6236e5c3e Update user32.odin
Added UnregisterClassW procedure to windows\user32.odin
2022-08-01 15:59:00 +02:00
gingerBill
97acc57649 Simplify field prefix handling 2022-08-01 13:17:10 +01:00
gingerBill
83c8c48ed7 Simplify ast parsing for prefixes 2022-08-01 13:07:49 +01:00
Christoffer Lerno
f45e8e5d47 Added virtual memory headers for Darwin. 2022-07-29 20:01:26 +02:00
William Roe
d913155972 Fix bug unmarshalling JSON with assertions disabled
When asserts are disabled, code within the assert isn't run. Having
expect_token within an assert means that the state of the Parser is
mutated when asserts are run, but not when they aren't.

There's already a wrapper procedure for this pattern, which I have
reused here.
2022-07-28 13:56:14 +01:00
gingerBill
220dfd7440 Minor clean up of wasi_api.odin 2022-07-25 17:00:32 +01:00
Daniel Gavin
25869b7504 Change open to be read only when opening directory 2022-07-25 11:34:03 +02:00
gingerBill
08f5259d77 Replace insert_at with inject_at and assign_at 2022-07-24 23:07:35 +01:00
Luxko
00e704b216 fix linalg.angle_from_quaternion
fixes #1894 .2:
```odin
package laa
import "core:fmt"
import la "core:math/linalg"

main:: proc() {
    angle := f32(0.5)
    quat  := la.quaternion_angle_axis_f32(angle,la.Vector3f32{0,0,1})
    fmt.printf("retreived: %0.8f\n",  la.angle_from_quaternion(quat)) // should be 0.5, but wasn't
}
```
2022-07-23 00:59:45 +08:00
Yeongju Kang
4e8bc0786d fix parameter for atan2 in procedure asin 2022-07-22 15:48:06 +09:00
Tetralux
3a8adc6721 [path/slashpath] Change join() to take a slice instead of varargs
Achieves parity with filepath.join(), which was similarly changed a while back.
2022-07-21 17:49:31 +00:00
gingerBill
e1748a5dd1 Add MAKE_WORD 2022-07-21 17:08:11 +01:00
gingerBill
3db3047f47 Minor improvements 2022-07-19 16:17:23 +01:00
gingerBill
9eb3da0474 Remove import cycle on FreeBSD 2022-07-18 15:20:28 +01:00
gingerBill
22a0c3fce1 Disallow proc() do stmt and only allow proc() { stmt } 2022-07-18 15:09:04 +01:00
gingerBill
0571b80d37 Fix printing of bit_set types 2022-07-16 17:56:38 +01:00
Jeroen van Rijn
3e6ec65dd9 Fix murmur64a's tail handling.
Also, split up the murmur64 proc into murmur64a and murmur64b as they're distinct hashes with their own output.
2022-07-15 13:02:07 +02:00
gingerBill
157c87b2a2 Fix typo 2022-07-15 00:34:26 +01:00
gingerBill
d3081bd889 Add buffer_read_ptr and buffer_write_ptr 2022-07-14 15:26:50 +01:00
gingerBill
2ae5bf4395 Merge branch 'master' of https://github.com/odin-lang/Odin 2022-07-14 11:56:13 +01:00
gingerBill
f28547cae1 Fix libc.putchar 2022-07-14 11:56:05 +01:00
Jeroen van Rijn
5332705e31 [hash] Give crc-64 a 64-bit seed. 2022-07-14 11:07:52 +02:00
gingerBill
ae9d540c1c Correct naming in tests 2022-07-11 11:55:49 +01:00
gingerBill
c90b7c38f1 Rename strings.Builder procedures to be consistent with the rest of the core library 2022-07-11 11:50:08 +01:00