Jeroen van Rijn
76b10b5f5d
[varint] Add additional LEB128 tests.
2022-03-08 19:28:55 +01:00
Jeroen van Rijn
e76a5d8e12
[varint] Add signed LEB128 encoding.
2022-03-08 18:07:16 +01:00
Jeroen van Rijn
6d7217f37a
[varint] Add LEB128 decoding + tests
...
Also make tests in general less spammy: Don't print [PASS] for each successful test, only report failures and progress.
2022-03-08 15:40:00 +01:00
gingerBill
29e660b16f
Add more things to package slice
...
min_max
any_of(_proc)
none_of(_proc)
all_of(_proc)
count(_proc)
2022-03-08 10:02:40 +00:00
gingerBill
31959b0751
Correct cleanpath_from_handle for os.fstat
2022-03-08 10:01:44 +00:00
Jeroen van Rijn
deed20dea6
[intrinsics] Add unaligned_store.
2022-03-06 14:53:06 +01:00
Jeroen van Rijn
a6c5143993
[intrinsics] Add existing unaligned_load.
2022-03-06 14:46:20 +01:00
Jeroen van Rijn
ce057ff755
[bit_array] Really fix the leak.
2022-03-06 12:29:17 +01:00
Andrea Piseri
bff3426d25
Fix leak in core:container/bit_array
...
calling `clear` on a `bit_array` no longer leaks the previous
allocation, instead it sets all bits to `false` preserving the same
backing dynamic array.
2022-03-06 10:21:46 +01:00
gingerBill
2e8f2e6dbc
Merge pull request #1476 from odin-lang/odin-ast-changes
...
Replace `any` with `union` for subtyping in `core:odin/ast`
2022-03-04 10:39:38 +00:00
gingerBill
1abd95094d
Add reflect.deref
2022-03-03 23:25:22 +00:00
gingerBill
913d802e33
Fix ast.clone_node
2022-03-03 23:10:38 +00:00
Jeroen van Rijn
bee475c38a
Merge pull request #1582 from semarie/more-ci
...
CI: add linux i386, Darwin arm64 and Windows 386
2022-03-03 17:07:40 +01:00
Sébastien Marie
dfe2c0a600
remove some leftover semi-colons before EOF
2022-03-03 15:57:55 +00:00
Sébastien Marie
832961d539
semi-colons are deprecated in core
2022-03-03 15:36:04 +00:00
Sébastien Marie
499c657ffa
rename architecture from 386 to i386
2022-03-03 15:28:18 +00:00
gingerBill
09f5713cf8
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-03-03 14:31:45 +00:00
Jeroen van Rijn
8af08f2153
[compress] 32-bit cleanness.
2022-03-03 15:10:19 +01:00
gingerBill
2944969ca0
Correct clone_node
2022-03-03 14:01:37 +00:00
gingerBill
bd1b54e0db
Fix #1503
2022-03-03 13:58:22 +00:00
gingerBill
fcab5508be
Merge branch 'master' into odin-ast-changes
2022-03-03 13:56:34 +00:00
gingerBill
0b05650366
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-03-03 13:54:31 +00:00
gingerBill
96e36c7c39
Minor fix to strconv.unquote_string
2022-03-03 13:54:23 +00:00
gingerBill
6b2302fa8b
Merge pull request #1572 from Lperlind/better-fmt
...
Improve core:fmt formatting
2022-03-03 12:07:14 +00:00
zhibog
3b4199a669
Added rand_bytes for Windows in core:crypto
2022-03-02 21:22:56 +01:00
Lucas Perlind
507722954c
Improve core:fmt formatting
...
* Strings will respect widths smaller than the string's length
* Strings are right justified by default like integers
* Strings accept '-' flag to be left justified
* Booleans will be formatted like strings
* Enums will be formatted like strings
2022-03-02 16:22:16 +11:00
gingerBill
7e5342f41f
Use contextless where possible
2022-03-01 15:52:14 +00:00
gingerBill
18607e53cb
Correct alloc_from_memory_block
2022-03-01 15:38:04 +00:00
Jeroen van Rijn
f971126183
[mem] Add missing \n to tracking allocator example.
2022-03-01 13:51:41 +01:00
gingerBill
dd9843aa21
Merge pull request #1557 from semarie/openbsd-support
...
initial OpenBSD support
2022-02-28 14:23:56 +00:00
gingerBill
3c72cb67d3
Remove context.user_data
2022-02-28 13:00:32 +00:00
gingerBill
e9f901b82d
Keep -vet happy
2022-02-25 15:30:24 +00:00
gingerBill
ed3004f8a0
Correct read_console reading
2022-02-25 15:30:05 +00:00
gingerBill
d97df080f9
Revert change
2022-02-25 15:08:02 +00:00
gingerBill
0e5c7e08fc
Change < to <=
2022-02-25 14:54:35 +00:00
gingerBill
376906e0ae
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-02-25 12:02:49 +00:00
gingerBill
47c79a2f25
Correct os.read on windows for os.stdin
2022-02-25 12:02:41 +00:00
Sébastien Marie
5676c9e7eb
initial OpenBSD support
2022-02-25 08:49:25 +00:00
Jeroen van Rijn
3a469dc13e
Merge pull request #1549 from semarie/clone_to_cstring-leak
...
delete allocated memory with clone_to_cstring
2022-02-24 12:42:15 +01:00
Sébastien Marie
d3c70f2206
remove the optional ; in os_freebsd.odin
2022-02-24 11:30:33 +00:00
Sébastien Marie
14f1793b3e
use context.temp_allocator instead of general allocation + delete()
...
where clone_to_cstring is used with foreign code, it is prefered to use `context.temp_allocator` instead of using the general allocator and manually delete the memory after use.
2022-02-24 11:28:42 +00:00
Colin Davidson
aeaf1199ec
Add make_directory so darwin can build html docs
2022-02-24 01:13:51 -08:00
Jeroen van Rijn
dd0d61e97c
Merge pull request #1528 from Tetralux/split-docs
...
Add doc comments to strings.split() and strings.split_n()
2022-02-23 12:13:29 +01:00
zhibog
b6dc253d8b
Add generic procedure for default SipHash 2-4
2022-02-22 20:02:34 +01:00
zhibog
e7be9493ba
Added SipHash + tests and fixed remaining semicolons in vendor/botan
2022-02-22 19:56:07 +01:00
Tetralux
2abba6e057
Don't use leading asterisks
2022-02-21 09:51:03 +00:00
Tetralux
db5a1b0c78
Add doc comments to strings.split() and strings.split_n()
2022-02-21 09:23:45 +00:00
gingerBill
14cb19c2df
Update fmt to record the bytes written in the fmt.Info
2022-02-20 22:31:13 +00:00
gingerBill
46bcd18946
Merge pull request #1519 from colrdavidson/hyperspeed_file_size
...
Maintain a running count printed, so fprintf returns correct sizes for non-files
2022-02-20 22:16:27 +00:00
Patric Dexheimer
d7eabf571c
Memory Leak
...
`dir` will leak memory if u use it with allocators that don´t care in freeing the memory at the end ( like arenas or the temp_allocator ) , because `strings.clone` and `strings.concatenate` are not using the passed allocator.
2022-02-20 02:10:34 -03:00