Commit Graph

2308 Commits

Author SHA1 Message Date
Platin21
540c5400a0 Adds several system calls and the beginning of odin wrappers for them
This also adds all systemcall numbers from the xnu kernel / and additional helpers for some of the calls to make it easier to call them from odin
2022-01-23 23:13:32 +01:00
gingerBill
d269dbcd40 Add comment for the internals of assert 2022-01-23 22:01:54 +00:00
gingerBill
18e639f59b Add strings.split_lines* procedures 2022-01-23 21:35:03 +00:00
Dale Weiler
a5e1693774 Fix fread definition 2022-01-23 03:12:59 -05:00
gingerBill
cfbc1a447b Correct inverse and inverse_transpose for 2x2 matrices 2022-01-20 13:18:37 +00:00
gingerBill
2b918ada4b Add .Private information to doc-format 2022-01-19 17:15:10 +00:00
gingerBill
b5754b6ed9 Print examples correctly 2022-01-19 16:35:50 +00:00
gingerBill
28a816ef25 Allow for entity grouping in structs and procedure signatures with the Odin doc-format 2022-01-19 14:57:27 +00:00
gingerBill
fb01dfe048 Improve docs_writer.cpp 2022-01-17 22:17:07 +00:00
gingerBill
c85ac955f7 Simplify docs to hide the copyright 2022-01-17 19:00:47 +00:00
gingerBill
cd6898439e Comment out link_section on procedures 2022-01-17 12:17:13 +00:00
gingerBill
1d293749c2 Move core:path to core:path/slashpath
This is to reduce the confusion that occurs between that package and the `core:path/filepath` package
2022-01-17 11:38:15 +00:00
Jesse Stiller
d4ea02a877 Extraneous parameters in hlsl/glsl.saturate removed
This is a breaking change to anyone who used glsl/hlsl.saturate functions prior, but the y and z parameters never were used and do not conform to how the saturate function works in HLSL:  https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-saturate

Note however GLSL does not contain a saturate function, but removing it does not accomplish anything good IMO.
2022-01-17 12:19:06 +10:00
gingerBill
f0529535e0 ODIN_ENDIAN changed to an enum constant; ODIN_ENUM_STRING is the new string version of the old constant 2022-01-15 17:53:18 +00:00
gingerBill
29ebe0c3c9 Rename architecture 386 to i386 2022-01-15 17:40:00 +00:00
gingerBill
6c48670819 Make ODIN_BUILD_MODE a enum type 2022-01-15 17:34:35 +00:00
CiD-
6cf5371d7d fix push_back and pop_front 2022-01-14 10:17:49 -05:00
gingerBill
e15f714660 Define wasm _start entry point in Odin code 2022-01-13 15:18:47 +00:00
gingerBill
4f77151ebc Merge pull request #1389 from ap29600/slice_scanner
Add slice/scanner proc
2022-01-13 14:10:17 +00:00
gingerBill
a0816bb581 Merge pull request #1424 from jasonKercher/os_linux
os_linux additions + libc to syscalls
2022-01-13 12:06:40 +00:00
gingerBill
b33ca6651e Rename proc_* to entry_* 2022-01-13 12:05:22 +00:00
gingerBill
315a08f33f Add main to proc_unix.odin 2022-01-13 12:04:42 +00:00
gingerBill
c9bc759624 Correct calling convention 2022-01-12 23:04:31 +00:00
gingerBill
80f175cdb0 Add empty main dynamic builds for *nix systems 2022-01-12 20:40:34 +00:00
gingerBill
8f03811842 Fix typo 2022-01-12 20:30:34 +00:00
gingerBill
7df93ea504 Initialize runtime.args__ through main 2022-01-12 20:16:46 +00:00
gingerBill
6209b02bf9 Add intrinsics._entry_point call to _odin_entry_point 2022-01-12 20:16:04 +00:00
gingerBill
75b7f2b9fe Correct -init for *nix to be a different procedure 2022-01-12 20:13:38 +00:00
gingerBill
f1521aa980 Add proc_windows.odin for custom entry points 2022-01-12 20:10:23 +00:00
CiD-
8eaafd5242 check correct errno in _readlink 2022-01-12 14:51:49 -05:00
CiD-
774951e8c0 os_linux additions + libc to syscalls 2022-01-12 14:36:18 -05:00
gingerBill
7e4067c44c Begin work to move entry point code to Odin itself rather than in C++ side 2022-01-12 19:19:43 +00:00
gingerBill
80bd1eb615 Fix polymorphic matrix element with a minor hack 2022-01-10 12:19:49 +00:00
gingerBill
fb53402914 Merge pull request #1402 from jasonKercher/syscalls
add more Linux syscalls
2022-01-10 11:50:45 +00:00
gingerBill
731853ce78 Merge pull request #1416 from Naboris/utf16-typo
fix typo in utf16 decode_to_utf8
2022-01-10 11:50:04 +00:00
gingerBill
f0260e9771 Merge pull request #1420 from odin-lang/linalg-to-use-matrix-type
Update matrix types to be the native Odin `matrix` types
2022-01-10 11:49:49 +00:00
gingerBill
af612bc7e9 Update matrix types to be the native Odin matrix types 2022-01-10 11:32:27 +00:00
Naboris
773cfac449 fix typo 2022-01-08 09:49:21 +01:00
Jeroen van Rijn
566a750899 Fix unused imports. 2022-01-07 06:12:00 +01:00
Tyler Erickson
8c9597b24b add schar to core:c and core:c/libc 2022-01-04 16:45:16 -08:00
gingerBill
72862ce30d Fix minor typo in c/frontend/preprocess 2022-01-04 11:48:18 +00:00
gingerBill
d0f4cb1de4 Merge branch 'master' of https://github.com/odin-lang/Odin 2022-01-04 11:47:05 +00:00
gingerBill
17613185e7 Support struct field tags in odin doc format 2022-01-04 11:44:34 +00:00
Jeroen van Rijn
00ff1fbca2 Merge pull request #1403 from Platin21/feature/fix-open-syscall
Fixes open system call (Thanks TIM!)
2022-01-03 20:48:09 +01:00
gingerBill
f15bb0b424 Fix quaternion casting 2022-01-03 19:45:27 +00:00
Platin21
8ff6f95571 Removes the default create flag 2022-01-03 20:40:56 +01:00
Platin21
68e5f57e27 Fixes open system call (Thanks TIM!) 2022-01-03 20:34:57 +01:00
CiD-
38e5e13b3f add more Linux syscalls 2022-01-03 09:24:39 -05:00
gingerBill
50188f0308 Add sort.map_entries_by_key sort.map_entries_by_value 2022-01-01 17:13:11 +00:00
gingerBill
a60b9735a2 Add core:container/queue 2022-01-01 15:46:22 +00:00