WalterPlinge
8fcf2f5dca
a little cleanup
2022-05-25 02:10:34 +01:00
WalterPlinge
831a86599e
Add fallback build paths search using environment variables
2022-05-25 02:00:13 +01:00
Jeroen van Rijn
3c5124ce68
Fix odin build examples\demo\ trailing slash handling.
2022-05-24 13:55:39 +02:00
Jeroen van Rijn
a8d78660ee
Merge pull request #1804 from wjlroe/consistent-os-get-env-across-unix
...
[os] Darwin,FreeBSD,OpenBSD: Rename os.getenv to os.get_env
2022-05-23 15:57:39 +02:00
Jeroen van Rijn
cc1df9591f
Merge pull request #1803 from cedric-h/master
...
Clear up Mismatched BE types error message
2022-05-23 15:48:24 +02:00
William Roe
54a326f046
[os] Darwin,FreeBSD,OpenBSD: Rename os.getenv to os.get_env
...
Make os.get_env consistent across Unixes
This matches the function name and API from env_windows.odin and os_linux.odin, which should be the same everywhere. Meaning:
* named get_env and not getenv
* return a string (empty if the environment variable is not found)
* accept a default value parameter for the allocator (defaulting to context.allocator)
* calls lookup_env which returns an extra found boolean value
This is so that you don't have to write platform/OS conditionals when getting environment variable values from the stdlib os.get_env/getenv function.
2022-05-23 13:48:55 +01:00
Cedric Hutchings
3d9d85121d
Clear up Mismatched BE types error message
2022-05-23 08:14:05 -04:00
gingerBill
a31d23a32a
Merge pull request #1802 from odin-lang/remove-maybe-tag
...
Merge functionality of `#maybe` with the standard 'union' functionality
2022-05-23 12:35:06 +01:00
gingerBill
084f431aa5
Correct check_transmute operand logic
2022-05-23 12:19:33 +01:00
gingerBill
7002f0a7d7
Update demo.odin
2022-05-23 12:07:44 +01:00
gingerBill
3ec70c5517
Merge functionality of #maybe with the standard 'union' functionality
2022-05-23 12:04:19 +01:00
gingerBill
d9f293b281
Add better error message for trying to dereference a multi-pointer
2022-05-23 11:50:05 +01:00
gingerBill
8c1499dbc2
Make raw_data return [^]T types
2022-05-23 11:48:05 +01:00
gingerBill
7d2eedee73
Unify raw_data in core:mem with core:runtime
2022-05-23 11:47:12 +01:00
gingerBill
eba35a8f7d
Allow multi pointers in intrinsics
2022-05-23 11:46:44 +01:00
gingerBill
e967f2ca2c
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-05-23 11:34:00 +01:00
gingerBill
438713af20
Allow transmute on constant expressions
2022-05-23 11:33:52 +01:00
gingerBill
568869077e
Merge pull request #1801 from cedric-h/master
...
Add enums for getting Scancodes from WM_KEYDOWN
2022-05-22 20:39:59 +01:00
Cedric Hutchings
f25a3f2a7d
Add enums for getting Scancodes from WM_KEYDOWN
...
https://docs.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input
2022-05-22 15:34:49 -04:00
gingerBill
5609221831
Merge pull request #1792 from jasonKercher/os2_linux
...
Os2 linux
2022-05-22 17:18:28 +01:00
gingerBill
f3432e6bb5
Rename to CreateProgramFromStrings
2022-05-21 21:31:24 +01:00
gingerBill
43b350c590
Add more procedures for window related positions
2022-05-21 21:31:05 +01:00
gingerBill
c2c66aad60
Add Context_Menu event kind; Fix event_prevent_default()
2022-05-21 17:29:19 +01:00
gingerBill
d7681d5b06
Add utilities for Rects
2022-05-21 17:24:03 +01:00
gingerBill
c902615192
Improve writeToConole logic for the console.log difference between stdout and stderr
2022-05-21 17:03:44 +01:00
gingerBill
2895830ce6
Add wasm/js/general.odin
2022-05-21 16:37:12 +01:00
gingerBill
1eef9552b4
Fix typo
2022-05-21 16:35:27 +01:00
gingerBill
577fa2d29b
Update time procedures for js targets
2022-05-21 16:35:06 +01:00
gingerBill
72fcf16a39
Rename to writeToConsole
2022-05-21 16:15:20 +01:00
gingerBill
b9d523e0b2
Add color when writing to stderr
2022-05-21 16:11:10 +01:00
gingerBill
f3d225ca4f
Improve addConsoleLine
2022-05-21 16:00:36 +01:00
gingerBill
d84d2f85e8
Add WebGL helper (CreateProgramHelper)
2022-05-21 15:34:12 +01:00
gingerBill
10f1d8c604
Fix typo
2022-05-21 13:38:38 +01:00
gingerBill
184d1c57b1
Change atomic.wait32 and atomic.notify selection
2022-05-21 13:37:00 +01:00
gingerBill
dfbe68bcfe
Begin to add support for experimental wasm64
2022-05-21 13:30:43 +01:00
gingerBill
3049e07f72
Add mem.DEFAULT_PAGE_SIZE
2022-05-21 13:30:09 +01:00
gingerBill
da54d0ec8c
Fix typo
2022-05-21 13:18:11 +01:00
gingerBill
b57edb89eb
Unify abi for wasm32 and the future wasm64
2022-05-21 13:18:04 +01:00
gingerBill
e43eccbb91
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-05-21 13:02:03 +01:00
gingerBill
e48f41165c
Begin work on Atomics for wasm32 (wait and notify intrinsics)
2022-05-21 12:58:48 +01:00
gingerBill
9eb4cbcbd2
Improve ABI design for wasm32 targets
2022-05-21 12:32:50 +01:00
gingerBill
2612f241c9
Minor clean up
2022-05-21 12:14:12 +01:00
gingerBill
0f1153fae2
Add page_alloc and page_allocator
2022-05-21 12:11:22 +01:00
Jeroen van Rijn
b84561f2b8
Merge pull request #1800 from DaseinPhaos/master
...
add constants for DXGI_ERROR and DXGI_STATUS
2022-05-21 13:03:35 +02:00
Jeroen van Rijn
f7e78e2671
Merge pull request #1799 from cedric-h/master
...
Fix typo.
2022-05-21 12:59:48 +02:00
Jeroen van Rijn
d10a2bc5d5
Format DXGI constants
2022-05-21 12:59:16 +02:00
gingerBill
94fda3d48d
Rename to runWasm
2022-05-21 11:41:50 +01:00
gingerBill
5cf4f565d6
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-05-21 11:39:47 +01:00
gingerBill
c20b5cbd10
Change wasm/js/runtime.mjs to a normal .js file; Add interfaces and functions to a global odin variable
2022-05-21 11:39:35 +01:00
gingerBill
115612620f
Merge pull request #1798 from Tetralux/filepath-patch
...
[path/filepath] Change join() to take a []string instead of varargs
2022-05-21 08:50:27 +01:00