Christiano Haesbaert
c51df72f1a
Make sure we don't leak os.args. Fixes #1633 .
...
os.args is never freed, while this is an insignificant leak, it is a bit
annoying as it makes valgrind complain:
==234270== Memcheck, a memory error detector
==234270== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==234270== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info
==234270== Command: ./wc /tmp/mulumulu
==234270==
1 8 58 /tmp/mulumulu
==234270==
==234270== HEAP SUMMARY:
==234270== in use at exit: 47 bytes in 1 blocks
==234270== total heap usage: 5 allocs, 4 frees, 4,195,875 bytes allocated
==234270==
==234270== 47 bytes in 1 blocks are possibly lost in loss record 1 of 1
==234270== at 0x484BC13: calloc (vg_replace_malloc.c:1675)
==234270== by 0x402E49: runtime._heap_alloc-769 (in /d/learn-odin/wc/wc)
==234270== by 0x40A8D7: runtime.heap_alloc (in /d/learn-odin/wc/wc)
==234270== by 0x436E9D: runtime.heap_allocator_proc.aligned_alloc-0 (in /d/learn-odin/wc/wc)
==234270== by 0x4022DC: runtime.heap_allocator_proc (in /d/learn-odin/wc/wc)
==234270== by 0x4165E0: runtime.make_aligned-22560 (in /d/learn-odin/wc/wc)
==234270== by 0x41F6D0: runtime.make_slice-22340 (in /d/learn-odin/wc/wc)
==234270== by 0x40156B: os._alloc_command_line_arguments-4679 (in /d/learn-odin/wc/wc)
==234270== by 0x4011AF: __$startup_runtime (in /d/learn-odin/wc/wc)
==234270== by 0x406F17: main (in /d/learn-odin/wc/wc)
==234270==
==234270== LEAK SUMMARY:
==234270== definitely lost: 0 bytes in 0 blocks
==234270== indirectly lost: 0 bytes in 0 blocks
==234270== possibly lost: 47 bytes in 1 blocks
==234270== still reachable: 0 bytes in 0 blocks
==234270== suppressed: 0 bytes in 0 blocks
==234270==
==234270== For lists of detected and suppressed errors, rerun with: -s
==234270== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
With the fix the leak is gone, tested on linux only.
While here, also make _alloc_command_line_arguments() private.
2025-01-11 21:55:09 +01:00
Laytan
cd93e2f6f8
Merge pull request #4672 from shizeeg/master
...
add os.exists() to FreeBSD
2025-01-11 01:03:36 +01:00
Laytan Laats
896319d0d5
ci: test issues on windows
2025-01-11 01:00:15 +01:00
Laytan Laats
e3c0cc9dfc
time: add haiku
2025-01-11 00:18:36 +01:00
Laytan
e4ae832775
Merge pull request #4603 from avanspector/master
...
Haiku: fix build and add initial `core:sys/posix` support
2025-01-11 00:06:29 +01:00
avanspector
cc50fab8e3
Merge branch 'odin-lang:master' into master
2025-01-10 22:47:44 +01:00
avanspector
ab7b5a5445
Haiku: change uintptr to uint where appropriate
2025-01-10 15:14:03 +01:00
gingerBill
328d893cb5
#unroll(N) for
2025-01-10 12:22:18 +00:00
gingerBill
4a2b13f1c2
Fix foreign import names
2025-01-10 10:18:30 +00:00
gingerBill
b377ac182c
Keep -vet happy
2025-01-10 10:15:15 +00:00
gingerBill
fd058dff46
Merge branch 'master' of https://github.com/odin-lang/Odin
2025-01-10 10:12:42 +00:00
gingerBill
3d4a20918f
Simplify stb foreign imports
2025-01-10 10:12:36 +00:00
gingerBill
5a259ed0ee
Merge pull request #4669 from denovodavid/pr-d3d12-shader-component-mapping
...
vendor:directx/d3d12: add shader component mapping constants and macro-procedures
2025-01-10 09:44:17 +00:00
avanspector
c686728184
Update dir_unix.odin
2025-01-10 07:15:44 +01:00
avanspector
0a985f5d02
Haiku: small fixes across core
2025-01-10 07:07:40 +01:00
avanspector
9868c8292b
Merge branch 'master' of https://github.com/avanspector/Odin
2025-01-10 06:42:42 +01:00
avanspector
a704000c34
Haiku: add posix tests
2025-01-10 06:42:19 +01:00
avanspector
5d3a069e7a
Haiku: more posix
2025-01-10 06:40:29 +01:00
avanspector
a6dccf5e98
Haiku: fix futex bug
2025-01-10 06:28:57 +01:00
avanspector
1dc5753a0f
Merge branch 'odin-lang:master' into master
2025-01-10 06:26:36 +01:00
sh!zeeg
509da8e632
add os.exists() to FreeBSD
2025-01-10 05:56:56 +03:00
Laytan Laats
1511162b0a
webgpu: fix cstring as parameter not loading correctly
2025-01-09 17:29:31 +01:00
gingerBill
cabc76d9cb
Merge pull request #4667 from laytan/use-map-entry-in-strings-intern
...
strings: use map_entry in Intern datastructure
2025-01-09 16:06:01 +00:00
denovodavid
c30cdaa7b0
add d3d12 shader component mapping constants and macro-procedures
2025-01-09 11:39:01 +11:00
Laytan Laats
16e3abfe82
strings: use map_entry
2025-01-08 22:20:43 +01:00
Laytan Laats
2620721128
'#no_nil' I am actually disappointed in myself
2025-01-08 21:45:59 +01:00
Laytan Laats
b3c359557e
#no_nil third time's the charm
2025-01-08 21:24:22 +01:00
Laytan Laats
7185a93a86
actually fix #no_nil debug info
...
Fixes #4664
2025-01-08 20:24:31 +01:00
Laytan Laats
2aae4cfd46
fix #no_nil in debug info
...
Fixes #4664
dev-2025-01
2025-01-08 18:47:32 +01:00
gingerBill
30bb2250c7
Merge pull request #4474 from tf2spi/4407-mdei-pack
...
Pack MDEI struct to fix issue #4407
2025-01-08 16:41:47 +00:00
gingerBill
2a29322c91
Merge pull request #4605 from karl-zylinski/tracking-allocator-bad-free-default-to-crash
...
Make tracking allocator default to crashing on a bad free instead of adding to bad_free_array
2025-01-08 16:24:20 +00:00
gingerBill
bc2e57723b
Merge pull request #4665 from GrumpyLion/add_some_missing_win_functions
...
Add SetWindowSubclass and RegisterHotKey functions
2025-01-08 16:23:40 +00:00
Lion Schitik
ab3e2340c2
review
2025-01-08 12:38:28 +01:00
Laytan
b71c74a357
Merge pull request #4666 from DaveTheGameDev/sys_windows
...
Fix name of RI_MOUSE_LEFT_BUTTON_DOWN containing S at the end in (user32.odin)
2025-01-08 07:46:47 +01:00
david_cauchi
9a68eb401d
Fix name of RI_MOUSE_LEFT_BUTTON_DOWN containing S at the end
2025-01-08 15:06:17 +11:00
Lion Schitik
cdef798fbc
Add SetWindowSubclass and RegisterHotKey functions
2025-01-08 01:47:36 +01:00
Laytan Laats
b136aa26c8
sys/windows: fix xinput build tag
2025-01-06 21:14:37 +01:00
gingerBill
37a608664b
Merge pull request #3208 from lordhippo/add-xinput
...
Add xinput bindings to core:sys/windows
2025-01-06 13:44:45 +00:00
avanspector
be7799459b
Merge branch 'odin-lang:master' into master
2025-01-06 16:42:29 +04:00
gingerBill
98efb03934
Merge pull request #4599 from Barinzaya/fix_dynamic_resize_zeroing_on_grow
...
Fix dynamic array not zeroing when growing
2025-01-06 12:37:05 +00:00
gingerBill
a6f1046fc0
Merge pull request #4533 from laytan/map-entry
...
add `map_entry` procedure
2025-01-06 12:36:27 +00:00
gingerBill
3d8bde9549
Merge pull request #4601 from Barinzaya/simd_vector_broadcasting
...
Implicit broadcasting for SIMD arrays
2025-01-06 11:15:28 +00:00
gingerBill
f160ba4fa6
Merge pull request #4623 from Yawning/feature/rt-assert-ensure
...
base/runtime: Add `ensure` and `ensure_contextless`
2025-01-06 09:37:57 +00:00
gingerBill
a3b4280cf7
Merge pull request #4633 from spahnke/fix-matrix-adjugate
...
Fix matrix adjugate
2025-01-06 09:36:18 +00:00
gingerBill
c7739de891
Merge pull request #4634 from dozn/patch-1
...
Use Struct Tags For Embedded (with `using`) Structs When Unmarshalling JSON
2025-01-06 09:33:42 +00:00
gingerBill
16acb342d1
Merge pull request #4617 from gorevojd/free_bootstrapped_arena_crash
...
Fixed crash in arena_free_all() for bootstrapped growing arenas.
2025-01-06 09:33:23 +00:00
Laytan Laats
0cc1dbb092
vendor/box2d: clarify wasm building
2025-01-05 19:35:37 +01:00
Laytan Laats
bf0e6eaf60
vendor/raylib: fix SetVertexAttribute definition
...
Fixes #4596
2025-01-05 19:21:39 +01:00
Laytan
f566c5ee83
Merge pull request #4639 from flga/vulkan_xlib_xcb
...
`vendor:vulkan` Add support for xlib and xcb
2025-01-05 19:03:57 +01:00
Laytan
3a2396033c
Merge pull request #4648 from lzurbriggen/fix/get-comm-ports
...
move GetCommPorts, add missing comm functions, add communication events
2025-01-05 18:53:36 +01:00