aboutsummaryrefslogtreecommitdiff
path: root/core/sys/win32
Commit message (Collapse)AuthorAgeFilesLines
* Remove `core:sys/win32`gingerBill2022-05-1213-2162/+3
|
* Make the utf16 conversion procedures in `core:sys/windows` safer by checking ↵gingerBill2022-05-124-33/+35
| | | | for memory leaks
* Ctrl-C handler on Windows.Jeroen van Rijn2022-05-081-1/+1
|
* Begin mocking os2 for windows out moregingerBill2022-05-051-1/+1
|
* Add unregister_class_a and unregister_class_w for windows bindingsLucas Perlind2022-03-181-0/+2
|
* Adding capture procedures to user32Tail Wag Games2022-02-171-0/+3
| | | Adding `GetCapture`, `SetCapture` and `ReleaseCapture` functions - https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setcapture
* Additional win32 bindings.Josh Engler2021-10-054-1/+74
|
* Correct `context.allocator` usagegingerBill2021-09-191-3/+7
|
* Make core and vendor adhere to `-vet`, `-strict-style`, and `-disallow-do`gingerBill2021-09-112-2/+6
|
* Add `vendor:raylib` (core only)gingerBill2021-09-081-1/+5
|
* Strip even more semicolons if followed by a `}` or `)` on the same linegingerBill2021-08-311-5/+5
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-3111-870/+870
|
* Allow `core:sys/windows` to build on Windows onlyJeroen van Rijn2021-07-151-0/+1
|
* Port core:sys/win32 tests to test runner.Jeroen van Rijn2021-05-021-33/+30
|
* Make trailing comma usage consistentgingerBill2021-03-132-14/+14
|
* Minimize unneeded castsgingerBill2021-03-031-1/+1
|
* Replace usage of `inline proc` with `#force_inline proc` in the core librarygingerBill2021-02-231-1/+1
|
* Remove `bit_field` type from Odin (keyword and dead runtime code still exists)gingerBill2021-02-191-4/+3
|
* Fix miscorrect type usagegingerBill2021-02-041-2/+2
|
* Correct sys/win32 to match sys/windowsgingerBill2021-02-042-18/+19
|
* Update kernel32.odinDan Bechard2020-11-201-2/+2
| | | Fix typo in CreateProcessA/W mappings (https://github.com/odin-lang/Odin/issues/785)
* Fix double declarationgingerBill2020-07-101-1/+0
|
* Merge pull request #339 from dotbmp/mastergingerBill2020-07-101-0/+9
|\ | | | | "core:path" Path library and "core:strings" `split` Utilities
| * Merge branch 'master' into masterBrendan Punsky2019-03-181-7/+17
| |\
| * | Fix typoBrendan Punsky2019-03-131-1/+1
| | |
| * | Merge branch 'master' into masterBrendan Punsky2019-03-134-5/+159
| |\ \
| * | | Update kernel32.odinBrendan Punsky2019-03-131-0/+9
| | | | | | | | | | | | Add Win32 path functions
* | | | Begin migration from sys/win32 to sys/windowsgingerBill2020-06-262-6/+6
| | | |
* | | | Add some tests to test utf16_to_utf8 and wstring_to_utf8vassvik2020-06-131-0/+44
| | | |
* | | | Reworked win32.utf16_to_utf8 and win32.wstring_to_utf8 to scan for zeros ↵vassvik2020-06-131-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the start of the string instead of from the end. This is useful to correctly convert strings from a buffer possibly containing multiple multiple substrings. The resulting utf8 string is not null terminated, even if the backing memory might be null terminated.
* | | | Add wstring_to_utf8 to sys/win32vassvik2020-06-121-11/+18
| | | |
* | | | Fix off by one bug introduced in the previous commit.vassvik2020-06-121-2/+2
| | | |
* | | | Add extra NUL termination check for string length in win32 general string ↵gingerBill2020-06-121-3/+8
| | | | | | | | | | | | | | | | convertors
* | | | Fix errors in `package win32`gingerBill2020-04-302-3/+5
| | | |
* | | | Fixed duplicated WHITENESS value in BLACKNESS constantJoe2020-03-291-1/+1
| | | |
* | | | -Win32-Joe2020-03-293-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New - Constants: WHITENESS & BLACKNESS, and WM_PAINT - Methods: pat_blt, register_class_a, register_class_w, message_box_a, message_box_w, begin_paint, and end_paint - Structs: Wnd_Class_A, Wnd_Class_W, Paint_Struct Modified - WM_INPUT : Capitalized alphabetical values for consistency with other values
* | | | Revert os_windows.odin behaviourgingerBill2020-03-121-7/+7
| | | |
* | | | Fix os.read / os.read_entire_fileTetralux2020-03-121-2/+2
| | | | | | | | | | | | | | | | | | | | - DWORDs are NOT i32 - os.read didn't correctly read as much as it could
* | | | Add os.get_current_directory / os.set_current_directoryTetralux2020-01-201-0/+5
| | | |
* | | | Make the `string` type elements "immutable", akin to `char const *` in CgingerBill2019-12-011-2/+4
| | | | | | | | | | | | | | | | Allows for extra security and optimization benefits
* | | | Implement core:thread and core:sync on Unix using pthreadsTetralux2019-12-012-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also do some cleanup and refactoring of the thread, sync and time APIs. - remove 'semaphore_release' because 'post' and 'wait' is easier to understand - change 'semaphore_wait' to '*_wait_for' to match Condition - pthreads can be given a stack, but doing so requires the user to set up the guard pages manually. BE WARNED. The alignment requirements of the stack are also platform-dependant; it may need to be page size aligned on some systems. Unclear which systems, however. See 'os.get_page_size', and 'mem.make_aligned'. HOWEVER: I was unable to get custom stacks with guard pages working reliably, so while you can do it, the API does not support it. - add 'os.get_page_size', 'mem.make_aligned', and 'mem.new_aligned'. - removed thread return values because windows and linux are not consistent; windows returns 'i32' and pthreads return 'void*'; besides which, if you really wanted to communicate how the thread exited, you probably wouldn't do it with the thread's exit code. - fixed 'thread.is_done' on Windows; it didn't report true immediately after calling 'thread.join'. - moved time related stuff out of 'core:os' to 'core:time'. - add 'mem.align_backward' - fixed default allocator alignment The heap on Windows, and calloc on Linux, both have no facility to request alignment. It's a bit of hack, but the heap_allocator now overallocates; `size + alignment` bytes, and aligns things to at least 2. It does both of these things to ensure that there is at least two bytes before the payload, which it uses to store how much padding it needed to insert in order to fulfil the alignment requested. - make conditions more sane by matching the Windows behaviour. The fact that they were signalled now lingers until a thread tries to wait, causing them to just pass by uninterrupted, without sleeping or locking the underlying mutex, as it would otherwise need to do. This means that a thread no longer has to be waiting in order to be signalled, which avoids timing bugs that causes deadlocks that are hard to debug and fix. See the comment on the `sync.Condition.flag` field. - add thread priority: `thread.create(worker_proc, .High)`
* | | | Fix parsing for procedure literals expression statements; improve assert ↵gingerBill2019-07-282-2/+2
| | | | | | | | | | | | | | | | performance; other minor fixes
* | | | Make procedure parameters just named values rather than copied variablesgingerBill2019-07-153-10/+9
| | | |
* | | | call_external_process cleanupJeroen van Rijn2019-04-051-20/+14
| | | |
* | | | Add helpers to launch process and open website.Jeroen van Rijn2019-04-051-0/+35
| | | |
* | | | `@(private)` for `foreign` blocks; Improve foreign signature similarity rulesgingerBill2019-03-241-2/+2
| |_|/ |/| |
* | | Fix `using import` behaviour - #352gingerBill2019-03-171-1/+2
| | |
* | | Add -pdb-name for custom names of PDBsgingerBill2019-03-141-6/+15
| |/ |/|
* | Stylistic improvements to new comdlg helpers.Jeroen van Rijn2019-03-091-24/+33
| |
* | Add convenience functions for open + save dialogs.Jeroen van Rijn2019-03-091-2/+89
| |